Re: [transaction] XAResource wrapper for commons transaction
Oliver Zeigermann oliver.zeigermann at gmail.com writes: 1. Commons transaction is not prepared for JNDI. Honestly, I have no idea what this is all about. Could you explain? Hello Oliver, to be honest I do neither know that much about it. My impression was that most of the JTA transaction manager use JNDI for binding and looking up the resources. And this is mostly coupled with RMI. Now when I tried to bind my XAFileResource or the commons transaction FileResourceManager to my JNDI context (= RMI) I got the exception that one of those interfaces must be implemented. I already worked with IBM's DB2XADataSource and the more common StandardXADataSource of ObjectWeb's XAPool both implementing javax.naming.Referenceable [1]. Now there is the question if this is really an issue of FileResourceManager or just of my wrapper. So it might be something for your AbstractXAResource too. From what I understand this Reference/Referenceable stuff seems to be some factory mechanism, but I hoped to get some more information here. Regards, Jörg [1] http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/Referenceable.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [transaction] XAResource wrapper for commons transaction
2005/11/8, Joerg Heinicke [EMAIL PROTECTED]: Oliver Zeigermann oliver.zeigermann at gmail.com writes: 1. Commons transaction is not prepared for JNDI. Honestly, I have no idea what this is all about. Could you explain? Hello Oliver, to be honest I do neither know that much about it. My impression was that most of the JTA transaction manager use JNDI for binding and looking up the resources. And this is mostly coupled with RMI. Now when I tried to bind my XAFileResource or the commons transaction FileResourceManager to my JNDI context (= RMI) I got the exception that one of those interfaces must be implemented. I already worked with IBM's DB2XADataSource and the more common StandardXADataSource of ObjectWeb's XAPool both implementing javax.naming.Referenceable [1]. Now there is the question if this is really an issue of FileResourceManager or just of my wrapper. So it might be something for your AbstractXAResource too. From what I understand this Reference/Referenceable stuff seems to be some factory mechanism, but I hoped to get some more information here. Regards, Jörg [1] http://java.sun.com/j2se/1.4.2/docs/api/javax/naming/Referenceable.html I have no idea about that. Maybe anyone else? Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [transaction] XAResource wrapper for commons transaction
2005/11/3, Joerg Heinicke [EMAIL PROTECTED]: 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 (RegistryContext.java:403) at com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:131) at javax.naming.InitialContext.rebind(InitialContext.java:367) ... at com.rauser_ag.transaction.file.XAFileResourceTestCase.setUp (XAFileResourceTestCase.java:65) Honestly, I have no idea what this is all about. Could you explain? Thanks Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[transaction] XAResource wrapper for commons transaction
Hello, 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 (RegistryContext.java:403) at com.sun.jndi.rmi.registry.RegistryContext.rebind(RegistryContext.java:131) at javax.naming.InitialContext.rebind(InitialContext.java:367) ... at com.rauser_ag.transaction.file.XAFileResourceTestCase.setUp (XAFileResourceTestCase.java:65) Any opinion about this? 2. Using the transaction id for the name of the temporary directory is not very reliable: 2005-11-03 12:11:47,293 FileResourceManager ERROR - Saving status information to 'build/tmp/bb14:38:40:0177cdf01a0acfa3a8...a42401:0177cdf01a0acfa3a8f38...00 /transaction.log' failed! Could not create file java.io.FileNotFoundException: build\tmp\bb14:38:40:0177cdf01a0acfa3a8...a42401: 0177cdf01a0acfa3a8f38...00\transaction.log (Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:179) at java.io.FileOutputStream.init(FileOutputStream.java:131) at org.apache.commons.transaction.file.FileResourceManager $TransactionContext.saveState(FileResourceManager.java:1447) at org.apache.commons.transaction.file.FileResourceManager $TransactionContext.init(FileResourceManager.java:1342) at org.apache.commons.transaction.file.FileResourceManager.startTransaction (FileResourceManager.java:515) at com.rauser_ag.transaction.file.XAFileTransactionalResource.begin (XAFileTransactionalResource.java:28) at org.apache.commons.transaction.util.xa.AbstractXAResource.start (AbstractXAResource.java:186) at org.objectweb.jotm.TransactionImpl.enlistResource(TransactionImpl.java:432) at com.rauser_ag.transaction.file.XAFileResourceTestCase.testCreateCommit (XAFileResourceTestCase.java:93) 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. Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]