I can't tell this is a bug in JBoss or I'm using EJB3 incorrectly.
I can create 2 persistence units with out a problem.
My session means are injected with a entitymanager associcated with the
appropriate unitname of the persistence unit, so far so good.
But, entity means seem to have no allegiance with a particular persistence
unit, I can't see how to tie them together, the @PersistenceContext unitname at
class level is having no effect.
What happens is all the entitybeans are created in all databases with a
persistence context setting of
To summarize, I'm trying to keep two databases apart but the schemas are
polluting each other.
How do I prevent this at the entity bean level?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941447#3941447
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941447
---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user