Did you got the solution ?I am facing the same problem..
You can't access a datasource from outside the jboss vm. You can even fool jndi into thinking you are in another vm when you aren't by getting an initial context using a properties object with "localhost:1099".
Out of vm don't even try.
i had the same problem and found after long searching a very simple solution. Try instead of: lookup(java:/DefaultDS) only lookup(java:DefaultDS). I'll send you my ServiceLocator-Class where it was descript. It works fine!
Ops, I don't want to create a Smily. I mean: lookup(java : DefaultDS). Ignore the spaces!
I have gone through the ServiceLocator.java and found that you are trying to get the DataSource from different
JVM but through the EJB,which I dont want to do.I have
worked on weblogic,Orion,BorlandAS,Pramati etc where I
am able to get the Object reference from the jndi directly,I dont include the ejb layer in between there.Any
way the EJB in between will cause more delay...
Isn't this the limitation of the Jboss....
Even David has specified the same,that you can't access
the jndi directly from the different jvm...
Thanks for the reply...