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 » MbElement getValueAsString java method

Post new topic  Reply to topic
 MbElement getValueAsString java method « View previous topic :: View next topic » 
Author Message
PEPERO
PostPosted: Sun Aug 10, 2014 10:31 pm    Post subject: MbElement getValueAsString java method Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Hi all;
Apparently the getValueAsString java method in JCN trims automatically the element's value. How could it be avoided?
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Aug 11, 2014 2:48 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

What evidence do you have for this?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
PEPERO
PostPosted: Wed Sep 03, 2014 10:40 pm    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

There is an element of type xsd:string within the MRM message. Whenever the value of this element ends with spaces , the parser sets the value of the element up to a non-space position. What do i have to do to get the whole value of the element with spaces included?
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Sep 03, 2014 11:27 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

So...what about the getValueAsString() method? Are you still claiming that it is broken?

MRM does trimming ( when parsing ) and padding ( when writing ) on fixed-length fields. It's easy to adjust the settings to avoid it. I think you need to set 'Justification' to 'None' but my memory may be faulty.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
PEPERO
PostPosted: Wed Sep 03, 2014 11:54 pm    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Quote:

So...what about the getValueAsString() method? Are you still claiming that it is broken?

That's beacause of the MRM trimming.
But it cannot be set to none. I try to set justification to 'Not applicable' but it automatically changes to 'Left Justify' when i save the properties!


Last edited by PEPERO on Sat Sep 06, 2014 7:29 am; edited 2 times in total
Back to top
View user's profile Send private message
PEPERO
PostPosted: Sat Sep 06, 2014 7:23 am    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Shall i replace the MRM domain with BLOB?
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 » MbElement getValueAsString java method
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.