Hi,
I'm migrating an application from JBoss 5.1.0 to JBoss 7.1.0 .
I'm using a SAR archive inside an EAR . The SAR's jboss-service.xml looks like this :
server xmlns="urn:jboss:service:7.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:service:7.0 jboss-service_7_0.xsd">
<mbean code="com.persistence.HibernateService" name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
<depends>myApp:service=MyConfigurator</depends>
......
In JBoss 5.1.0 the element in <depends> is configured with :
@Service(objectName = "myApp:service=MyConfigurator")
@Management(MyConfiguratorManagment.class)
How could I migrate this ?
I saw some posts that recommended using @Startup and @Singleton since @Service and @Management are no longer available in JBoss 7