commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject [transaction] XAResource wrapper for commons transaction
Date Thu, 03 Nov 2005 11:16:01 GMT

I now implement the XAResource wrapper for commons transaction and came across
two issues:

1. Commons transaction is not prepared for JNDI. This is probably not a must,
but most of the containers seem to work with JNDI. When trying it that way I get
the following exception:

java.lang.IllegalArgumentException: RegistryContext: object to bind must be
Remote, Reference, or Referenceable
  at com.sun.jndi.rmi.registry.RegistryContext.encodeObject
  at com.sun.jndi.rmi.registry.RegistryContext.rebind(
  at javax.naming.InitialContext.rebind(
  at com.rauser_ag.transaction.file.XAFileResourceTestCase.setUp

Any opinion about this?

2. Using the transaction id for the name of the temporary directory is not very

2005-11-03 12:11:47,293 FileResourceManager ERROR - Saving status information to
/transaction.log' failed! Could not create file build\tmp\bb14:38:40:0177cdf01a0acfa3a8...a42401:
0177cdf01a0acfa3a8f38...000000\transaction.log (Die Syntax für den Dateinamen,
Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch)
  at Method)
  at org.apache.commons.transaction.file.FileResourceManager
  at org.apache.commons.transaction.file.FileResourceManager
  at org.apache.commons.transaction.file.FileResourceManager.startTransaction
  at com.rauser_ag.transaction.file.XAFileTransactionalResource.begin
  at org.apache.commons.transaction.util.xa.AbstractXAResource.start
  at org.objectweb.jotm.TransactionImpl.enlistResource(
  at com.rauser_ag.transaction.file.XAFileResourceTestCase.testCreateCommit

In this case it is the Xid I have no influence on. But even without XA stuff you
can run into this issue as you allow an arbitrary Object as id.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message