[jboss-user] [EJB 3.0] - Re: How to pass PersistenceUnit name at run time

mnrz do-not-reply at jboss.com
Sun Oct 26 10:50:27 EDT 2008


"ALRubinger" wrote : 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
  | 
  | 

Hi
this solution works in JBoss only, is there any other way so the application becomes portable across the App servers.

would you have a look at my topic?
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=144560&start=0&postdays=postDays&postorder=postOrder&highlight=highlight

thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184679#4184679

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184679



More information about the jboss-user mailing list