-
1. Re: Any one know how to get infinispan to start when JBoss does?
teknopaul Nov 14, 2012 3:01 PM (in response to teknopaul)OK a reply to myself, since I fixed this one.
Add start="EAGER" to both the cache-container and the cache.
<cache-container default-cache="repl" jndi-name="infinispan/container" start="EAGER">
<transport lock-timeout="60000"/>
<replicated-cache name="repl" mode="ASYNC" start="EAGER" batching="true" jndi-name="MyCache">
<eviction strategy="LRU"/>
<file-store/>
</replicated-cache>
</cache-container>
N.B. in JNDI the container and the cache are NOT related, infact you can not make the Cache a sub-name of the container, it must have its own name.
The above config is accessible with
java:jboss/infinispan/container
and
java:jboss/MyCache
If anything fails on boot, the names do not appear in JNDI, but with EAGER they and a valid config they appear directly on boot and can be looked up in Spring.
<jee:jndi-lookup id="infinispan" jndi-name="java:jboss/MyCache" />
-
2. Re: Any one know how to get infinispan to start when JBoss does?
nadirx Nov 17, 2012 3:07 AM (in response to teknopaul)I was going to provide an answer to this, but you seem to have discovered the solution by yourself.