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 » how to send a message from WAS to MQ

Post new topic  Reply to topic
 how to send a message from WAS to MQ « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Sat Apr 04, 2009 11:59 am    Post subject: how to send a message from WAS to MQ Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

I have WAS 6 on Windows configured.

Have defined

Connection Factoty name = MQCF1
JNDI name = MQCF1jndi
Transport type = Client
Channel name = MINE.SVRCONN
Port = 1491
Queue Destination name = QD1
JNDI name = QD1jndi

Now I want to send a message from WAS to Queue Manager.

Is there any sample I can use to test this environment ?
I mean : something like AMQSPUT but in JMS ....

Tip : I have almost no clue of WAS, so all details are welcome.
Back to top
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Sat Apr 04, 2009 1:01 pm    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

This article lloks very good to me ...

>>> http://www.ibm.com/developerworks/websphere/techjournal/0505_woolf/0505_woolf.html

Enjoy.
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Sat Apr 04, 2009 5:11 pm    Post subject: Reply with quote

Grand High Poobah

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

sebastia wrote:
This article looks very good to me ...

>>> http://www.ibm.com/developerworks/websphere/techjournal/0505_woolf/0505_woolf.html

Enjoy.


Excellent for the setup. For the rest, it is plain JMS. If you need a JMS tutorial look at the sun one. It is quite good.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
WMBDEV1
PostPosted: Sun Apr 05, 2009 1:24 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

sebastia wrote:
This article lloks very good to me ...

>>> http://www.ibm.com/developerworks/websphere/techjournal/0505_woolf/0505_woolf.html

Enjoy.


Yes it looks like a good starter for 10 but it is 4 years old and the configuration to receive messages (ie the Listener Port for the MDB) is now deprecated.

I'd be looking at using the Service Integration Bus of WAS. This link has some sample code also....

http://www.ibm.com/developerworks/websphere/library/techarticles/0504_barcia/0504_barcia.html

Hope that helps.
Back to top
View user's profile Send private message
sebastia
PostPosted: Sun Apr 05, 2009 2:33 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Thanks, mr WMBDEV1
I want WAS to Send messages first, but receiving part shall also work.
I will read your article, of course.

By the way (xcuse my poor english) - what do you mean by
"it looks like a good starter for 10" .... (but it is 4 years old)

A good starter for 10 is a "beginners" starter maybe ?

Sebastian.
Back to top
View user's profile Send private message Visit poster's website
WMBDEV1
PostPosted: Sun Apr 05, 2009 3:35 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

sebastia wrote:

"it looks like a good starter for 10"


is just a good place to start.

Quote:
(but it is 4 years old)


I as just pointing out the article was 4 years old (as is the one I pointed you at).

The article I sent you has code to receive and send messages (the message producer).

Hope it helps
Back to top
View user's profile Send private message
sebastia
PostPosted: Sun Apr 05, 2009 3:50 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Thanks, Audit

I do understand the "4 years old " part ... jejeje

But "a good starter for 10" is brand new to me, a spaniard.
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Sun Apr 05, 2009 2:41 pm    Post subject: Reply with quote

Grand High Poobah

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

Also check out the WAS infocenter and the part about MDBs.
The activation bean could be the part that is missing in the 4 year old tutorial. It should also contain all that is needed for configuration of resources.

Have fun and comeback when you get stuck.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Sun Apr 05, 2009 11:45 pm    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

I am implementig the "wolf's" article and it looks fine
for a beginner to WAS as I am.

Adn if MQ Infocenter is BIG,
the WAS Infocenter is .... HUGE
and if you (me) have so basic concepts missing,
a place where is very easy to get lost
between the flavours of this item coding or impementation.

I shall choose the KISS principle : keep it simple.

Thanks to all of you.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » how to send a message from WAS to MQ
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.