Astie... I just created this class following theses steps:
1) I created a Interface with init(),start(), stop(),detroy() methods. 2) I created a Class called Ebony , which implements the interface above. 3) I made all implementations nested to this class works fine. 4) I made an special file called my_mbean.xml describing my special MBean this way: <?xml version="1.0" encoding="UTF-8"?> <server> <mbean code="com.argos.util.jmx.Ebony" name="DefaultDomain:service=ebony"/> </server> Where Ebony is my Class where the implementation was made. 5) I Deploy it 6) I get this error: 19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope ration 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: <none> Incompletely deployed packages: [EMAIL PROTECTED] { url=file:/C:/jboss/server/defaul t/deploy/ebony_service.xml } deployer: [EMAIL PROTECTED] status: Deployment FAILED reason: Class does not expose a management interface : com.argos.util.jmx.Ebony; - nested throwable: (javax.management.NotCompliantMB eanException: Class does not expose a management interface: com.argos.util.jmx.E bony) state: FAILED watch: file:/C:/jboss/server/default/deploy/ebony_service.xml lastDeployed: 1056408707513 lastModified: 1056408708000 mbeans: ]MBeans waiting for classes: <none> MBeans waiting for other MBeans: <none> 7) I made the copy of Jar file to de Lib directory of my default configuration Server... Have other more simpler way that this above? Any Idea? If possible can you send a example of this declaration inside jboss configuration file? Regards Edgar ----- Original Message ----- From: "Astie, Sebastien" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 23, 2003 6:30 PM Subject: RE: [JBoss-user] Run a class onStartup Hello Edgar, The obvious way to start a process at startup is to wrap your class in an MBean and declare the MBean in user-service.xml -----Original Message----- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:07 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Run a class onStartup Hi Folks... Can I put a simple .class to run in JBoss Startup? For example, to start a SessionBean automaticlly... Any Idea? Regards Edgar ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user