Solved

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

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

630 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