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 » Literal value for simpleContent monitoring profile

Post new topic  Reply to topic
 Literal value for simpleContent monitoring profile « View previous topic :: View next topic » 
Author Message
goffinf
PostPosted: Mon Sep 13, 2010 10:32 am    Post subject: Literal value for simpleContent monitoring profile Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Version: 6.1.0.3
Platform: Windows

I have the following in a monitoring profile but the simpleContent value for example (foo) is NOT emitted. Other events in this profile which use queryText rather than a literal value work successfully.

Is this form of simpleContent where a literal value is supplied still supported??

If it IS can anyone see what I am doing wrong ?

If it isn't, is there a way of assigning a literal value to applicationData content ?

<p:monitoringProfile xmlns:p="http://www.ibm.com/xmlns/prod/websphere/messagebroker/6.1.0.3/monitoring/profile" p:version="2.0">
...
<p:applicationDataQuery>
<p:simpleContent p:name="example" p:dataType="string" p:value="foo"/>

Thanks

Fraser.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Sep 14, 2010 4:02 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Is this form of simpleContent where a literal value is supplied still supported?
No - I don't think so. Your question implies that v6.1.0.2 used to support this, but I can't find anything in the v6.1 infocenter that suggests that.

Quote:
If it isn't, is there a way of assigning a literal value to applicationData content ?
Not explicitly - but you could put something into the environment and then point the query at that.
If this really is a fixed, literal value then I wonder why your flow needs to emit it?
Back to top
View user's profile Send private message
goffinf
PostPosted: Tue Sep 14, 2010 11:30 am    Post subject: Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

kimbert wrote:
No - I don't think so. Your question implies that v6.1.0.2 used to support this, but I can't find anything in the v6.1 infocenter that suggests that.


That's what I thought too, but thanks for looking.

kimbert wrote:
If this really is a fixed, literal value then I wonder why your flow needs to emit it?


Fair comment. The use I had in mind was passing this value to the flow which reads the event messages which it uses to configure itself (in this case it's an IPC name that is part of our unit test framework - we are using monitoring events to supply data to Junit assertions).

As you have said I can do this in a number of other ways, but it would have been quite nice to have this config external to the flow since we apply a number of different profiles for various purposes and it's easy to swap them around without the need for redeploying a flow.
Back to top
View user's profile Send private message
DanielG
PostPosted: Tue Oct 05, 2010 3:38 am    Post subject: Use XPath Reply with quote

Novice

Joined: 29 Mar 2003
Posts: 13

Probably a bit late... but you can exploit the XPath string() function in order to emit constant values:

<p:complexContent p:name="InterfaceType"
p:targetNamespace="http://www.xxx.org/meta">
<p:payloadQuery p:queryText="string('ConsumerInterface')">
</p:payloadQuery>
</p:complexContent>

Note: If I remember correctly, you will need at least 6.1.0.4 for this to work...
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 » Literal value for simpleContent monitoring profile
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.