Here is my Scenario:
--------------------
1. i look for an user transaction from WeblogicServer1 and got it
2. beginning a transaction using that user transaction
3. doing some jms operations
4. commiting it sucessfully...(this is fine).
Now i shutdown WeblogicServer1 server and my client application is trying
contact the other available weblogic server and started using the second
server WeblogicServer2 sucessfully (we have our own failover
mechanisam)..its able to get T3Connection and did some jdbc calls also.
But after failover..when i try to execute the above Scenario, i am getting
the following exception:
This looks like after failover..USERTRANSACTION is not getting refereshed on
the client side..but i am doing lookup again..before begin. (After failover
i am doing lookup again).
java.lang.IllegalStateException: java.lang.Exception: Transaction
coordinator could not be created. To start transactions from a client you
must lookup javax.jts.UserTransaction from JNDI. Meanwhile, the exception
obtained is:
weblogic.rmi.ConnectException:
JVM -1802818393690997828S10.1.1.62:[9260,9260,9261,9261,-1] is gone
at java.lang.Throwable.fillInStackTrace(Native Method)
at
weblogic.rmi.extensions.BasicRequest.sendReceive(BasicRequest.java:44)
at
weblogic.jts.internal.CoordinatorFactoryImpl_WLStub.createCoordinator(Coordi
natorFactoryImpl_WLStub.java:87)
at
weblogic.jts.internal.CoordinatorFactoryImpl_ServiceStub.createCoordinator(C
oordinatorFactoryImpl_ServiceStub.java:68)
at
weblogic.jts.internal.TxContext.getCoordinator(TxContext.java:148)
at weblogic.jts.internal.TxContext.begin(TxContext.java:85)
at weblogic.jts.internal.CurrentImpl.begin(CurrentImpl.java:27)
Problem Number 2 (This is not a problem but my doubt ):
-----------------------------------------------------------
Whenever i say lookup for "javax.jts.UserTransaction".this going
find..didn't get any NameNotFoundException..it means i got a reference of
UserTransaction.But when I try to print...
System.out.println ("User Transaction" + userTransaction)...its printing
null. This is so strange..but i was able to call methods on user
transaction..
Any help is greatly appreciated.
-Muruga