-
1. Re: Infinispan cache deploy to other container
rvansa May 11, 2017 11:55 AM (in response to praveenp2)Infinispan container is on Docker hub (assuming container = docker), including some https://hub.docker.com/r/jboss/infinispan-server/
If you find that some option is missing, the image is pretty simple, here is the source, feel free to adapt to your needs and contribute the generic changes back.
The client part does not change; if you're not using host networking, you may have to set up proxy address for Hot Rod: Cannot connect to infinispan host running inside docker · Issue #31 · jboss-dockerfiles/infinispan · GitHub
-
2. Re: Infinispan cache deploy to other container
praveenp2 May 12, 2017 2:30 AM (in response to rvansa)Thanks Radim Vansa for your reply,
container means any servlet container like tc server or tomcat. I was looking deploy infinispan in my existing tomcat server as war file.
-
3. Re: Infinispan cache deploy to other container
sebastian.laskawiec May 12, 2017 2:37 AM (in response to praveenp2)In that case you can look into our Spring Boot Starters. A very short demo might be found here. If you're looking for more advanced demo, please have a look at JDG quickstart (JDG is a product based on Infinispan, their codebases are very similar)
-
4. Re: Infinispan cache deploy to other container
nadirx May 12, 2017 2:38 AM (in response to praveenp2)It is certainly possible. Do you want to expose Hot Rod or REST ? And is data in the cache also accessed by code within the WAR file ?
-
5. Re: Infinispan cache deploy to other container
praveenp2 May 12, 2017 3:03 AM (in response to nadirx)Thanks Tristan,
1. expose as rest service, is it possible to expose as hotrod ?
2. No, WAR file will not have any code, just cache and related operation
-
6. Re: Infinispan cache deploy to other container
nadirx May 12, 2017 3:53 AM (in response to praveenp2)1 of 1 people found this helpfulOk, now my question is: do you need REST and Hot Rod at the same time for the same caches ? If not, you do not need compatibility mode (which stores data in a way that makes it accessible from multiple endpoints).
I've whipped up a quick demo of how to do this for Hot Rod:
https://github.com/tristantarrant/infinispan-playground-hotrod-war
-
7. Re: Infinispan cache deploy to other container
praveenp2 May 12, 2017 10:04 AM (in response to nadirx)Thanks Tristan,
I went through quick demo and it was helpful
If you could send restful example, it will be helpful