jaikiran, i think your statement is incorrect: even though i am using 
@Resource(mappedName="java:/JmsXA"), my messages still get processed before the 
data is actually visible in the database. 

When i add logging, it's a matter of 100 ms.

So my explanation for this is: 2 phase commit guarantees that all resources 
will commit (end of phase 1), but it does not guarantee any timing about it, 
therefore the thread handling the message may read the db sooner than the db 
makes its changes visible. I'm not sure if this reasoning is correct, please 
give me your thoughts on it.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180167
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to