Configuring and running agents
To configure and run agents in a developer toolkit environment using the Docker Compose script, add queues and then configure and run the agent servers.
Procedure
- Ensure that you have a copy of the extracted runtime as described in Step 1 of Updating custom extensions in a containerized environment.
- On the host machine, add
mqserveras a localhost in your /etc/hosts file. - By default, the following
Devqueues are created during setup and the bindings are automatically updated.
DEV.QUEUE.1, DEV.QUEUE.2, DEV.QUEUE.3, similarly, up to DEV.QUEUE.10.You can use these queues for all your development needs. If you need to create more queues, then log into the MQ Explorer and create a new queue, and then run the following command:
./om-compose.sh update-mq-bindings <new_queue_name> - Configure and run agent servers. Use the following criteria to configure an agent by using the Applications Manager:
Criteria Value JMS Queue Name Any Queue. For example, DEV.QUEUE.1 QCF Lookup AGENT_QCF Initial Context Factory File Provider URL If you are not overriding the
MQ_JNDI_DIRproperty, your PROVIDER_URL is file:///var/oms/jndiIf you have overridden the
MQ_JNDI_DIRproperty, then your Provider URL becomes file://<MQ_JNDI_DIR>For more information, see Specifying a transaction as time-triggered.
Go to your extracted
<host_runtime>/bindirectory and run the agent server.