[jboss-dev-forums] [Design of JBoss Transaction Services] - Re: TransactionLocal: values, locks and headaches

jhalliday do-not-reply at jboss.com
Fri Sep 21 05:56:11 EDT 2007


Just one more headache: the current TransactionLocal.get() implementation in the app server actually tries to write the value in certain cases. If it?s called after transaction resolution, that storeValue now throws an IllegalStateException, causing get() to blow up.

The options seem to be: change get() to be read only or change storeValue to fail silent on terminated transactions. I vote for the former, but it may cause problems with the behaviour of initialValues.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087143#4087143

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087143



More information about the jboss-dev-forums mailing list