[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - invmacceptor auto created in remotingserviceimpl

timfox do-not-reply at jboss.com
Wed Feb 18 03:42:02 EST 2009


  | // when JMX is enabled, it requires a INVM acceptor to send the core messages
  |       // corresponding to the JMX management operations (@see ReplicationAwareStandardMBeanWrapper)
  |       if (jmxEnabled)
  |       {
  |          boolean invmAcceptorConfigured = false;
  |          for (TransportConfiguration config : transportConfigs)
  |          {
  |             if (InVMAcceptorFactory.class.getName().equals(config.getFactoryClassName()))
  |             {
  |                invmAcceptorConfigured = true;
  |             }
  |          }
  |          if (!invmAcceptorConfigured)
  |          {
  |             transportConfigs.add(new TransportConfiguration(InVMAcceptorFactory.class.getName(), new HashMap<String, Object>(), "in-vm"));
  |          }
  |       }
  | 

I don't understand why it's necessary....

If you want to send a management message from inside the server, no need for a session factory. just create a serversession directly and use that.

Also I notice that *gulp* you're creating a new session for every invocation in replicationAwareInvoke.

That's a performance killer!

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210963#4210963

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210963



More information about the jboss-dev-forums mailing list