[wildfly-dev] use JGroups in a web application

Paul Ferraro paul.ferraro at redhat.com
Fri Sep 30 11:52:01 EDT 2016


Please use the wildfly forums for questions of this nature.
https://developer.jboss.org/en/wildfly

I promise to reply right away. :)

Paul

On Fri, Sep 30, 2016 at 11:42 AM, Carl Harris <ceharris414 at me.com> wrote:
> I’m building a web application that targets Wildfly 10, and runs in a Wildfly HA cluster. In the application, I need to do some coordination between application nodes using JGroups. It seems silly to bring JGroups into the application itself, when Wildfly already needs a correctly configured JGroups stack for its own use.
>
> I was thinking of making an extension that (through a deployment processor) adds a CDI extension to the web application to process injection points annotated with a @JGroupsChannel qualifier and inject a Channel bean. The CDI extension would be injected with JGroups services registered by Wildfly’s jgroups subsystem. Parameters on the annotation would allow the specification of the JGroups stack and channel name.
>
> Before I started down this path, I thought I’d ask if there’s a more straightforward way to accomplish this; i.e. is there a better way to make use of Wildfly’s jgroups subsystem in my web application?
>
> Thanks,
>
> carl
>
>
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev



More information about the wildfly-dev mailing list