Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can expose datasources as JNDI resources from the management console of the Application Server as explained in section Expose as a JNDI Datasource.

Next, let's take a look at how to access these JNDI resources within the webapps that are hosted in the same Application Server instance. This was not possible in previous versions due to the way JNDI context isolation is implemented for webapps at tomcat level. The implementation states that one webapp’s JNDI context cannot be accessed by another webapp, unless the JNDI resources are registered globally. Since webapps run isolated from each other, their contexts will also be isolated. The JNDI context of carbon is also usually isolated from webapps.

...