Re: Stateless Pool and Stateful Pool Timeouts

2008-07-17 Thread David Blevins
On Jul 17, 2008, at 5:29 AM, the666pack wrote: Hello, i have a question regarding timeout values in openejb as the documentation is somewhat sparse: the timeout for the stateless pool is defined as: "Specifies the time to wait between invocations. This value is measured in milliseconds.

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-17 Thread Dain Sundstrom
I'm pretty sure this is the problem, and it is pretty common. The problem is the persistence units are not processed until OpenEJB starts and that is typically after the test class has loaded. The persistence classes reference by the test class are loaded when the test class is loaded, wh

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-17 Thread Kevin Sutter
Gareth, It still seems like the -javaagent is not taking effect. What version of the surefire plugin are you using? If it's 2.3, you might be hitting the problem in this Issue: http://jira.codehaus.org/browse/SUREFIRE-297. The initial description sounds exactly like your situation. Can you run

Stateless Pool and Stateful Pool Timeouts

2008-07-17 Thread the666pack
Hello, i have a question regarding timeout values in openejb as the documentation is somewhat sparse: the timeout for the stateless pool is defined as: "Specifies the time to wait between invocations. This value is measured in milliseconds. A value of 5 would result in a time-out of 5 milliseco

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-17 Thread David Blevins
I wonder if this is simply an issue that the Entity classes are loaded *before* OpenEJB starts and is able to hand the persistence.xml data to OpenJPA. If there are imports for the Entities in the TestCase then this is likely what's happening. You might try moving the test code around a bi

RE: Problem with openjpa enhancer - using runtime enhancement

2008-07-17 Thread Gareth Davies
Kevin, This is the trace output from our build with all the OpenJPA options set to TRACE and RuntimeUnenhancedClasses set to unsupported, it looks like it finds the classes but fails to enhance any of them. One slightly odd thing about this is that it mentions that it is scanning the resources "M

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-17 Thread Kevin Sutter
Gareth, If you are still falling into the non-enhanced class file path, then there's still something wrong with the javaagent processing. I'm not following the reference that Nathan provided [1]. I'm not clear on what it's trying to tell me. Is the javaagent provided by OpenEJB supposed to autom