[jboss-user] [Datasource Configuration] - Migrate JBoss 4 datasource/jndi configuration in jboss.xml to JBoss 7

Joern Ohmen do-not-reply at jboss.com
Fri Nov 16 04:47:43 EST 2012


Joern Ohmen [https://community.jboss.org/people/joerno] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/776859#776859

--------------------------------------------------------------
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 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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/776859#776859]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121116/7de9e049/attachment.html 


More information about the jboss-user mailing list