2 Replies Latest reply on Mar 7, 2013 3:58 PM by rcd

    Embedded Infinispan questions...

    johnson_shawn

      I am using JBoss AS 7.1.1-FINAL, and trying to leverage the embedded Infinispan subsystem.  I stumbled across this document - https://docs.jboss.org/author/display/ISPN/CDI+Support#CDISupport-UseaJBossAS7configuredcache - and thought that it sounded attractive.  What I'm most unsure about is the dependencies.  I'm not using Maven...Currently I have the following in my WEB-INF/jboss-deployment-structure.xml:

       

        <dependencies>
          ...
      
        <module name="org.infinispan"/>
        </dependencies>
      

       

      Then I'm including infinispan-core-5.1.2.FINAL.jar in my eclipse project (but not my war).

       

      I don't see the infinispan-cdi-5.1.2.FINAL.jar anywhere under the modules folder...so what's the best way to add this?

      1. Add it to the existing modules subfolder?  Do I need to match the version?
      2. Add it to my WEB-INF/lib?  Do I also need to add the core jar here as well?  Which version, matching or newer?
      3. I even see that 5.2 has an AS7 modules download, however it doesn't seem to include the CDI jar?
      4. How about other jars required with the CDI jar?

       

      Thanks!

      -=Shawn

        • 1. Re: Embedded Infinispan questions...
          nickarls

          Never done it but since Infinispan is probably quite tightly server-integrated, I would probably edit it into the module of org.infinispan. Version matching is always a good thing if applicable. Perhaps the CDI module is considered "experimental" still if it's not in the main distribution. Start it up, see what breaks and work from there ;-)

          • 2. Re: Embedded Infinispan questions...
            rcd

            The CDI module currently does not ship with AS7, although there is a JIRA open to include it: https://issues.jboss.org/browse/AS7-6658

             

            I tried the CDI module out on a project by including it in my deployment. I didn't find it especially helpful though. Caches/containers can already be injected wherever you need using @Resource, and I didn't find the JCache interceptors useful.