You cannot get a datasource outside of the vm jboss is running in. If you want your client to use a datasource , wrap your client up in an mbean and run it in a stripped down jboss instance.
JBoss does not currently have a client container implementation, which is perhaps what is getting you the ds in weblogic?
IWeblogic 5.1 uses an RMI based DataSource for clients.
I also have this problem but WebLogin does not. With WebLogic the java application can successully lookup DataSource remotely. It is quite inconvenient. But anyway, how I can wrap the lookup the DataSource with MBean? Any hints?