File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Suggestions for OCMJEA part 2 resubmission - class and deployment diagrams
jndi name in ejb3?
Dependency Injection not working?
Getting EJB 3.0 to work
JMS/EJB3.0/MDB user password question