-
1. Re: JBoss7 SAR issue
Ales Justin Jan 6, 2012 5:58 AM (in response to pushpak1981)Is there any way i can get POJO loaded at server startup and bind to JNDI ?
You can use the AS5/6 jboss-beans.xml for POJOs in AS7.
I know there are some restrictions wrt JNDI binding, afaik there is just a recent thread floating around with that issue.
-
2. Re: JBoss7 SAR issue
Richard Opalka Jan 6, 2012 8:28 AM (in response to pushpak1981)Do i need to extend ServiceMbean for all the MBeans by default ?
Yes.
-
3. Re: JBoss7 SAR issue
Radim Hanus Jan 9, 2012 4:24 AM (in response to Richard Opalka)but both ServiceMBean and ServiceMBeanSupport are not available in module libs so that the transition of jboss4/5 sars into jboss7 is not smooth
there is another problem with regard to property editors not available for certain types like BigDecimal
as a workaround you may attach enclosed classes into your project there is also a hack to register property editors
-
ServiceMBeanSupport.java.zip 846 bytes
-
ServiceMBean.java.zip 214 bytes
-
-
4. Re: JBoss7 SAR issue
Richard Opalka Jan 9, 2012 6:35 AM (in response to Radim Hanus)Did U specify the following key-value pair
Dependencies: org.jboss.common-core
in your.sar/META-INF/MANIFEST.MF ?
-
5. Re: JBoss7 SAR issue
Radim Hanus Jan 9, 2012 7:05 AM (in response to Richard Opalka)sure, without this dependency the property editors cannot be registered
but I'm using jboss-deployment-structure.xml descriptor exclusively
-
6. Re: JBoss7 SAR issue
Ed Roberts Feb 2, 2012 1:18 PM (in response to Radim Hanus)Can I ask which version of JBoss you are using these ServiceMBeanSupport and ServiceMBean classes in, Radim ?
I am using 7.1.0.CR1b AS, and it appears that it only finds the create/destory/start/stop methods if they are implemented directly in the mbean impl class.
-
7. Re: JBoss7 SAR issue
Richard Opalka Feb 3, 2012 3:01 AM (in response to Ed Roberts)Ed Roberts wrote:
I am using 7.1.0.CR1b AS, and it appears that it only finds the create/destory/start/stop methods if they are implemented directly in the mbean impl class.
This have been fixed in AS 7.1.0.Final - see https://issues.jboss.org/browse/AS7-2574
-
8. Re: JBoss7 SAR issue
Ed Roberts Feb 3, 2012 4:21 AM (in response to Richard Opalka)Thanks Richard