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 » Use a value in a statement

Post new topic  Reply to topic
 Use a value in a statement « View previous topic :: View next topic » 
Author Message
x061294
PostPosted: Wed Jan 03, 2007 11:41 am    Post subject: Use a value in a statement Reply with quote

Acolyte

Joined: 05 Apr 2005
Posts: 62

Running WMB version 6.0.0.3 on Linux

I have a process which determines, based on values in the message, which path to route the message to. I'd like to extend/change that functionality to read in the criteria and the values in from a DB, however have been told that I can't do that. It seems I should, but don't know that for a fact. So I thought I would ask others.

Right now I might do something like:

If InputRoot.MQRFH2.usr.PldFmt = "String" Then....

and the broker would walk the path to the field and compare it against the value of "String"

What I would like to do is store “InputRoot.MQRFH2.usr.PldFmt" and "String" in the DB in a name/value pair

and then do a select against the DB to get the information and apply it in the "If" statement


If (value of DB.name) = (value of DB.value) Then ....
which would resolve to the same statement as above
If InputRoot.MQRFH2.usr.PldFmt = "String" Then....

which the broker would then use the value of DB.name to search the input message to compare that against the value of DB.value

I was told that you can't use the value of the DB.name field to be a field name but only as an actual value. Does anyone know if I can use the value of a field as a field location rather than the actual value, and, if so, how?

Thanks.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 03, 2007 11:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can use {a} to evaluate the variable a as one part of a field identifier.

So you could use InputRoot.{a}.Field1.Field2 with a being set to "MRM" to access InputRoot.MRM.Field1.Field2. But you couldn't set a to "MRM.Field1.Field2" and use InputRoot.{a} to access InputRoot.MRM.Field1.Field2.

You can use Java and XPath, otherwise.
_________________
I am *not* the model of the modern major general.
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 » WebSphere Message Broker (ACE) Support » Use a value in a statement
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.