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 » Attribute Value in Custom node

Post new topic  Reply to topic
 Attribute Value in Custom node « View previous topic :: View next topic » 
Author Message
Vargheese thomas
PostPosted: Tue Jan 20, 2004 6:21 am    Post subject: Attribute Value in Custom node Reply with quote

Novice

Joined: 16 May 2003
Posts: 13

Hi

A clarification..

i have a custom node with two string attributes. These are mandatory attributes.

When i give the value for the attributes, I have to append a space at the end of the value to make it work. That is, only if i give space at the end this value is read otherwise iam getting an empty value.

For example:

For Datasource Attribute:
if i give "datasource" then im not getting a value in the variable
If i give "datasource " then im getting a proper value in the variable

The same code in other system works fine without a space.
Both of us are using WMQI 2.1 with CSD-4

Can any tell me the reason for this strange behaviour of the custom node?
_________________
Thanks and regards
Vargheese Thomas
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jan 20, 2004 6:38 am    Post subject: Re: Attribute Value in Custom node Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Vargheese thomas wrote:
Can any tell me the reason for this strange behaviour of the custom node?


Can we see the code where you are reading these attributes, inside your node?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vargheese thomas
PostPosted: Thu Jan 22, 2004 10:12 am    Post subject: Reply with quote

Novice

Joined: 16 May 2003
Posts: 13

My code looks like this:

public String getDataSource(String dsName){
return dataSource;
}

public String getSourceAttribute(String srcAttr){
return sourceAttribute;
}

public void setDataSource(String dsName){
datasource = dsName.trim();
}

public void setSourceAttribute(String srcAttr){
sourceAttribute = srcAttr.trim();
}

and an evaluate method....

The dataSource and sourceAttribute are global private variables
_________________
Thanks and regards
Vargheese Thomas
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 » Attribute Value in Custom node
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.