There were a few examples in the inet that used this override method.
But if this isnĀ“t possible, is there a way to change the datasource dynamically
and therefor use the same entities for different datasources or is this not an
issue in ejb3?
Thank you for your help
Thomas
View the original
Hi Thomas,
I'm working on the same issue for a while - asking this many times here without
a clear answer or solution. What I have found out so far, you can do (assuming
you have a PU default in your persistence.xml):
| MapString,String map = new HashMapString,String();
|
Andy,
thank you for this help so far. Unfortunately the transaction-managament is not
an unimportant issue in my application I would like to let EJB3 do the work.
This is what I found in another thread. This is, what Bill Burke recommends in
such a situation.
anonymous wrote : deploy your
Hi Thomas,
please see: http://www.jboss.com/index.html?module=bbop=viewtopicp=3951914
The hint from Bill doesn't solve your (and mine) initial problem: programmatic
creation of ems, that can be used like the ones deployed through
persistence.xml. It is only a way for dynamic selection of a em
these properties are not overridable at all, where did you see that it's
possible?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944783#3944783
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944783