1 Reply Latest reply on Aug 30, 2010 12:38 PM by Galder Zamarreño

    How to configure JDBCCacheLoader on JBoss 5 ?

    Francis Tellina Newbie

      Dear all,

      I'm trying to configure data caching on a JBoss 5.1.0 cluster. I'd like to use a JDBC Cache Loader instead of the default FileLoader.

      So, looking at the Project docs, I've tried updating jboss-cache-manager-jboss-beans.xml with:

       

      <property name="cacheLoaderConfig">
                  . . . . .
                                                     
                         <property name="individualCacheLoaderConfigs">
                           <list>
                                <bean class="org.jboss.cache.loader.JDBCCacheLoader">
                                  <property name="cache.jdbc.datasource">java:/NMS</property>
                                </bean>

                           </list>

      ....

      </property>

       

      Unfortunately when JBoss starts the following log error is issued:

       

      Caused by: java.lang.IllegalArgumentException: Property is not readable: cache for org.jboss.cache.loader.JDBCCacheLoader
              at org.jboss.beans.info.plugins.DefaultPropertyInfo.get(DefaultPropertyI
      nfo.java:131)
              at org.jboss.beans.info.plugins.BeanInfoUtil.getNestedPropertyInfo(BeanI
      nfoUtil.java:115)
              at org.jboss.beans.info.plugins.BeanInfoUtil.getPropertyInfo(BeanInfoUti
      l.java:197)
              at org.jboss.kernel.plugins.dependency.PropertyDispatchWrapper.execute(P
      ropertyDispatchWrapper.java:77)
              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(Executio
      nWrapper.java:47)

       

      Can anybody give me some advice how to solve this issue? thanks alot

      Francis