Re: how to disable toplink?

2006-11-22 Thread Don Brady
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

Should UserTransaction Work?

2007-01-01 Thread Don Brady
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

Re: Should UserTransaction Work?

2007-01-07 Thread Don Brady
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

Cache with two ConnectionFactories?

2007-02-07 Thread Don Brady
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

Re: howto/pattern for working with three databases outside an EJB3 container

2007-02-16 Thread Don Brady
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