[jboss-user] [Beginner's Corner] - Re: Locking, Transaction, SFSB, 2 apps

Urs Rothenhäusler do-not-reply at jboss.com
Tue Dec 6 08:06:38 EST 2011


Urs Rothenhäusler [http://community.jboss.org/people/braca] created the discussion

"Re: Locking, Transaction, SFSB, 2 apps"

To view the discussion, visit: http://community.jboss.org/message/640037#640037

--------------------------------------------------------------
Thanks for the hint. I solved the problem  - as you suggested - by creating a new transaction when generate the key. 

@TransactionAttribute( TransactionAttributeType.REQUIRES_NEW )
    public Long findKeyAndSaveKey(){
}

That's ok because this method is called only once per session and further keys are generated using an algorithm.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/640037#640037]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111206/b9d160dd/attachment.html 


More information about the jboss-user mailing list