I have the same question. Some one please answer!
I think I had the same issue, but correct me if I'm wrong. You want the JNDI datasource to not be in the java: namespace so that you can access it externally? If that's your question, then I have two answers:
1.) You cannot move those datasources outside of java:, meaning they have to be used by JBoss components residing in JBoss' JVM.
2.) You CAN move them externally by creating some sort of proxy objects with public remote interfaces that return datasource objects.
That seems to be the picture I have gotten from others.
Hope that helps!
Thanks for the info.
Let me try and reword the question. I want to be able to map the JNDI name to "datasouce" with out the java:/. Then when I do a lookup in code, I don't have to have the java:/ in front of the data source name. WebLogic allows you to map the JNDI name to anything you wish. Thanks
Has anyone figured this out yet? Basically, I have the same question. I have the app that needs to be deployed into JBoss and WebLogic. For JBoss, I would have to look up the datasource using "java:/myDS". Any way to work around this so that I can just look it up by using "myDS" in my code? Or better yet, any way to look it up using "java:comp/env/myDS" in JBoss?
Thanks in advance,
If you use "java:comp/env/jdbc/myDS" for look up to datasource from a session bean
add following to your tag in ejb-jar.xml
and following to tag in jboss.xml
I hope this will solve your problem.