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 » WebSphere Message Broker (ACE) Support » Question From a Newbie

Post new topic  Reply to topic
 Question From a Newbie « View previous topic :: View next topic » 
Author Message
gabbar
PostPosted: Fri Jan 03, 2003 9:52 am    Post subject: Question From a Newbie Reply with quote

Acolyte

Joined: 10 Dec 2002
Posts: 50

Hello,

I've just started playing around with MQSI, in particular the Control Center. I have the following scenario.

I am trying to test a MessageFlow which I designed for testing purposes. My Test MessageFlow has an input node, a database insert node and two output nodes(one for success, and the other for failure).

I created a MessageSet which has a TestMessage. This TestMessage has two elements(ID, NAME) of Type String. The database which I want to update has a table with just two columns of type varchar.

I successfully deployed this message flow to my broker. Now, I don't know how to give a proper input to the input queue. I am manually feeding the text to the input queue not from an application.

The database insert node expects a message of type TestMessage which I created. Probably the text I am providing to the input queue is not of type TestMessage, therefore it always is delivering the output thru the failure terminal of the database insert node.

I want to know the text to be fed into input queue for the succesful insertion of data into the table.

I know this is a basic question. Help appreciated.
Back to top
View user's profile Send private message Visit poster's website
kwelch
PostPosted: Fri Jan 03, 2003 11:17 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Hi gabbar,

Is your message defined in the MRM? Is it CWF? You mentioned there are two fields of string format. Do they have lengths? Are they fixed?
What tool are you using to create your test data?

If you are using MRM/CWF your string fields probably have a length associated with them and your test data should match this length.

Hopefully this helps a little, otherwise give some more information on your messageset and how things are defined.

Karen
Back to top
View user's profile Send private message Send e-mail
gabbar
PostPosted: Fri Jan 03, 2003 12:50 pm    Post subject: Reply with quote

Acolyte

Joined: 10 Dec 2002
Posts: 50

Hi Karen,

Thank you for your response.

The message is defined in MRM. Each element in the message has two value constraints(minimum length = 1, and maxlength = 10). The length constraint on the database fields is also 10.

Can I use a simple string of length 20 which embeds the values for both the fields I intend to insert into the database table? Thats what I tried and it failed.

What I think is I have to feed an MRM message into the input queue. Am I correct here? If so, how do I create an MRM message? Do you have a sample code to create an MRM message of a given message type and then put it into a specified queue?

If I am not correct with regards to creating and feeding an MRM message to the input queue, what else am I supposed to do to test the above scenario.
Back to top
View user's profile Send private message Visit poster's website
fschofer
PostPosted: Mon Jan 06, 2003 4:00 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi gabbar,

have you added a physical format like CWF, TDS or XML to your MRM message set ?

Take a look on the wmqi PDF "Working with Messages" Chapter 8
"Adding Wire Format Layers"

http://www-3.ibm.com/software/ts/mqseries/library/manualsa/index.html#wmqi


For message testing (put / get ) i suggest the WMQI support pack ih03:
"MQSeries Integrator V2 - Message display, test and performance utilities"

http://www-3.ibm.com/software/ts/mqseries/txppacs/

Frank
Back to top
View user's profile Send private message Send e-mail
wmqiguy
PostPosted: Mon Jan 06, 2003 5:34 am    Post subject: Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 145
Location: Florida

Another quick tip. (I've seen this more than once.)

Be sure and deploy the Message Set to your broker.


Have fun!

Todd
Back to top
View user's profile Send private message
nickeng
PostPosted: Mon Jan 06, 2003 8:33 am    Post subject: Reply with quote

Novice

Joined: 20 Dec 2002
Posts: 12
Location: London, UK

Have you also told your input node about the messages MRM details...
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Mon Jan 06, 2003 8:11 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Attach a Trace node in the failure path to capture more details about the error into some file. You can use ${ExceptionList} to print ExceptionList.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
jbacskai
PostPosted: Wed Jan 08, 2003 7:04 am    Post subject: Reply with quote

Apprentice

Joined: 30 Dec 2002
Posts: 26
Location: Hungary

Hi,

try to use amqsput for testing. It's a built in command line tool for manual feeding of a queue. I prefer this, couse it is simple.

JBacskai
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Question From a Newbie
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.