3 Replies Latest reply on Mar 19, 2013 11:41 PM by Viet Tran

    Migrate JBoss 4 datasource/jndi configuration in jboss.xml to JBoss 7

    Joern Ohmen Newbie



      I try to migrate a JBoss 4 application to JBoss 7 and can not find a way to handle the <resource-managers> content.


      My jboss.xml (of a jar-file inside an ear-file) looks like this:


























      Is there a way I can map this to JBoss 7? I don't have the possibility to change the code...


      Now I get this error:





      [jboss.naming.context.java.jboss.resources.jdbc.DataSource] missing ","jboss.deployment.subunit.\"100_xybean.ear\".\"system-ejb.jar\".component.Info.START

      [JBAS014861: <one or more transitive dependencies>] missing ","jboss.naming.context.java.comp.100_xybean.system-ejb.Info.env.jdbc.DataSource

      [jboss.naming.context.java.jboss.resources.jdbc.DataSource] missing","jboss.deployment.subunit.\"100_xybean.ear\".\"system-ejb.jar\".jndiDependencyService




      I know that ejb-jar.xml and jboss.xml is really old and I can use jboss-ejb3.xml instead. But I have no idea how to handle <resource-managers>.


      Thanks in advance