[id='jgroups_getting_started-{context}']
= Getting Started with Default Stacks
Use default JGroups stacks with recommended settings as a starting point for
your cluster transport layer.

[NOTE]
====
Default JGroups stacks are included in `infinispan-core.jar` and, as a result,
are on the classpath.
====

.Programmatic procedure

* Specify default JGroups stacks with the `addProperty()` method.
+
[source,java]
----
include::code_examples/ConfigureTransportDefault.java[]
----

.Declarative procedure

* Specify default JGroups stacks with the `stack` attribute.
+
[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/config_transport_stack.xml[]
----

[TIP]
====
Use the `cluster-stack` argument with the {brandname} server startup script.

[source,options="nowrap",subs=attributes+]
----
$ bin/server.sh --cluster-stack=tcp
----
====
