Sign inSign up

genschsa/emp-mq

By genschsa

•Updated almost 9 years ago

MQ Messaging Server for Employee system

Image
0

865

genschsa/emp-mq repository overview

⁠README

⁠What is this repository for?

This image runs an IBM MQ Messaging Server to support the sample Employee system⁠. It extends from ibmcom/mq:8⁠.

See the mqm/config.mqsc⁠ for the full list of queues defined.

⁠Configuration

Default environment variables:

  • MQ_QMGR_NAME - QM.DEV
  • MQ_USER - emp-sys
  • MQ_PASSWORD - secr3T#1

The mqm/config.mqsc⁠ script is run when the container is first created to define all channels, queues, and other resources.

⁠Start an instance
docker run -d --name emp-mq -p 1414:1414 genschsa/emp-mq

Connect to the container and run MQ commands

docker exec -it emp-mq bash
dspmq -o all
runmqsc QM.DEV
display qmstatus all
display queue(DEV.*)
display qstatus(DEV.*)

# run commands from text file
runmqsc QM.DEV < mycommands.in

Connect to the queue manager from another application: (example WebSphere Liberty config)

	<jmsConnectionFactory jndiName="jms/wmqCF" connectionManagerRef="ConMgr6">
		<properties.wmqJms
			transportType="CLIENT"
			hostName="${mq.host}"
			port="1414"
			channel="PASSWORD.SVRCONN"
			queueManager="QM.DEV"
			userName="emp-sys"
			password="secr3T#1" />
	</jmsConnectionFactory>

IBM runmqsc Command Reference⁠ IBM MQSC Reference⁠ MQ Command Cheat Sheet⁠

Tag summary

Content type

Image

Digest

Size

438.4 MB

Last updated

almost 9 years ago

docker pull genschsa/emp-mq