JNDI Best Practices

In this section, we look at some tips that can be useful in improving performance while using JNDI.

Avoiding Storing Application Data in the JNDI Tree

The JNDI tree should normally be used only to store objects when WebLogic Server starts up. Like any other naming service, the JNDI tree should not be used for frequent updates because it isn't designed for such tasks. You must use Session objects, cookies, or even databases to store temporary application data. Any updates to the JNDI tree and the objects within it have to be propagated to the other servers in the cluster. This can be expensive, especially if the object is heavy.

Optimizing Lookups from Remote Clients

While inside the JVM of WebLogic Server, making JNDI lookups ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.