-
1. Re: Support for JBoss EJB 3.0 extensions - Management & Service
jaikiran Aug 29, 2011 6:32 AM (in response to porobd)@Service was deprecated in AS6, so it will no longer be supported in AS7.
-
2. Re: Support for JBoss EJB 3.0 extensions - Management & Service
jaikiran Aug 29, 2011 6:37 AM (in response to jaikiran)You can instead use @javax.ejb.Singleton which has been introduced in EJB3.1 and provides similar feature (except for JMX registration).
-
3. Re: Support for JBoss EJB 3.0 extensions - Management & Service
wolfc Aug 29, 2011 8:06 AM (in response to jaikiran)I am contemplating adding a JMX business view to SLSB and Singleton.
Would that cover your use case?
The main reason why @Service + @Management is no longer supported is documented in EJBTHREE-655.
-
4. Re: Support for JBoss EJB 3.0 extensions - Management & Service
smtrax Sep 6, 2011 4:35 AM (in response to porobd)I have a similair problem and don't know hot to fix it.
So in jboss 5.1 and 6.0 we used JBoss EJB 3.0 External API :
@Service(objectName = ....)
@Management(x.class)
@Depends({ ...name... })
How to replace that anotations in JBOSS 7 ? -
5. Re: Support for JBoss EJB 3.0 extensions - Management & Service
jaikiran Sep 6, 2011 5:32 AM (in response to smtrax)Mitja Skuhala wrote:
@Service(objectName = ....)
@Management(x.class)
@Depends({ ...name... })
How to replace that anotations in JBOSS 7 ?There's no JMX capabilities for EJB3 in AS7 yet. However, if you were using @Service for the sake of doing some tasks at application startup, then you can achieve that functionality using @Startup @Singleton EJB3.1 bean.
-
6. Re: Support for JBoss EJB 3.0 extensions - Management & Service
porobd Sep 30, 2011 8:51 AM (in response to wolfc)JMX business view to SLSB and Singleton might be a good idea. Which release are you planning to add this ? Also a related question; Is the org.jboss.system.ServiceMBean no longer available in JBoss AS 7; I could not find that class in AS 7.0.1 ? I am planning to port some code from AS 4.2.3 to 7.0 which uses ServiceMBean. If this is no longer supported what would be the best way to achieve the same functionality ?
-
7. Re: Support for JBoss EJB 3.0 extensions - Management & Service
askaralus Dec 2, 2011 5:50 AM (in response to wolfc)JMX business view for SLSB and Singleton would be a great improvement. Here's our use case: We have huge applications that perform a lot of batch processing (banking/finance). The batch scheduling is triggered via UC4, which provide shell (.sh) and jmx executors. The batch application logic is implemented as EJB3 services.
This all works fine with JBoss EAP 4.3.X (@Management, @Service annotations). Without the jmx capabilities for EJB3, we are not able to migrate out applications to the new JBoss 7 (EAP 6) plattform.