[jboss-user] [JNDI/Naming/Network] - Re: Problem with resource-mapping

hdmonty do-not-reply at jboss.com
Thu Nov 22 17:16:49 EST 2007

I mean that the Resource-name('myDB') is mapped on a datasource ear-wide. First I thought you can make this in a jboss-app.xml or applikation.xml like you can do that in a jboss-web.xml but that doesnt work. 

My problem is, I would like to avoid to build a deployment descriptor for twenty or more beans in an applikation. With my beans I want to make up reusable code. So I decided, that every datasource gets the name 'myDB' and is mapped to the global jndi-name 'java:/MyDefaultDS'. Now I have the problem that more than one applikation is deployed on a server with different databases. I can manage this with a deployment descriptor in each bean but that is to complicated.

I hope the problem is more perspicuous even if my english is a disaster.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107204#4107204

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107204

More information about the jboss-user mailing list