[jboss-user] [JBoss Cache Users] - Design Question regd. using Jboss Cache in Web Application

schamarthi do-not-reply at jboss.com
Sun Sep 27 08:15:20 EDT 2009


We have two spring based web applications and we are using JPA (Hibernate provider) with EhCache as secondarly level cache.

We have some entities that are common between both the applications.

now we want to have a cache at business layer and we thought of going with Jboss Cache and bind it to Jndi so that both each application is in sync with updates.


  |   CacheFactory<String, Object> factory = new DefaultCacheFactory<String, Object>();
  |     cache = factory.createCache("jboss-cache.xml");
  |     cache.create();
  |     cache.start();
  |     
  |     JndiTemplate jndiTemplate = getJndiTemplate();
  |     jndiTemplate.bind(JBOSS_CACHE_JNDI_NAME, cache);
    

do you foresee any issues in this kind of setup ? 

Appreciate any kind of information in this regd



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257210#4257210

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257210



More information about the jboss-user mailing list