4 Replies Latest reply on Jul 7, 2006 10:01 AM by Giovanna Ferrari

    Testing Pooled Invoker with ECperf

    Giovanna Ferrari Newbie

      I'm using ECperf from Sun with JBoss3.2.3.
      Everything works fine with the JRMP Invoker. With the Pooled Invoker instead, it works only if driver and server are on the same node (unacceptable choice for performance tests).

      In standardjboss.xml, I did substitute
      <invoker-mbean>jboss:service=invoker,type=jrmp</invoker-mbean>
      with
      <invoker-mbean>jboss:service=invoker,type=pooled</invoker-mbean>

      And I understood this is the only change to do in the configuration.

      It seems that the driver requests don't get through.
      I wrote few lines of code to trace the error (ECperf throws only "UndeclaredThrowableException"). The test application gets context and does the lookup of the bean fine, but, when it calls the create method on the bean, the connection from the client stub is refused.

      Is there anything else that should be changed in the configuration of JBoss or ECperf?

      The test code:
      --
      public class Test
      {
      public static void main(String[] args)
      {
      try
      {
      String ohome = "OrderSes";
      Context ctx = new InitialContext();
      OrderSesHome orderSesHome = (OrderSesHome)
      PortableRemoteObject.narrow(ctx.lookup(ohome), OrderSesHome.class);
      System.err.println(" -> From Here");
      OrderSes orders = orderSesHome.create();
      }
      catch(Exception e)
      {
      e.printStackTrace();
      }
      }
      }
      --

      The error:
      --
      -> From Here
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy0.create(Unknown Source)
      at com.sun.ecperf.driver.Test.main(Test.java:29)
      Caused by: java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:169)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:452)
      at java.net.Socket.connect(Socket.java:402)
      at java.net.Socket.(Socket.java:309)
      at java.net.Socket.(Socket.java:124)
      at
      org.jboss.invocation.pooled.interfaces.PooledInvokerProxy.getConnection(PooledInvokerProxy.java:236)
      at
      org.jboss.invocation.pooled.interfaces.PooledInvokerProxy.invoke(PooledInvokerProxy.java:322)
      at
      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
      at
      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at
      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
      at
      org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      ... 2 more
      --