using Context Listener
http://javanotepad.blogspot.com/2007/05/jpa-entitymanagerfactory-in-web.html
--
Peter Henderson
Director Starjar Limited.
Mobile: +44 (0) 778 233 8645
Email: peter.hender...@starjar.com
Web: www.starjar.com
problem.
While I don't think you'd want to synchronize the method that initializes
the factory, you might try it to see if it fixes the problem.
--
Peter Henderson
Director Starjar Limited.
Mobile: +44 (0) 778 233 8645
Email: peter.hender...@starjar.com
Web: www.starjar.com
set this property:
property name=openjpa.jdbc.QuerySQLCache value=false/
Kevin
--
Peter Henderson
Director Starjar Limited.
Mobile: +44 (0) 778 233 8645
Email: peter.hender...@starjar.com
Web: www.starjar.com
Kevin Sutter wrote:
Peter,
Actually, that's good news from my viewpoint since it removes the
QuerySQLCache variable from the equation.
How are you performing the enhancement processing [1] for your Entities?
Are you doing it during build time, or dynamically via an agent or loader?
Any
org.apache.catalina.core.StandardContext loadOnStartup
--
Peter Henderson
Director Starjar Limited.
Mobile: +44 (0) 778 233 8645
Email: peter.hender...@starjar.com
Web: www.starjar.com
)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:98)
at
org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:72)
... 49 more
--
Peter Henderson
Director Starjar Limited.
Mobile: +44 (0) 778 233 8645
Email
, DataCache=ERROR/
property name=openjpa.AutoDetach value=close,
commit/
/properties
/persistence-unit
/persistence
--
Peter Henderson
Director Starjar Limited.
Mobile: +44 (0) 778 233 8645
Email: peter.hender...@starjar.com
Web: www.starjar.com
wrote:
Peter -
What kind of problems are you having? An exception or stack trace would be
very helpful.
-Rick
Peter Henderson wrote:
...
If I don't manually call em.detach() I get lots of problems
when hessian tries to serialize the object for wire transfer.
...
--
Peter Henderson
entities in the EM's persistence context upon invocation.
o The openjpa.AutoDetach property probably pre-dates the JPA spec. Have
you tried running without this property?
Kevin
On Tue, May 12, 2009 at 8:58 AM, Peter Henderson
peter.hender...@starjar.com wrote:
Thanks for replying.
The stack