User: mnf999 Date: 02/03/07 10:09:35 Modified: src/main/org/jboss/invocation/jrmp/server JRMPInvoker.java Log: using the objectname and not the container signature setting the transaction on the transaction interceptor Revision Changes Path 1.17 +7 -6 jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java Index: JRMPInvoker.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- JRMPInvoker.java 28 Feb 2002 08:08:39 -0000 1.16 +++ JRMPInvoker.java 7 Mar 2002 18:09:35 -0000 1.17 @@ -40,12 +40,13 @@ import org.jboss.metadata.MetaData; import org.jboss.deployment.DeploymentException; -import org.jboss.proxy.ejb.GenericProxy; import org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy; import org.jboss.invocation.Invocation; +import org.jboss.invocation.InvocationContext; import org.jboss.invocation.Invoker; import org.jboss.invocation.MarshalledInvocation; +import org.jboss.proxy.TransactionInterceptor; import org.jboss.tm.TransactionPropagationContextFactory; import org.jboss.tm.TransactionPropagationContextImporter; import org.jboss.logging.Logger; @@ -56,7 +57,7 @@ * from RMI/JRMP into the JMX base. * * @author <a href="mailto:[EMAIL PROTECTED]>Marc Fleury</a> - * @version $Revision: 1.16 $ + * @version $Revision: 1.17 $ * * <p><b>Revisions:</b><br> * <p><b>2002/01/13: Sacha Labourey</b> @@ -229,8 +230,8 @@ // Set the transaction manager and transaction propagation // context factory of the GenericProxy class - GenericProxy.setTransactionManager - ((TransactionManager)ctx.lookup("java:/TransactionManager")); + // FIXME marcf: This should not be here + TransactionInterceptor.setTransactionManager((TransactionManager)ctx.lookup("java:/TransactionManager")); JRMPInvokerProxy.setTPCFactory(tpcFactory); Invoker delegateInvoker = createDelegateInvoker(); @@ -356,8 +357,8 @@ // This is bad it should at least be using a sub set of the Registry // store a map of these names under a specific entry (lookup("ObjecNames")) and look on - // that subset FIXME - ObjectName mbean = (ObjectName) Registry.lookup((Integer) invocation.getContainer()); + // that subset FIXME it will speed up lookup times + ObjectName mbean = (ObjectName) Registry.lookup((Integer) invocation.getObjectName()); // The cl on the thread should be set in another interceptor Object obj = server.invoke(mbean,
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development