• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Specification version

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Servlets are not client-side classes.
 
Henrique Sousa
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, they are client from the EJB point of view... or not?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic