[jboss-user] [Datasource Configuration] - Httpsession using hot rod and Infinispan with Jboss 7.x
manish suriya
do-not-reply at jboss.com
Tue Jul 31 10:36:41 EDT 2012
manish suriya [https://community.jboss.org/people/techtalk] created the discussion
"Httpsession using hot rod and Infinispan with Jboss 7.x"
To view the discussion, visit: https://community.jboss.org/message/751249#751249
--------------------------------------------------------------
Hi Ben,
As suggested I have modified the following in standalon-ha.xml of Jboss 7.1.2.
1) modify the org.infinispan module.xml to have a dependency on the cache loaders and hotrod client.
<module name="org.infinispan.client.hotrod"/>
<module name="org.infinispan.cachestore.remote"/>
<module name="org.infinispan.cachestore.jdbc"/>
2) modify the web cache-container to use an invalidation cache backed by a remote-store. Similar to what Paul suggested with the jdbc-store.
<cache-container name="web" aliases="standard-session-cache" default-cache="remote" module="org.jboss.as.clustering.web.infinispan">
<transport lock-timeout="60000"/>
<invalidation-cache name="remote" mode="ASYNC" batching="true">
<remote-store passivation="false" purge="false" shared="true">
<remote-server outbound-socket-binding="session-datagrid"/>
</remote-store>
</invalidation-cache>
</cache-container>
3) Add an outbound-socket-binding to the socket-binding-group your server is using. This is the host and port of your remote infinispan cache.
<outbound-socket-binding name="session-datagrid">
<remote-destination host="localhost" port="11222"/>
</outbound-socket-binding>
4) Start an infinispan cache with the hotrod connector.
jboss\infinispan-5.1.5.FINAL\bin>startServer.bat -r hotrod
However for the 4th point i have some queries ..
Questions/Concerns :
*1. I cannt see infinispan-5.x folder inside jboss home ? Do i need to donwload Infinispan and place it in jboss home ?*
*2. Cannt we use integrated infinispan comes with jboss 7.1.2 ?*
Thanks for your time !
-Manish
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751249#751249]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120731/497c1eed/attachment-0001.html
More information about the jboss-user
mailing list