ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Connecting to MQSeries from a Java Servlet

Post new topic  Reply to topic
 Connecting to MQSeries from a Java Servlet « View previous topic :: View next topic » 
Author Message
coylec
PostPosted: Tue Nov 26, 2002 3:13 am    Post subject: Connecting to MQSeries from a Java Servlet Reply with quote

Newbie

Joined: 26 Nov 2002
Posts: 1

Hi all,

I am completely new to MQSeries and need to build a servlet that sends a message to MQ and retrieves a response.

I have looked at alot of sample code but not sure where to start. does java have its own set of API's for using with MQ? Is JMS the standard way to connect to MQ with Java?

I see most programs i look at import - com.ibm.mq.*; or com.ibm.mqbind.*; where do i get these packages?

Sorry for the really basic questions but this is literally my first introduction to combining Java to MQ.

Can someone point me to some really basic code that establishes a connection to MQ - I want to start from the bottom and work up.

Any help or advise is much appreciated.

Kind Regards

Ciaran
Back to top
View user's profile Send private message
harwinderr
PostPosted: Tue Nov 26, 2002 3:30 am    Post subject: Reply with quote

Voyager

Joined: 29 Jan 2002
Posts: 90

Hello,

You will need the support pac ma88 to get your java code working.
I would recommned going through the "Using Java" book from IBM.

Cheers,
Harwinder
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kingdon
PostPosted: Tue Nov 26, 2002 6:17 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

Just to expand a little:

Yes, JMS is a standard compliant way of connecting to MQSeries (and other messaging systems). com.ibm.mq (the MQSeries classes for Java, sometimes just called the 'base classes') is an IBM proprietary API, aligned to the MQ APIs for other programming languages, and providing access to more MQ specific features than the JMS API. com.ibm.mqbind is for backwards compatability and not recomended for new projects.

Both MQ JMS and the base classes are available:

    in the MA88 SupportPac (http://www-3.ibm.com/software/ts/mqseries/txppacs/ma88.html) for use with MQSeries 5.2.x and earlier,
    bundled in MQSeries 5.3 and
    bundled in WebSphere Application Sever Version 5.

There are MQ Java/JMS samples supplied with MA88 and MQ5.3, but I think they may have been dropped out of the WebSphere bundle. If so, you could always download MA88 and extract the samples from there. I don't think there are any servlet samples, but the principles should still apply.

Regards,
James.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Connecting to MQSeries from a Java Servlet
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.