Questions tagged [java-ee-5]

Use this tag for questions relating specifically to Java Enterprise Edition 5.

Java Enterprise Edition 5 (JEE5) is a specification defining a collection of Java-based technologies and how they interoperate. JEE5 incorporates a set of technologies, including EJB3, JPA, JSF, etc. Numerous implementations are available in the form of both commercial products and open source projects.

246 questions
36
votes
1 answer

Servlet Mapping using web.xml

I have a confusion regarding the structure of the web.xml for the servlet mapping, I don't have any problem by executing it but I am trying to figure it how why we have such a pattern in the deployment descriptor.
Mike
  • 1,889
  • 5
  • 26
  • 32
25
votes
4 answers

How do you unit test Java EE code?

I want to ask for your prefered way to test Java EE code? I found only three project, that are trying to help to code unit tests in Java EE environment: http://jakarta.apache.org/cactus/ : Last Published: 2009-01-18 http://www.junitee.org/ : Last…
marabol
  • 1,247
  • 2
  • 15
  • 22
23
votes
6 answers

Real world comparisons of Glassfish and JBoss 5?

Does anyone have experiences with both in the real world? How do they compare in terms of performance (memory usage, speed, etc)? Stability? Does JBoss Seam work well on Glassfish?
jsight
  • 27,819
  • 25
  • 107
  • 140
12
votes
3 answers

JPA Entiy on synonym instead of table

I have a Seam 2.2 based Java EE 5 web application with a bunch of tables mapped to JPA 1.0 Entities via Hibernate 3.3.3. During development it's running on a Tomcat 6, Oracle 10 XE and Windows 7. Now, we had the request by operations department to…
Alexander Rühl
  • 6,769
  • 9
  • 53
  • 96
12
votes
9 answers

Java EE -- is it just fluff or the real stuff?

I'm familiar with the LAMP stack and over the years have successfully deployed a handful of web sties based on it. I've used everything from Apache + modPerl, to PHP, to Ruby and Rails. With good use of caching my Rails site can sustain a pretty…
Jeff
  • 6,646
  • 5
  • 27
  • 33
11
votes
2 answers

How to get number of connected users and their role using j_security_check?

I get the username of the connected user (using j_security_check) this way, through a managed bean: ...... username = FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal().getName(); And then display it in a jsf page this…
Hanynowsky
  • 2,970
  • 5
  • 32
  • 43
10
votes
1 answer

What is the difference between JMS consumer and Message Driven Beans (MDB)

Is there any difference between an asynchronous JMS (Java Messaging Service) consumer vs an actual MDB (Message Driven Bean). The only difference I see is the MDB class has @MessageDriven annotation which the asynchronous JMS consumer doesn't.…
Robin Bajaj
  • 2,002
  • 4
  • 29
  • 47
10
votes
5 answers

@Cache annotation usage error

I added the following annotation to enable cache to one of my EJB3 entities, to test caching with ehCache, where I use Hibernate as the persistence provider: .... import org.hibernate.annotations.Cache; import…
SibzTer
  • 1,737
  • 4
  • 14
  • 18
8
votes
4 answers

PrimeFaces fileDownload does not work

I can't get the primeFaces
Hanynowsky
  • 2,970
  • 5
  • 32
  • 43
8
votes
1 answer

inject beans into an abstract class with spring and java ee 5

I am injecting a spring-managed bean into an abstract class and it seems that it doesn't work. Here is an explanation of what I do, if it is not enough, I can edit the post and add some code: implement the java code - 1 abstract class, 2 classes…
user1414745
  • 1,317
  • 6
  • 25
  • 45
8
votes
1 answer

Java EE 5 dependency injection?

Since Java EE 5 does not have CDI, how does DI work in here? Can an EJB be injected with @EJB in a class that is a non-EJB? Can an EntityManager be injected with @PersistenceContext in a class that is a non-EJB (container managed not resource local…
Random42
  • 8,989
  • 6
  • 55
  • 86
8
votes
1 answer

Single/complete Maven dependencies for Java EE 5 API

Is there a single maven dependency containing whole Java EE 5 spec API. Just like javax javaee-api 6.0 for Java EE 6. I'm using JBoss 5 and want…
Piotr Gwiazda
  • 12,080
  • 13
  • 60
  • 91
8
votes
3 answers

How to include values from .properties file into web.xml?

I need to include some values from a file.properties into the WEB-INF/web.xml something like this: uploadDirectory myFile.properties['keyForTheValue'] I'm currently working with this: JBoss JEE5
lancha90
  • 5,064
  • 2
  • 17
  • 9
7
votes
1 answer

Navigate to the Same Page After Action in JSF 2

I have a component done in JSF 1.x, this component has a command button as follows Where templateController was passed as an EL binding and can be any object that implements a certain…
shipmaster
  • 3,994
  • 4
  • 30
  • 33
6
votes
2 answers

Proposing Glassfish to customers

With Sun being taken over by Oracle, Oracle will arguably gain control of Glassfish. I do understand that Glassfish is community driven but most of the contributions do come out of Sun at this time. Its a great App Server and perfect for many…
Ryan Fernandes
  • 8,238
  • 7
  • 36
  • 53
1
2 3
16 17