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

      Hello,

       

      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:

       

      {code:java}

      <jboss>

       

          <resource-managers>

              <resource-manager>

                  <res-name>XYDatabase</res-name>

                  <res-jndi-name>java:/XY_DS</res-jndi-name>

              </resource-manager>

          </resource-managers>

       

          <enterprise-beans>

              <session>

                  <ejb-name>Info</ejb-name>

                  <jndi-name>Info</jndi-name>

                  <resource-ref>        

                      <res-ref-name>jdbc/DataSource</res-ref-name>

                      <resource-name>XYDatabase</resource-name>

                  </resource-ref>

              </session>

          </enterprise-beans>

       

      </jboss>

      {code}

       

      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:

       

       

      {code}

       

      [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

       

      {code}

       

      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