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&...]