[jboss-user] [JNDI/Naming/Network] - Problem with resource-mapping
hdmonty
do-not-reply at jboss.com
Wed Nov 21 12:26:23 EST 2007
Hi,
this is in my SessionBean:
|
| (...)
| @Resource(name="myDB", mappedName="java:/MyDefaultDS")
| DataSource dataSource;
| (...)
|
I deploy this in an ear-File, that looks like this:
| - myBean.ear
| myJar.jar
| - META-INF
| application.xml
In my server/default/deploy-Folder is an oracle-ds.xml-File with following Content:
(..)
| <local-tx-datasource>
| <jndi-name>MyDefaultDS</jndi-name>
| (...)
| <local-tx-datasource>
| <jndi-name>TheOtherDS</jndi-name>
| (...)
Now, I have an application that shall uses the 'TheOtherDS'. I can use a DeploymentDescriptor for each Bean but I would like to say it in one File for all:
"Please use for the resource "myDB" the global Name "java:/TheOtherDS".
Is this possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106833#4106833
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106833
More information about the jboss-user
mailing list