I mean
+-- META-INF
| +--- jboss.service.xml (similar to the one you provided)
| +--- MANIFEST.MF
+-- test
| +-- MyTestMbean.class
| +-- MyTest.class
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3933035#3933035
Reply to the post :
Thanks for your answer, but I do confirm that the file name is well
jboss-service.xml and that classes are in the test directory.
I tried to deploy it in several servers but the problem persists.
I put my SAR in this address in order to allow you to test it:
Thank you, Dimitris,
I found the problem in my SAR. It was my fault. I wrote Mytest as class name
instead MyTest like a newbee. I read the jboss-service.xml file a hundred times
and I never realized my big mistake.
Thanks for your patience to all you.
View the original post :
My Interface:
package test;
|
| public interface MyTestMBean {
| public void start() throws Exception;
| public void stop() throws Exception;
| public String getMessage();
| public void setMessage(String message);
| }
Its implementation:
package test;
|
|
Thanks for your answer.
The example in the Wiki uses JBoss specific API.
Every time I try to deploy a simple Standard MBean, I get the same error:
org.jboss.deployment.DeploymentException: create operation failed for package
file:/D:/apps/appserver/jboss-3.2.5/server/default/deploy/MyTest.sar;
Do you have any example ?
I mean,
- I know how to deploy a simple Standard MBean by using xmbeans
(jboss-service.xml file with tag xmbeans-dd pointing to my xmbean file
describing my MBean interface) from a SAR.
- I know how to write specific code to deploy a Standard MBean by using JSR-3
I'm not sure your example answers my question. It shous non standard JMX
MBeans.
I'm trying to deploy a simple Standard MBean on my JBoss by using a SAR file.
It's a simple custom class implementing a simple custom interface. There is no
org.jboss... heritage or implementation. No MBeanSupport
As long as I now, only Model MBean, and more precisely XMBean, can be deployed
by using a *-service.xml file into a SAR. My MBean implementation has to extend
ServiceMBeanSupport and my MBean interface has to extend MBeanService.
Can I deploy a simple Standard MBean (without extending or
A precision:
My question is
Can I use a SAR for deploying a Standard MBean that uses only standard JMX
classes ?.
I want to use a *-service.xml file to declare my Standard MBean.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928153#3928153
Reply to