Solved

Java Program to communicate with MQSeries Server without using MQSeries client.

Posted on 2004-07-30
3
183 Views
Last Modified: 2010-08-05
Hello,

I want to write a Java Program that should communicate with MQSeries server. Can I do it with using only JMS and not using MQSeries Client.

I will appreciate if some one has sample code.
Thanks
Bal2004
0
Comment
Question by:Bal2004
3 Comments
 

Accepted Solution

by:
goolee earned 125 total points
ID: 11777629
Hi,
No, it's not must to use JMS when connecting to MQSeries from a java class.
To connect to MQSeries as a java client you need to do:
1. define Q manager.
2. define Q.
3. define MQ CHANNEL with chltype(SVRCONN). very importent for connection as a client through tcp connection

after define all 3 points start the listener by typing:
runmqlsr -t tcp [-m QMNAME] -p 1414

Now, in the java programm you need to create instance of mqmanager and set mqenvironment properties.
in the following link you can find more details:
http://www-306.ibm.com/software/integration/mqfamily/library/manualsa/csqzaw04/csqzaw0r.htm#HDRCSQ771Y
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 40
tomcat startup error 5 59
hibernate example for saving data 19 37
Desingning Refactoring existing code 2 24
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question