I have a webapplication(simple jsp,servlets). There are some desktop applications running on same servers using same database. To increase the performance, i thought of using any caching framework(Oscache,ehcache). Jsp can retrieve some data from database and some other data from cache. A background application can put data into cache and update data at appropriate time. I can put cache in jndi and webapplication can access cache through jndi. The data in cache will change later in application lifetime.
Is this is a good way to use cache across application or there are better way to do it.
Please also give the name of some free jndi/ldap servers.