You can lookup a DS only in the server VM. Thus the java: namespace is the correct jndi namespace.
I don't know what kind of object you are looking up with WebSphere. Perhaps it makes sense to allow a global look up, but I don't think so.
bcoz of this i could not sleep all night yesterday.........
i did not know we needed to include the jndi name prefixed to java:
anyway all's well that ends well
Do you know why we have to include the "java:" prefix? I don't have to do that with websphere.
You don't (and probably should not) lookup directly from the java: name space, rather use the bean's private ENC (java:comp/env) and map that to the actual lookup name in your jboss.xml file.