0

How to use a universal Infinispan cache memory for 2 or 3 applications? It will be great help for me if anyone answers this question.

Radim Vansa
  • 5,686
  • 2
  • 25
  • 40
user41498
  • 1,421
  • 3
  • 10
  • 9
  • Could you clarify your question? What do you mean by '2 or 3 applications'? Have you checked Infinispan docs at all? http://infinispan.org/docs/6.0.x/getting_started/getting_started.html – Radim Vansa Oct 15 '14 at 17:39
  • I have refered but i am confused how to use a single cache memory for two or three applications. Now i am using a different cache memories for different applications. – user41498 Oct 18 '14 at 13:41
  • a) what do you mean by single cache memory? Infinispan's local cache? Or do you mean just usual JVM heap? b) What do you want to achieve at all? – Radim Vansa Oct 20 '14 at 10:58
  • Yes Infinispan's Local cache. – user41498 Oct 21 '14 at 11:46
  • Then you should change the configuration to either distributed or replicated cache, and start multiple instances of your app. On local network/single machine the instances should get clustered (if not, try adding -Djava.net.preferIPv4Stack=true), and when you do cache.put(...) in one app, cache.get(...) returns the value you've written there. – Radim Vansa Oct 21 '14 at 14:51
  • Thanks @Flavius actually i have tried that and it worked..thanks a lot for he response. – user41498 Oct 22 '14 at 05:01

1 Answers1

-1

Let say you have multiple application deployed in the same WildFly server: WebApp1 - Context application Application2 - Batch/jms application Application3 - processing application

Is is possible to have a global infinispan cache that all three apps can access at the same time?

For example WebApp1 generated some entries and save to global cache and Application2 and Application3 and access this same cache structure?

Henry
  • 1
  • Welcome to SO. You may not get many views or responses as an 'Answer.' Use the 'Ask Question' button to ask your question; include a link to this one if it provides useful context. Good luck! – Bob Mazanec Nov 20 '14 at 00:15