JBoss Community

Re: jboss7 quickstarts entitymanager injection question

created by robert walker in JBoss AS7 Development - View the full discussion

scott, u mention

 

>For each separate datasource used in your application , there should be a separate persistence unit for that datasource

 

I understand this, but what i am confused about is these are 2 different applications, jboss 7 quickstarts login and kitchensink

yet each one's persistence.xml points to the same data source, and I guess that is ok, what if both applications are deployed on the server

running at same time, i guess it is just odd to me they are sharing the same DS, an in memory H2 database/source

 



Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community