Thanks Thomas , i got
JTS5064: Unexpected exception occurred while delisting the resource
javax.transaction.xa.XAException: Invalid transaction state (Status = 0x0)
at com.jbase.jremote.io.JConnectionImpl.end(Unknown Source)
at com.sun.jts.jta.TransactionState.beforeCompletion(TransactionState.java:160)
at com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:135)
error and finally i changed the Connection factories as per your advice now it was working fine.