• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Doubt in EJB3/Annotation

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a very fundamental doubt in EJB 3/Annotation. How does using �@Stateless� annotation transforms a Java Object to a Stateless bean? Can someone explain whats going on behind the scenes?

Regards,
Rakesh.R
 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rakesh,

The exact low-level details depends on the implementation. From a high-level, the container reads the bean configuration, attaches requested container services (e.g. transactions, DI, life-cycle callbacks, thread-safety, pooling, remoting, interceptors) to the POJO and makes the EJB available via the JNDI registry for other Java EE components.

Is there a specific problem you are trying to solve?

Regards,
Reza
[ December 03, 2008: Message edited by: Reza Rahman ]
 
Rakesh Rajagopalan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No Reza, there is no specific problem that im trying to solve. Just wanted to figure out how annotations are working. Thanks for replying.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

If you have doubts on the annotations, then you could try looking at the source code of the application server as well as the libraries assigned to process the annotations.

Based on my experience using EJB 3.0 (Toplink), dependency injection, class level and method level annotations seems to work fine.

Regards.
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic