Rafal,
 
  I'd like to give you a full HOWTO for this task, but perhaps the JBoss.Net developers/users have better information on the topic.  I'm forwarding this to the jboss-users list so that you can get their input as well.  Here's a little to get you started.
 
  First, take a look at jboss-all\jboss.net\testsuite\src\resources\jmx\wsr\META-INF\web-service.xml.  This is an example of the deployment descriptor you'll have to make for your MBean.  Note that this descriptor exposes an MBean whose method signatures have "known" types only (primitives, Strings, arrays, etc.).  If your MBean uses "unknown" types, like com.mycompany.MyObject, then you must provide a beanMapping element in the descriptor.  See the Axis docs if this is the case.
 
  After deploying this descriptor (in a web service archive), you should have your bean exposed as a webservice (it's that simple).
 
  To make a client to access that service, take a look at jboss-all\jboss.net\testsuite\src\main\org\jboss\test\net\jmx\WSRJMXAccessUnitTestCase and its superclasses.  All the code you need to write a client is in there.
 
  - Matt
-----Original Message-----
From: Rafal Piotrowski [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 3:29 PM
To: [EMAIL PROTECTED]
Subject: JMX.net

Hi Mat,

 

Could you please send me some info on how can I make my MBean be WebService?

 

Thanks,

 

Rafal Piotrowski

BSI sa

ISOS – Development

Via Peri 21b

CH-6900 Lugano, TI

Switzerland

 

Reply via email to