File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Specification version

 
Henrique Sousa
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets are not client-side classes.
 
Henrique Sousa
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, they are client from the EJB point of view... or not?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic