I am trying to put a message into queue from my Java code(in my local machine). I am getting the error:
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path.
This is my code :
qMgr = new MQQueueManager(qManager);
int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT ;
MQQueue queue = qMgr.accessQueue("Q1",openOptions);
MQMessage msg = new MQMessage();
msg.writeUTF("this is a test message");
MQPutMessageOptions pmo = new MQPutMessageOptions();
queue.put(msg, pmo);
MQMessage retrievedMessage = new MQMessage();
retrievedMessage.messageId = msg.messageId;
MQGetMessageOptions gmo = new MQGetMessageOptions();
queue.get(retrievedMessage, gmo);
String msgText = retrievedMessage.readUTF();
System.out.println("The message is: " + msgText);
queue.close();
qMgr.disconnect();
My Queue Manager is QM_FORD and queue name is Q1. Listener port is 1414.
The environment variables are set properly.
Can anyone please guide me on this?