Solved

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

Posted on 2004-07-30
3
185 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Way to decrease size of apk file 9 87
How to convert String matching to regex in java 4 51
by zero exception 10 52
What is the use of Forwarding Class in java 1 16
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

830 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