ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Service Pack MA88 not available and CONNECTION VIA AMI

Post new topic  Reply to topic
 Service Pack MA88 not available and CONNECTION VIA AMI « View previous topic :: View next topic » 
Author Message
studentD
PostPosted: Thu Jun 12, 2008 5:31 am    Post subject: Service Pack MA88 not available and CONNECTION VIA AMI Reply with quote

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.
Back to top
View user's profile Send private message
sebastianhirt
PostPosted: Thu Jun 12, 2008 6:55 am    Post subject: Reply with quote

Yatiri

Joined: 07 Jun 2004
Posts: 620
Location: Germany

The Base Clases for Java are now included into the base product. It also has all the JMS stuff in it that you need.

They are all located at <MQ Install Path>/java/libs

Also check out the using Java manual from the IBM support page, it will get you started.
Back to top
View user's profile Send private message
studentD
PostPosted: Thu Jun 12, 2008 8:21 am    Post subject: Reply with quote

Newbie

Joined: 12 Jun 2008
Posts: 6

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:

Code:

try
      {
         //MessageBrokerConnection.createConnection(qmgr, host, port, channel);
         MQTopicConnectionFactory factory = new MQTopicConnectionFactory ();
           
         factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);     
           factory.setQueueManager("WBRK61_DEFAULT_QUEUE_MANAGER");
         
         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);
         
         
         //factory.setBrokerPubQueue (PUBLICATION_QUEUE);
         factory.setPubAckInterval (PUB_ACK_INTERVAL);
            
         factory.createTopicConnection ();
      }
      catch(JMSException jmse)
      {
         jmse.printStackTrace();
      }


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.

I would appreciate if you can help me.
Back to top
View user's profile Send private message
studentD
PostPosted: Thu Jun 12, 2008 8:45 am    Post subject: Reply with quote

Newbie

Joined: 12 Jun 2008
Posts: 6

I solved the problem i used the port 1414 instead of 2414 so my first connection to the MQ Message Broker was successful.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Service Pack MA88 not available and CONNECTION VIA AMI
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.