Add queue module
mq_add_queueAdds a JMS queue helper module to an existing Ballerina project, generating send and receive functions for point-to-point messaging. Overwrites existing files only when explicitly requested.
Instructions
Add a queue helper module to an existing project: creates modules//.bal with send() and receive() functions wired to the JMS queue (point-to-point). The producer sends with Client.sendMessage(queueName, ..) and receives synchronously with Client.receiveMessage(queueName, timeout). Does not overwrite unless overwrite=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_name | Yes | Ballerina package organisation name (e.g. "acme"). Used in Ballerina.toml and the Config.toml table header [org.project]. | |
| overwrite | No | Overwrite the module file if it already exists. | |
| queue_name | Yes | JMS queue name (point-to-point). Example: orders.queue | |
| project_name | Yes | Ballerina package / project name. Becomes the folder <bi_path>/<project_name> and the package name. | |
| project_path | Yes | Absolute or ~/%USERPROFILE%-relative path to an existing scaffolded project root (the folder containing Ballerina.toml). |