Posted: Thu Jun 12, 2008 5:31 am Post subject: Service Pack MA88 not available and CONNECTION VIA AMI
Newbie
Joined: 12 Jun 2008 Posts: 6
I'm a little new to data integration via message broker. My first problem is the service pack MA88 is not available but i need this pack to connect to message broker with jms.
but nevertheless there are more possibilities to build a connection. So I downloaded the service pack ma0f_nt. That's the way to create a connection via the new AMI.
But unforunatly I can't find methods for the connection to another server.
The task is to create a connection via a simple java application to the default queue manager from another server.
Thanks for the quick and helpful answer. So i've got the jar files from the server where the MQ is installed and copied it to the java client application. I also solved a little problem with mqji.properties files. So thank twice.
But now i use the MQConnectionFactory to build a connection to the Messager Broker. The Following code is:
factory.setHostName("IP to server like 142.153.153.15");
factory.setPort(1414);
factory.setChannel (channel);
factory.setBrokerVersion(JMSC.MQJMS_BROKER_V2);
factory.setSubscriptionStore(JMSC.MQJMS_SUBSTORE_BROKER);
But i get Exception that make it unable to proceed:
Code:
vax.jms.JMSException: MQJMS2005: Fehler beim Erstellen von MQQueueManager für '142.153.153.15:WBRK61_DEFAULT_QUEUE_MANAGER'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1532)
at com.ibm.mq.jms.MQTopicConnection.<init>(MQTopicConnection.java:224)
at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:371)
at com.ibm.mq.jms.MQTopicConnectionFactory.createMQTopicConnection(MQTopicConnectionFactory.java:302)
at com.ibm.mq.jms.MQTopicConnectionFactory.createTopicConnection(MQTopicConnectionFactory.java:198)
at org.tud.dipbench.client.ri.MessageBrokerConnection.main(MessageBrokerConnection.java:96)
The aim is to build connect through java client application to the
default message broker.
I'm looking for the solution and came to change the etc/hosts file on the windows XP Professional. But i think it's not the right solution because
i use a hardcoded IP.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum