aspose file tools*
The moose likes Servlets and the fly likes Specification version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Specification version" Watch "Specification version" New topic
Author

Specification version

Henrique Sousa
Ranch Hand

Joined: Apr 29, 2004
Posts: 92
Hello, everyone
I am not sure if this is the right place for this topic but here it goes... Is there a specification (maybe it is not even a Servlet specification) that rules about how Servlets (client-side classes in general) are supposed to deal with EJB 3.0 annotations -- such as @EJB? I looked for something like that in the JCP and found nothing.


Henrique Sousa<br />SCJP 1.4<br /> <br />All men die, not all men really live - Braveheart, 1995
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

Servlets are not client-side classes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Henrique Sousa
Ranch Hand

Joined: Apr 29, 2004
Posts: 92
Well, they are client from the EJB point of view... or not?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

In that sense, yes.
The servlet app is the user interface to the EJBs.

I'm guessing that you're going to have issues unless you're running a servlet container under JDK1.5x. Not sure if the servlet classes themselves would need to be compiled under 1.5.

There are some similar issues going on with Tomcat right now.
Version 5.5 requires JDK1.5x and servlets compiled under 1.5 can use the new 1.5 features such as the new for loops but these things will not work in JSP scriptlets because the compiler that ships with Tomcat (Eclipse's JDT) isn't fully 1.5 compliant yet and doesn't understand them.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Henrique Sousa:
Well, they are client from the EJB point of view... or not?


That confusion leads me to believe that this thread would do better in the EJB forum. A lot of people here (and in the JSP forum) are having a hard enough time understanding what happens on the webserver and what happens in the user's browser without throwing the 'EJB/Servlet Container' relationship into the mix.

Moving to the EJB forum.
[ May 05, 2006: Message edited by: Ben Souther ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Specification version
 
Similar Threads
SCBCD preparation problems...
What specs version
EJB 1.1 or 2.0
Latest j2ee specification version
Please suggest URLs