[jboss-user] [Management, JMX/JBoss] - JBoss Remoting programmatic vs declarative Socket Invoker

yantriki do-not-reply at jboss.com
Sat Nov 17 00:09:56 EST 2007


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>

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

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



More information about the jboss-user mailing list