JMS Produce
Certified
Publish messages to a JMS destination
JMS Produce
Publish messages to a JMS destination
Connects with the configured JMS ConnectionFactory and publishes rendered payloads from from to the destination name as a queue or topic. Defaults use deliveryMode 2 (PERSISTENT), priority 4, timeToLive 0 (no expiry); payloads are serialized via serdeType (STRING default, JSON, BYTES) and plain strings without JSON/URI markers are sent as text.
type: io.kestra.plugin.jms.ProduceExamples
Produce a List of Messages to a JMS Queue
id: jms_produce
namespace: company.team
tasks:
- id: produce_to_queue
type: io.kestra.plugin.jms.Produce
connectionFactoryConfig:
type: DIRECT
providerJarPaths: kestra:///jms/activemq-client.jar
connectionFactoryClass: org.apache.activemq.ActiveMQConnectionFactory
username: admin
password: "{{ secret('AMQ_PASSWORD') }}"
destination:
destinationName: my-queue
destinationType: QUEUE
from:
- data: "Hello World"
headers:
property1: "value1"
- data:
message: "Another message"
id: 123
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-jms --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
destination *
Destination for messages
Rendered queue or topic name; destinationType chooses QUEUE vs TOPIC
io.kestra.plugin.jms.JMSDestination
Destination name
Rendered JMS queue or topic name
QUEUEQUEUETOPICDestination type
QUEUE or TOPIC
from *stringarrayobject
Structured data items, either as a map, a list of map, a URI, or a JSON string.
Structured data items can be defined in the following ways:
- A single item as a map (a document).
- A list of items as a list of maps (a list of documents).
- A URI, supported schemes are
kestrafor internal storage files,filefor host local files, andnsfilefor namespace files. - A JSON String that will then be serialized either as a single item or a list of items.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
A dataset stored outside of a database table.
Declares a dataset that a task writes outside of a database table, such as files in a data lake. system, location and format are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.
Register the dataset a task has written.
id: export_trips
namespace: company.data
tasks:
- id: export
type: io.kestra.plugin.core.log.Log
message: Exporting trips
assets:
outputs:
- type: io.kestra.plugin.ee.assets.Dataset
id: trips
system: s3
location: s3://company-lake/trips/
format: parquet1150100The day-2 actions offered on this asset, each backing onto a flow.
Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.
io.kestra.core.models.flows.FlowAction
1The id of the flow backing this action.
1The namespace of the flow backing this action.
The label displayed on this action.
20The conditions under which this action is offered.
All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.
The format of the data, for example parquet or csv.
Where the dataset is stored, for example a bucket prefix.
{}1150The asset this one is part of.
At most one parent. Parent depth is limited by the service layer, not by this model.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
50Assets related to this one.
Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
The system storing the dataset, for example s3 or gcs.
A deployment, grouping the resources provisioned together.
Declares a deployment that groups the resources a flow provisions together. Other assets join a deployment by naming it in their partOf. A TtlTrigger targets deployments when no assetType is set.
Register a deployment and the virtual machine it is made of.
id: provision_environment
namespace: company.infra
tasks:
- id: provision
type: io.kestra.plugin.core.log.Log
message: Provisioning staging-eu
assets:
outputs:
- type: io.kestra.plugin.ee.assets.Deployment
id: staging-eu
displayName: Staging EU
- type: io.kestra.plugin.ee.assets.VM
id: staging-eu-web-01
provider: aws
region: eu-west-1
partOf:
id: staging-eu1150100The day-2 actions offered on this asset, each backing onto a flow.
Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.
io.kestra.core.models.flows.FlowAction
1The id of the flow backing this action.
1The namespace of the flow backing this action.
The label displayed on this action.
20The conditions under which this action is offered.
All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.
{}1150The asset this one is part of.
At most one parent. Parent depth is limited by the service layer, not by this model.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
50Assets related to this one.
Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
A file in a storage system.
Declares a single file that a task writes to a storage system. system and path are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.
Register the file a task has uploaded.
id: upload_report
namespace: company.finance
tasks:
- id: upload
type: io.kestra.plugin.core.log.Log
message: Uploading the monthly report
assets:
outputs:
- type: io.kestra.plugin.ee.assets.File
id: monthly-report
system: s3
path: s3://company-reports/monthly.pdf1150100The day-2 actions offered on this asset, each backing onto a flow.
Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.
io.kestra.core.models.flows.FlowAction
1The id of the flow backing this action.
1The namespace of the flow backing this action.
The label displayed on this action.
20The conditions under which this action is offered.
All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.
{}1150The asset this one is part of.
At most one parent. Parent depth is limited by the service layer, not by this model.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
The path or URI of the file.
50Assets related to this one.
Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
The storage system holding the file, for example s3 or sftp.
A database table.
Declares a database table that a task creates or loads. system, database, schema and name are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.
Register the table a task has created.
id: create_orders_table
namespace: company.data
tasks:
- id: create
type: io.kestra.plugin.core.log.Log
message: Creating analytics.public.orders
assets:
outputs:
- type: io.kestra.plugin.ee.assets.Table
id: analytics.public.orders
system: postgres
database: analytics
schema: public
name: orders1150100The day-2 actions offered on this asset, each backing onto a flow.
Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.
io.kestra.core.models.flows.FlowAction
1The id of the flow backing this action.
1The namespace of the flow backing this action.
The label displayed on this action.
20The conditions under which this action is offered.
All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.
The database the table belongs to.
{}The name of the table.
1150The asset this one is part of.
At most one parent. Parent depth is limited by the service layer, not by this model.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
50Assets related to this one.
Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
The schema the table belongs to.
The database system, for example postgres, snowflake or bigquery.
A virtual machine.
Declares a virtual machine that a task provisions or manages. provider, region and state are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.
Register the virtual machine a task has provisioned.
id: provision_vm
namespace: company.infra
tasks:
- id: provision
type: io.kestra.plugin.core.log.Log
message: Provisioning web-01
assets:
outputs:
- type: io.kestra.plugin.ee.assets.VM
id: web-01
displayName: Web server 01
provider: aws
region: eu-west-1
state: running1150100The day-2 actions offered on this asset, each backing onto a flow.
Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.
io.kestra.core.models.flows.FlowAction
1The id of the flow backing this action.
1The namespace of the flow backing this action.
The label displayed on this action.
20The conditions under which this action is offered.
All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.
{}1150The asset this one is part of.
At most one parent. Parent depth is limited by the service layer, not by this model.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
The cloud provider or hypervisor hosting the virtual machine, for example aws, gcp or vsphere.
The region or zone the virtual machine runs in.
50Assets related to this one.
Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
The state of the virtual machine, for example running or stopped.
io.kestra.core.models.assets.Custom
11501Custom asset type
100The day-2 actions offered on this asset, each backing onto a flow.
Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.
io.kestra.core.models.flows.FlowAction
1The id of the flow backing this action.
1The namespace of the flow backing this action.
The label displayed on this action.
20The conditions under which this action is offered.
All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.
{}1150The asset this one is part of.
At most one parent. Parent depth is limited by the service layer, not by this model.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
50Assets related to this one.
Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.
A reference to another asset of the same tenant.
^[a-zA-Z0-9][a-zA-Z0-9._:-]*1150The id of the referenced asset.
^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*1150The namespace of the referenced asset, informational: asset ids are unique per tenant.
100The role this asset plays in the relation, for example primary or backup.
connectionFactoryConfig
Connection factory configuration
Configuration for connecting to the JMS broker. Supports both direct connection factory instantiation and JNDI lookup.
io.kestra.plugin.jms.configuration.ConnectionFactoryConfig-Direct
ConnectionFactory class
Fully qualified class name of the JMS ConnectionFactory implementation.
Connection properties
Additional POJO properties applied to the Direct or JNDI ConnectionFactory instance.
Password for broker authentication
Rendered password used when creating the connection. Omit for JNDI if the ConnectionFactory already embeds credentials.
Provider JAR paths
One or more paths to the JMS provider JARs (e.g., file:///app/plugins/jms-libs/client.jar). If unset, all JARs under the plugins/jms-libs folder are added to the classpath.
falseUse filtered classloader
Enable only for providers that ship JMS API classes (e.g., SonicMQ/Aurea) to avoid ClassCastException by loading JMS APIs from the parent classloader. Leave disabled for typical providers like RabbitMQ, ActiveMQ, Artemis.
Username for broker authentication
Rendered username used when creating the connection. Omit for JNDI if the ConnectionFactory already embeds credentials.
io.kestra.plugin.jms.configuration.ConnectionFactoryConfig-Jndi
JNDI ConnectionFactory name
JNDI initial context factory
JNDI provider URL
Connection properties
Additional POJO properties applied to the Direct or JNDI ConnectionFactory instance.
JNDI credentials
JNDI principal
Password for broker authentication
Rendered password used when creating the connection. Omit for JNDI if the ConnectionFactory already embeds credentials.
Provider JAR paths
One or more paths to the JMS provider JARs (e.g., file:///app/plugins/jms-libs/client.jar). If unset, all JARs under the plugins/jms-libs folder are added to the classpath.
falseUse filtered classloader
Enable only for providers that ship JMS API classes (e.g., SonicMQ/Aurea) to avoid ClassCastException by loading JMS APIs from the parent classloader. Leave disabled for typical providers like RabbitMQ, ActiveMQ, Artemis.
Username for broker authentication
Rendered username used when creating the connection. Omit for JNDI if the ConnectionFactory already embeds credentials.
deliveryMode integerstring
2JMS delivery mode
Rendered delivery mode flag; default 2 (PERSISTENT)
priority integerstring
4JMS priority
Rendered integer priority 0-9; default 4
serdeType string
STRINGSTRINGJSONBYTESSerialization format for message body
Determines how message bodies are serialized: STRING for text, JSON for JSON-formatted text, BYTES for binary data.
timeToLive integerstring
0Message time to live
Rendered TTL in milliseconds; default 0 keeps the message indefinitely
Outputs
messagesCount integer
Number of messages published