A modularization issue... I have some (still uncommitted) code that uses the DTM to implement UserTransaction over JBoss remoting. The code is very simple and consists on just two classes:
org.jboss.tm.remoting.client.ClientUserTransaction org.jboss.tm.remoting.client.ClientUserTransactionObjectFactory Those classes are similar to the corresponding ones in package org.jboss.tm.usertx.client (in the server module) an in package org.jboss.tm.iiop.client (in the iiop module). The object factory class checks if it is running in the server VM or not. If it is not running in the server VM, it creates a ClientUserTransaction. Otherwise it creates a ServerVMClientUserTransaction. I placed the new classes in the server module, as the object factory depends on ServerVMClientUserTransaction, which is also in the server module. They would be better placed in the transaction module, but then the transaction module would be dependent upon the server module. I don't know why ServerVMClientUserTransaction and the other usertx classes live in the server module. It looks like the transaction module would be the right place for them. At this point, however, we cannot move those classes, as this would break the compatibility with older clients. So my options are: (1) put the new classes in the transaction module and create a new dependency from the transaction module on the server module, or (2) leave the new classes in the server module, together with ServerVMClientUserTransaction, or (3) put the new classes in the transaction module and create a copy of ServerVMClientUserTransaction in the transaction module. Option (1) sounds like a bad idea to me, so it's going to be either (2) or (3). Does anybody care? Francisco View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875121#3875121 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875121 ------------------------------------------------------- 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
