Thanks for the reply.
I think I discovered for myself that the scenario I tried where there was a
session bean running on the jboss instance with the cache wouldn't work because
the JBoss transaction manager doesn't extend transactions across JVM's.
However, from your reply, I assume it should work if the cache is looked up and
accessed directly from the other instance.
I apologize for my ignorance, but could you give me a little more guidance with
your suggestions? I'm no expert on transactions, I've mostly just used
container managed transactions without any direct manipulation.
What exactly do I need to do to verify whether the cache was enrolled in the
transaction?
Also, I tried a sessionContext.setRollbackOnly() in my session bean, but that
made no difference, the cache still didn't roll back. I was also going to try
setting that on the transaction at the cache level, in case that's what you
meant, so I tried to get the Transaction Manager for the cache using
getTransactionManager() on the TreeCacheMBean instance, but that resulted in
this error...
Caused by: java.io.NotSerializableException: org.jboss.tm.TxManager
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at java.rmi.MarshalledObject.(MarshalledObject.java:92)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:364)
....
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871823#3871823
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871823
-------------------------------------------------------
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