0 Replies Latest reply on May 25, 2012 4:21 AM by Sergiu Pienar

    Migrating SAR archive to JBoss 7

    Sergiu Pienar Expert



      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"


            xsi:schemaLocation="urn:jboss:service:7.0 jboss-service_7_0.xsd">


      <mbean code="com.persistence.HibernateService" name="jboss.jca:service=HibernateFactory,name=HibernateFactory">




      In JBoss 5.1.0 the element in <depends> is configured with :


      @Service(objectName = "myApp:service=MyConfigurator")




      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