Thanks for your responses. Yes I realize that this has nothing to do with JBossCache, but there doesn't appear to be a JTA/Transactions specific forum so this one appears to be the most relevant. Plus I've had the best luck with getting my answers answered on this forum as opposed to other forums -- Ben and Bela appear to really be on the ball as far as focusing their attention to user problems posted here.
The updateReceivedTime() may be called by several clients, and hence one invokation may start before another finishes. But I thought that I had prevented this from happening by marking the method as synchronized, which will prevent more than one thread from entering the method. Is this not the case ? If not then can someone suggest any other threading tricks I can use in order to prevent this transaction nesting ? I will add code to rollback the transaction if there's an exception, but my understanding is that there is no exception happening which requires a rollback, it's just the nested transaction which is causing the exception. So I need to isolate the updateReceivedTime() to a single thread and make sure it completes before allowing another thread to invoke it which opens the second/nested transaction. Apparently the synchronized keyword isn't sufficient for this and I need to do more with controlling the threads. At least that's me take on things at this point. Any further suggestions ? Thanks. --James View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872043#3872043 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872043 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
