[id='jgroups_external-{context}']
= Using External JGroups Stacks
Reference external files that define custom JGroups stacks in `infinispan.xml` files.

.Procedure

ifdef::remote_caches[]
. Add custom JGroups stack files to the `{server_home}/server/conf` directory.
endif::remote_caches[]
ifdef::embedded_caches[]
. Put custom JGroups stack files on the application classpath.
endif::embedded_caches[]
+
Alternatively you can specify an absolute path when you declare the external stack file.
+
. Reference the external stack file with the `stack-file` element.
+
[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/jgroups_external_stack.xml[]
----
