I understand what you are trying to do here. There was a similar question sometime back on
this forum
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=134276. See if
using @Resource as mentioned in that thread is a feasible approach. That way, each
application can have their own persistence unit name but bind them to this pre-decided
JNDI name and inject it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184676#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...