[id='server-tasks_{context}']
= Deploying Server Tasks to {brandname} Servers
Add your custom server task classes to {brandname} servers.

.Prerequisites

Stop any running {brandname} servers. {brandname} does not support runtime
deployment of custom classes.

.Procedure

. Add a `META-INF/services/org.infinispan.tasks.ServerTask` file that contains
the fully qualified names of server tasks, for example:
+
[source]
----
example.HelloTask
----
+
. Package your server task implementation in a JAR file.
. Copy the JAR file to the `{server_home}/server/lib` directory of your {brandname} server.
. Add your classes to the deserialization allow list in your {brandname}
configuration. Alternatively set the allow list using system properties.

.Reference

* link:{encoding_docs}#adding-deserialization-allowlist_marshaller-implementations[Adding Java Classes to Deserialization Allow Lists]
* link:{configdocroot}[{brandname} {infinispanversion} Configuration Schema]
