Solved

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

Posted on 2004-07-30
3
176 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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now