RE: [JBoss-user] Run a class onStartup
Sorry! You said that you didn't have documentation about this specification, so I figured that was what you were after... -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 23:34 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Danny... I am talking about JBoss integration with JMX, I just solve my trouble after some emails in the list, And nothing in the sites or other source of documentations available for me However, everybody thanks by link Great... Edgar - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:57 AM Subject: RE: [JBoss-user] Run a class onStartup I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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
RE: [JBoss-user] Run a class onStartup
HI, at http://www.theserverside.com there are free chapters available of the book 'JMX in Action'.. u can check 'em out.. i have read almost all, and they are very useful... regards marco -Original Message- From: ext Astie, Sebastien [mailto:[EMAIL PROTECTED] Sent: 25 June, 2003 01:58 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Run a class onStartup Edgar, If you want to learn more about JMX, I really suggest the JMX book from PEARSON EDUCATION. It helped me a lot understanding JBOSS. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Danny... I am talking about JBoss integration with JMX, I just solve my trouble after some emails in the list, And nothing in the sites or other source of documentations available for me However, everybody thanks by link Great... Edgar - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:57 AM Subject: RE: [JBoss-user] Run a class onStartup I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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
Re: [JBoss-user] Run a class onStartup
Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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 --- 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
RE: [JBoss-user] Run a class onStartup
I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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 --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage
Re: [JBoss-user] Run a class onStartup
Danny... I am talking about JBoss integration with JMX, I just solve my trouble after some emails in the list, And nothing in the sites or other source of documentations available for me However, everybody thanks by link Great... Edgar - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:57 AM Subject: RE: [JBoss-user] Run a class onStartup I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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
RE: [JBoss-user] Run a class onStartup
Edgar, If you want to learn more about JMX, I really suggest the JMX book from PEARSON EDUCATION. It helped me a lot understanding JBOSS. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Danny... I am talking about JBoss integration with JMX, I just solve my trouble after some emails in the list, And nothing in the sites or other source of documentations available for me However, everybody thanks by link Great... Edgar - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:57 AM Subject: RE: [JBoss-user] Run a class onStartup I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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
Re: [JBoss-user] Run a class onStartup
Thanks Again Sebastien... I had seen this Book, it´s very good really I think to buy soon. For now you and Nicholas are big friends provided the help to solve my problem For other friends interesting in this book, following the url with more details: http://vig.pearsoned.com/store/product/1,3498,store-6781_isbn-0672322889,00. html Regards Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 7:58 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, If you want to learn more about JMX, I really suggest the JMX book from PEARSON EDUCATION. It helped me a lot understanding JBOSS. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Danny... I am talking about JBoss integration with JMX, I just solve my trouble after some emails in the list, And nothing in the sites or other source of documentations available for me However, everybody thanks by link Great... Edgar - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 11:57 AM Subject: RE: [JBoss-user] Run a class onStartup I guessed at: http://java.sun.com/jmx How much more public would you like?! ;-) Rgds, Dan. -- Danny Yates -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: 24 June 2003 15:36 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup Thanks Sebastien You're right The big problem is I don´t have documentation about this Specification I think that this subjects can be more public, more easy to find. Regards... Edgar - Original Message - From: Astie, Sebastien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 23, 2003 8:35 PM Subject: RE: [JBoss-user] Run a class onStartup Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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
Re: [JBoss-user] Run a class onStartup
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
RE: [JBoss-user] Run a class onStartup
Edgar, When you create an MBean (Standard MBean), It must follow a naming convention : Let's call the implementation class Foo, its interface must be called FooMBean. It is part of the JMX spec. I guess that your Mbean is not implemented with this convention. Sebastien -Original Message- From: Edgar Silva [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Run a class onStartup 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 --- 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