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 » removing spaces between words

Post new topic  Reply to topic
 removing spaces between words « View previous topic :: View next topic » 
Author Message
mbtech
PostPosted: Fri May 24, 2013 5:39 am    Post subject: removing spaces between words Reply with quote

Apprentice

Joined: 18 Jul 2012
Posts: 36

I have a scenario where a group of words(a meaning ful word) come from input request for a field.i have to trim out the spaces and replce with _ between them and get the corresponding value from property file.Can any one let me know either trimming out the spaces between words or replacing with _.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri May 24, 2013 5:52 am    Post subject: Re: removing spaces between words Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mbtech wrote:
Can any one let me know either trimming out the spaces between words or replacing with _.


Seriously?

I typed "replacing characters" into the search on the InfoCenter and got this as the first hit.

You could probably have achived the same by guessing the function name, or just looking up the string functions provided.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dogorsy
PostPosted: Fri May 24, 2013 8:27 am    Post subject: Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

Why don't you post your requirements and ask someone to write the whole flow for you ?, that would save you time.
Alternatively, there is something called 'Info Center'


Last edited by dogorsy on Fri May 24, 2013 8:28 am; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 24, 2013 8:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why do you need to do this manually? Why not define a message model to do it for you?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri May 24, 2013 9:30 am    Post subject: Re: removing spaces between words Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mbtech wrote:
and get the corresponding value from property file.

Sounds very "java" like to me. In the broker you would want to get the property from either a DB or a shared variable. You can load these at startup (or on first access)...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri May 24, 2013 11:43 am    Post subject: Re: removing spaces between words Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

fjb_saper wrote:
mbtech wrote:
and get the corresponding value from property file.

Sounds very "java" like to me. In the broker you would want to get the property from either a DB or a shared variable. You can load these at startup (or on first access)...


I think you meant an EXTERNAL variable...

Back to top
View user's profile Send private message
kash3338
PostPosted: Fri May 24, 2013 10:31 pm    Post subject: Re: removing spaces between words Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

mqjeff wrote:
fjb_saper wrote:
Sounds very "java" like to me. In the broker you would want to get the property from either a DB or a shared variable. You can load these at startup (or on first access)...


I think you meant an EXTERNAL variable...



I think its DB/SHARED or EXTERNAL
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sun May 26, 2013 5:48 am    Post subject: Re: removing spaces between words Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mqjeff wrote:
fjb_saper wrote:
mbtech wrote:
and get the corresponding value from property file.

Sounds very "java" like to me. In the broker you would want to get the property from either a DB or a shared variable. You can load these at startup (or on first access)...


I think you meant an EXTERNAL variable...


Well you can use the EXTERNAL to populate the SHARED on first access. But you cannot change the EXTERNAL while the flow is running (unless you use the CMP or MBX), whereas you can determine a mechanism for reloading the SHARED while the flow is running... (like switching a property file)...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
goffinf
PostPosted: Sun May 26, 2013 10:53 am    Post subject: Re: removing spaces between words Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

fjb_saper wrote:
mqjeff wrote:
fjb_saper wrote:
mbtech wrote:
and get the corresponding value from property file.

Sounds very "java" like to me. In the broker you would want to get the property from either a DB or a shared variable. You can load these at startup (or on first access)...


I think you meant an EXTERNAL variable...


Well you can use the EXTERNAL to populate the SHARED on first access. But you cannot change the EXTERNAL while the flow is running (unless you use the CMP or MBX), whereas you can determine a mechanism for reloading the SHARED while the flow is running... (like switching a property file)...


Indeed. An EXTERNAL is a CONSTANT.

Recently we have started to use JMX for updating SHARED variables, although you do need to take account of concurrency (if it matters).
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 » removing spaces between words
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.