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

Wolf-Dieter Fink do-not-reply at jboss.com
Tue Dec 6 04:52:53 EST 2011


Wolf-Dieter Fink [http://community.jboss.org/people/wdfink] created the discussion

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

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

--------------------------------------------------------------
As long you use a DB inside the transaction and lock the table (row) you will have such behaviour.
The application(s) are not very scalable.

You should decouple the key generation and use a different for each app.
Or you might cache a couple of keys in each application outside this transactions (i.e. use a new transaction to refill the internal cache)
Drawback is that you might loose some keys if the server goes down or crash.
--------------------------------------------------------------

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

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/5809ed0d/attachment.html 


More information about the jboss-user mailing list