Infinispan cache-containers other than Hibernate?

78 views
Skip to first unread message

Aljaž Koželj

unread,
Dec 2, 2022, 11:01:20 AM12/2/22
to WildFly
Hello,

I've been updating our standalone-ful.xml and made it to the infinispan configuration. I know we use it as 2nd level cache for Hibernate, but I see there are multiple containers.

For example there are also server, web and ejb configurations. From what I could find out, these are only used when you are running multiple WildFly application servers with HA. Is that correct?

We are using a single WildFly instance, so I don't think we are using HA. Do we lose anything, if I remove everything but the hibernate cache-container?

Thanks!

Paul Ferraro

unread,
Dec 8, 2022, 5:42:54 PM12/8/22
to WildFly
The "web" cache container is referenced by the distributable-web subsystem.  This is used to support <distributable/> web applications.  When using a non-HA profile, this is used to provide passivation support for HttpSessions.
The "ejb" cache container is referenced by the distributable-ejb subsystem.  This is used to provide passivation support for SFSBs.
The "server" cache container is referenced by the singleton subsystem.  This is used by singleton deployments and singleton MSC services - though when using a non-HA profile, a singleton deployment behaves like a normal deployment, and a singleton MSC service behaves like a normal MSC service.
You are free to remove anything that you don't need.

Reply all
Reply to author
Forward
0 new messages