java-ee

JSF getValue() v.s. getSubmittedValue()

Hey all, I've been developing a few JSF applications lately and am disturbed with the inconsistency in the web component APIs. I've noticed that there is extremely unpredictable behavior when calling .getValue() or .getSubmittedValue() on a JSF component object in server side code. Sometimes when I call .getValue() on a drop down list...

How to convert EJB3 annotations to ejb-jar.xml file configuration?

I am looking for a tool which would create ejb-jar.xml configuration file from annotated EJB3 classes. Something like XDoclet, but for annotations, not tags in comments. ...

JSF commandLink action firing before Updating Model Values

Hey all, I have a JSF application that consists of two JSPs: login.jsp & main.jsp. I have the following faces-config.xml: <lifecycle> <phase-listener>package.programs.scorecard.beans.EventBean</phase-listener> </lifecycle> <managed-bean> <managed-bean-name>FormBean</managed-bean-name> <managed-bean-class>package.programs.scoreca...

Support for EJB2 with Jboss 5CR2

How I can configure Jboss 5 to support EJB2? I'm testing the new release of jboss (5) and need to deploy my old EJB2 ...

Besides EAR and EJB, what do I get from a J2EE app server that I don't get in a servlet container like Tomcat?

We use Tomcat to host our WAR based applications. We are servlet container compliant J2EE applications with the exception of org.apache.catalina.authenticator.SingleSignOn. We are being asked to move to a commercial J2EE application server. The first downside to changing that I see is the cost. No matter what the charges for the app...

Would you, at present date, use JBoss or Glassfish (or another) as Java EE server for a new project?

If you started a new Java EE project today which is to be finished in about a year, which application server would you choose and why? Part of your answer should include your arguments for your decision. And also how much experience you have with the Java EE server you choose and with the other available servers on the market. These are...

Is there a better way to compare general performance of .Net and Java in an eCommerce setting than the "pet store"?

Hi, I've been using the Java Pet Store and .Net Pet Store examples for years when comparing JEE and .Net performance in an eBusiness type setting. Is there a better way to compare the performance of JEE and .Net for this type of application? Update: As some have pointed out below, the implementation, framework versions, architecture...

How do I bind collection attributes to a form in Spring MVC

I'm trying to bind one of my model objects to the fields of a form, using Spring-MVC. Everything works fine, except that one of the attributes of the model object is an unordered collection. Doing something like <c:forEach items="${m.items}" var="i" varStatus="itemsRow"> <form:input path="items[${itemsRow.index}]"/> </c:fo...

Describe the architecture you use for Java web applications?

Let's share Java based web application architectures! There are lots of different architectures for web applications which are to be implemented using Java. The answers to this question may serve as a library of various web application designs with their pros and cons. While I realize that the answers will be subjective, let's try to be...

Java Application Server Performance

I've got a somewhat dated Java EE application running on Sun Application Server 8.1 (aka SJSAS, precursor to Glassfish). With 500+ simultaneous users the application becomes unacceptably slow and I'm trying to assist in identifying where most of the execution time is spent and what can be done to speed it up. So far, we've been experim...

Where can I download JSTL jar

Does anyone know because all the places I've tried seem to timeout! ...

How to call remote EJB from standalone client

I have my EJB deployed on weblogic server. I want to access those EJB from standalone applications (a thin client). ...

Is there any other strongly-integrated presentation layer tool other than JSF/JSP for Java EE?

Hello, I'm teaching Java EE at the university, and this was a question a student asked. I said "no", but I wasn't really sure, so I thought I might ask you mighty developers. :) Basically, what I'd like to do is to use entities if they were in my context: cat getters, setters, etc, so like normal POJOs. if I use an EJB using its remote...

Simple Workflow Management with JEE

Hi All, I have an application that allows different users to update some data that is then published to a website. The application uses JPA as a persistence layer. I now want to add a bit of workflow management to this scenario so that when users with junior roles update data, it is not directly published but rather waits for a senior u...

How to build EAR/WAR for Websphere Application Server by Eclipse?

IBM Rational Application Developer is very slow and has many problems. I tried to use ant scripts to build EAR/WAR files for Websphere Application Server but it did not work. ...

java.util.List is an interface, and JAXB can't handle interfaces

Hi. I seemed to get the following exception when trying to deploy my application: Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at java.util.List ...

Favourite Java Site

What is your favourite Java orientated website? Can be forum, news, podcast or any type of site as long as it is about the Java programming language. All flavours of Java should be considered; SE, EE and ME. ...

How are EJB3 transactions propgated over multiple session beans?

I've read the EJB3 spec and the latest O'Reilly and Manning books and yet I can't see defined anywhere how transactions are propagated over multiple session beans. For example, if I call a method marked as "NEVER" on bean A and bean A calls a method marked as REQUIRESNEW on bean B, what happens? In practice, using JBoss, we've observed...

How can I set up an LDAP connection pool in a JEE Container?

I need to put an LDAP contextSource into my JEE container's JNDI tree so it can be used by applications inside the container. I'm using Spring-LDAP to perform queries against ORACLE OVD. For development, I simply set up the contextSource in the Spring xml configuration file. For production, however, I need to be able to use a JNDI looku...

How to enumerate HTTP listeners from a Java EE web app

I have a web app with a web-based configuration UI. If the user accesses via HTTP, I want to alert the user that they should really use HTTPS and give them a link to click on to get to the HTTPS-prefixed URL. Now, this is pretty straightforward if we're on the default ports, but often, we're not - for example, HTTP might be on 8080, wit...