0 Replies Latest reply on Nov 17, 2007 12:09 AM by Vivek Srivastav

    JBoss Remoting  programmatic vs declarative Socket Invoker

    Vivek Srivastav Newbie

      I have the remoting working for ServerCallbackHandler when registering a socket transport programatically, however when I want to do it in service definition it does not work for me. I would appreciate any help.

      LicenseServer.sar
      |
      --META-INF/jboss-service.xml

      I get the following error

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.remoting:service=Connector,transport=Socket
       State: FAILED
       Reason: java.lang.ClassNotFoundException:
       org.vss.service.license.ServerCallbackHandler
      


      I checked the SAR file and it has the class in it.

      here is my service file:

      <?xml version='1.0' encoding='UTF-8' ?>
      <!DOCTYPE server PUBLIC
       "-//JBoss//DTD MBean Service 4.0//EN"
       "http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
      <server>
      <!-- this is where I could do it programatically -->
      <mbean code="org.vss.service.license.LicenseService"
       name="corview:service=LicenseService"
       xmbean-dd="META-INF/license-xmbean.xml">
       <depends>jboss:service=Naming</depends>
      </mbean>
      <mbean code="org.jboss.remoting.transport.Connector"
       name="jboss.remoting:service=Connector,transport=Socket"
       display-name="Socket transport Connector">
      
       <attribute name="InvokerLocator">
       <![CDATA[socket://0.0.0.0:6034]]>
       </attribute>
      
       <attribute name="Configuration">
       <config>
       <handlers>
       <handler subsystem="self">
       org.vss.service.license.ServerCallbackHandler
       </handler>
       </handlers>
       </config>
       </attribute>
       </mbean>
      </server>