This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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
 
Consider Paul's rocket mass heater.
 
subject: how to pass value to the EJB annotations dynamically
 
It's not a secret anymore!