Solved

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

Posted on 2004-07-30
3
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jboss 7.1 start up error 1 82
mysql jsp example issue 32 94
Why doesn't this text field show up on my Applet frame? 2 41
Java 8 to Java 6 8 41
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

737 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