my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes how to pass value to the EJB annotations dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to pass value to the EJB annotations dynamically " Watch "how to pass value to the EJB annotations dynamically " New topic
Author

how to pass value to the EJB annotations dynamically

Yash Don
Greenhorn

Joined: May 19, 2010
Posts: 12
Hi Ranchers,

I have started using EJB 3 in my project and I am making use of lots of annotations like @Stateless , @Singleton @Entity etc. Most of these annotation accept parameters for example @Stateless(name="CalculatorBean" mappedName="calculatorBean") and these parameter values are hard coded. Is there any way available to pass these values at run time.


Regards,
Yash

SCJP, SCWCD
 
jQuery in Action, 2nd edition
 
subject: how to pass value to the EJB annotations dynamically