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 » Resources/examples needed please!!!

Post new topic  Reply to topic
 Resources/examples needed please!!! « View previous topic :: View next topic » 
Author Message
jonesm5
PostPosted: Mon Oct 27, 2008 10:24 am    Post subject: Resources/examples needed please!!! Reply with quote

Newbie

Joined: 27 Oct 2008
Posts: 1

Hi,

I'm testing how sMash (new IBM product) functions with WMQ and need some help in doing so. I'm able to create a remote sMash based app to send/produce messages to destination queue "Q1" on WMQ. Now I'm having trouble learning how to create an external JMS app that consumes a message from WMQ. I was hoping you can point me to some useful resources which demonstrates a simple app which does this. I have a queue manager named "QM_Manager", a queue named "Q1", connectionFactory named "myQCF", and destination "myQ" which queue is linked to "Q1". I'm able to send a message to "Q1" but using a different platform (sMash/Groovy). I've been reading some articles and observed folk used many .bat/.spc files which really doesn't show any code. Also, I'm confused on do I need WMQ client as well in order for JMS app to communicate w/ WMQ?. Either way I need some help. I'm tyring to make this task as simple as possible in trying to create an app just to consume messages from a queue. Would you happen to have some example code or resources which demonstrates connecting to WMQ & consuming a message from queue on WMQ? Thanks!
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Oct 27, 2008 11:59 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

There are some samples at:

http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html

You can use JMS to connect to a queue manager in either bindings mode or client mode.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Mon Oct 27, 2008 2:54 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

bower5932 wrote:
There are some samples at:

http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html

You can use JMS to connect to a queue manager in either bindings mode or client mode.

And I suggest as a newbie you use the filebased JNDI if you need to use JNDI for a standalone app. It's the easiest to setup and the sturdiest...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Mon Oct 27, 2008 5:11 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

JMS scares the bejesus out of me. Yet the following link had me JMSing in 15 minutes.

http://www-128.ibm.com/developerworks/websphere/techjournal/0610_woolf/0610_woolf.html
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
David.Partridge
PostPosted: Tue Oct 28, 2008 12:13 am    Post subject: Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

What a Jedi Knight scared by JMS!?

Out of curiousity Peter, what is it specifically about JMS that gives you the cold colly-wobbles?
_________________
Cheers,
David C. Partridge
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Oct 28, 2008 7:08 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Conceptually I am ok with it. Its not just JMS but Java in general I guess. You can have 99.9% of everything set up right, and then one stupid comma is missing in the classpath or one mystery jar file is missing and you are dead in the water. Add the multiple Java versions installed on the typical system and there's even more fun.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
masteringmq
PostPosted: Thu Oct 30, 2008 12:49 am    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

Keep trying. Maybe a couple of days, years or so you will see results. Never try never know.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Oct 30, 2008 2:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

PeterPotkay wrote:
Conceptually I am ok with it. Its not just JMS but Java in general I guess. You can have 99.9% of everything set up right, and then one stupid comma is missing in the classpath or one mystery jar file is missing and you are dead in the water. Add the multiple Java versions installed on the typical system and there's even more fun.


If you ever start a support group for fellow phoblics sign me up. I suffer from similar symptoms.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Resources/examples needed please!!!
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.