User: mnf999  
  Date: 02/02/06 10:27:50

  Modified:    src/main/org/jboss/invocation/jrmp/server JRMPInvoker.java
  Log:
  Fix for caching the Object Name, SPEEEED!
  
  Revision  Changes    Path
  1.7       +4 -2      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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JRMPInvoker.java  2002/01/14 20:35:59     1.6
  +++ JRMPInvoker.java  2002/02/06 18:27:50     1.7
  @@ -54,7 +54,7 @@
   *
   *  @author <a href="mailto:[EMAIL PROTECTED]>Marc Fleury</a>
   *
  -*  @version $Revision: 1.6 $
  +*  @version $Revision: 1.7 $
   *
   *  <p><b>Revisions:</b><br>
   *  <p><b>2002/01/13: Sacha Labourey</b>
  @@ -314,7 +314,9 @@
            invocation.setTransaction(importTPC(((MarshalledInvocation) 
invocation).getTransactionPropagationContext()));
                  
            // Extract the ObjectName, the rest is still marshalled
  -         ObjectName mbean = new ObjectName((String) invocation.getContainer());
  +         // ObjectName mbean = new ObjectName((String) invocation.getContainer());
  +         
  +         ObjectName mbean = (ObjectName) Registry.lookup((Long) 
invocation.getContainer());
            
            // The cl on the thread should be set in another interceptor
            return new MarshalledObject(server.invoke(mbean, invocation.getType(),  
new Object[] {invocation}, new String[] {"java.lang.Object"})); 
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to