Just to note that we have both Toplink and OpenJPA deployed entirely
inside a single EAR file under WebSphere 6.1.(which is Java 5 but J2EE 4).
We can switch it back and forth between Toplink and OpenJPA modes of
operation, without regenerating the EAR, as follows.
- change the provider name
I cannot get UserTransaction to work.
Nothing happens when I commit.
This consists of:
- Using a JTA datasource
- specifying Bean Managed Transaction rather then CMT on the enclosing
session Bean.
- looking up a UserTransaction with:
UserTransaction userTran = (UserTransaction) initCtx
Michael Dick wrote:
If you lookup the UserTransaction in your Session Bean, then your
approach
should work. I tried making the Feature Pack sample application a BMT
bean
and it seemed to work for me. I can send you the application if you'd
like.
If the transaction is started prior to
I could not figure this out in reading the OpenJPA documentation.
We have just the one database and set of tables, but we need to have two
separate Connection Pools to the same database in order to have two
different userid's.
(We want to set the priorities on the database differently for
Patrick,
Can the following not be used?
createEntityManagerFactory(String name, String resource)
Returns a new OpenJPAEntityManagerFactory specified by name in an XML
configuration file at the resource location resource.
Don
Patrick Linskey wrote:
Hmm. Theoretically, this is what the