Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in EJB3/Annotation

 
Rakesh Rajagopalan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • 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
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Jerwin Louise Uy
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic