I had to do something along the same lines, where my database information was 
specific to each user logging in.

What I ended up doing was implementing my own Persistence Context manager and 
that object got a User object injected that had some database information then 
on the getEntityManager I would create my own datasource and used the 
HibernatePersistence API directly. Then in the entity class I would specify the 
component to use when injecting the EntityManager.

Let me know if this is what you want I can post an example.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074486
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to