• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MQ - Server Bindings

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

I am trying hard to migrate my program from MQ clinet connection to MQ-Server Bindings.
Here is my Existing core code for Client Connection :
[code]
try {
MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
factory.setQueueManager(_queueManager);
factory.setHostName(_hostName);
factory.setPort(_portNumber);
factory.setChannel(_channelName);

queueConnection = (QueueConnection) factory.createQueueConnection(" "," ");
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queue = MQUtilities.getQueue(_queueName, queueSession);
queueReceiver = queueSession.createReceiver(queue);
queueSender = queueSession.createSender(queue);
queueConnection.start();
[code]
I have modified to server Binding like this
[code]
try {
MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
//factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
factory.setTransportType(JMSC.MQJMS_TP_BINDINGS_MQ);
factory.setQueueManager(_queueManager);
//Commented these parameters as server Binding need only queueManager Name

//factory.setHostName(_hostName);
//factory.setPort(_portNumber);
//factory.setChannel(_channelName);

queueConnection = (QueueConnection) factory.createQueueConnection(" "," ");
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queue = MQUtilities.getQueue(_queueName, queueSession);
queueReceiver = queueSession.createReceiver(queue);
queueSender = queueSession.createSender(queue);
queueConnection.start();
[code]
I am getting MQJMS2013 invalid security authentication supplied for MQQueueManager at line
[code]
factory.createQueueConnection(" "," ");
[code]
Can anybody kindly help me on this. Please suggest whether my changes are correct? How the server binding can be done using MQQueueConnectionFactory.

Your help in this would be highly appreciated.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic