the 'java:/datasouce' can only used in the jboss's jvm,can i set up a global jndi name for a datasouce so i can use it in client in different jvm?
No.The DataSource is connected to many other services that can only be found in the JBoss VM.