1 Reply Latest reply on Jun 21, 2007 10:45 AM by dimitris

    Changing from remoting.transport.Connector to invocation.poo

    ecatum

      Hi,

      We've developped an application where a webapp agent communicates using Invoke/rmi with a server servlet serviced by our handler (MySubSys.class):

       ----------------------- -------------------------------------
      | webapp agent .invoke | ---RMI---> | servlet -> handler (MySubSys.class) |
       ----------------------- -------------------------------------
      


      Using invoke works fine on the agent's side but the server servlet gets rapidly limited under heavy load because of increasing number of agent connections (seen in this example using: netstat | grep 8052).
      -> Driving the client to be refused new connections.

      So, I would like to change the following jboss-service.xml inside my mySubSys.sar:

      <server>
      
       <mbean code="org.jboss.remoting.transport.Connector"
       name="jboss.remoting:service=Connector,transport=RMI"
       display-name="MySubSys Socket transport Connector">
       <attribute name="Configuration">
       <config>
       <invoker transport="rmi">
       <attribute name="registryPort" isParam="true">8053</attribute>
       <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
       <attribute name="serverBindPort">8052</attribute>
       </invoker>
       <handlers>
       <handler subsystem="MYSUBSYS">com.subsys.MySubSys</handler>
       </handlers>
       </config>
       </attribute>
       <depends>jboss.jca:service=DataSourceBinding,name=subsysDS</depends>
       </mbean>
      
      </server>
      


      for another configuration using invocation.pooled.server.PooledInvoker ?

      Any suggestions?
      Thanks a lot