General J2EE: Datasources are not available outside the virtual machine?

  1. Why are datasources not available outside the JVM. I mean, suppose you have a datasource defined(through some xml file), and the application server manages this datasource. This datasource also has a jndi name for it. Now, suppose i try looking up this datasource through some Standalone client, i find that there is no object with specified jndi name. I went through the xml file for the datasource and found the following comment:

    "Datasources are not available outside the virtual machine"

    Can anyone tell me the reason for the same?

    Thank you
  2. I found this behavior in JBoss-3.2.3. They do mention that this behavior has changed in JBoss-4 and higher versions. But what was the reason for not allowing access of datasources outside JVM?

    Thank you