openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelmmatt <kelmm...@us.ibm.com>
Subject Re: OpenJPA incompatibility with WebSphere container managed transaction
Date Fri, 29 Feb 2008 23:19:46 GMT

Wendy,

I was able to get the sample to run successfully using OpenJPA 1.0.2.  There
is one application problem which needs to be fixed before it will work.  You
need to comment out the first em.close() in the openOrder method of
OrderProcessorBean.java:

			// replaced this code with batch update below just to test feature,
			// but setting Customer Order below should have same affect.
			customer.setCurrentOrder(newOrder);
			System.out.println("Returning from Processor");
			//em.close();
			return orderId;
		} finally {
			if (em != null) {
				em.close();
			}
		}
	}
-- 
View this message in context: http://www.nabble.com/OpenJPA-incompatibility-with-WebSphere-container-managed-transaction-tp15315097p15769011.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message