[jboss-user] [EJB 3.0] - Re: How to pass PersistenceUnit name at run time
ALRubinger
do-not-reply at jboss.com
Wed Sep 17 02:13:37 EDT 2008
Annotation metadata must be available to the compiler, so it is impossible to inject this way if you depend upon a runtime value.
If you're not using bleeding-edge builds (ie. trunk), you may instead look up the EMF or EM in JNDI if you opt to bind them there:
http://docs.jboss.org/ejb3/app-server/tutorial/jndibinding/jndi.html
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177000#4177000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177000
More information about the jboss-user
mailing list