users@glassfish.java.net

Re: JPA concurrent INSERT

From: <forums_at_java.net>
Date: Fri, 12 Nov 2010 19:17:44 -0800

Hi Marina,

Why should I unlock the table in @PreDestroy when I know the table will be
unlocked once the transaction completes?    My service classes and DAO's
are singletons according to Spring.

 

Thanks,

Ryan

 

[quote=mvatkina]

Try to add a Singleton with @PreDestroy method that would unlock the table.
You need an XA resource ig there are 2 or more resources used in a
transaction and one of them is already a non-XA resource.

 

-marina

[/quote]


--
[Message sent by forum member 'rdelaplante']
View Post: http://forums.java.net/node/715588