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&...]