[jboss-user] [JBoss AOP] - Re: Does any one know how to intercept the injection in JBos
waynebaylor
do-not-reply at jboss.com
Wed May 30 14:28:31 EDT 2007
You can use a String variable as long as it's labeled final.
For Example:
| public class MyClass
| {
| private final String persistence_unit_name = MyNameFinder.getName();
|
| @PersistenceContext(unitName=persistence_unit_name)
| EntityManager em;
|
| ...
| }
|
Where MyNameFinder.getName() is a static method that retreives the name from a file (or however you want to do it).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049850#4049850
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049850
More information about the jboss-user
mailing list