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 IndexWebSphere Message Broker (ACE) SupportEnvironment Variables in a .NET Compute Node

Post new topicReply to topic
Environment Variables in a .NET Compute Node View previous topic :: View next topic
Author Message
Wayne89
PostPosted: Wed Feb 11, 2015 7:24 am Post subject: Environment Variables in a .NET Compute Node Reply with quote

Newbie

Joined: 11 Feb 2015
Posts: 5

Hi,

I need to get a string value from Environment Variable in a .NET Compute Node. I’ve used

string SResult = Environment.GetEnvironmentVariable("variable", EnvironmentVariableTarget.Process);

but there is no data in “SResult”

Can anyone tell me how can we get a string value in .Net CN??

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Feb 11, 2015 7:27 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Which environment?

The Environment message tree?

or the command line environment that the broker is running under?
Back to top
View user's profile Send private message
Wayne89
PostPosted: Wed Feb 11, 2015 7:43 am Post subject: Reply with quote

Newbie

Joined: 11 Feb 2015
Posts: 5

mqjeff wrote:
Which environment?

The Environment message tree?

or the command line environment that the broker is running under?



Environment Message Tree
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Feb 11, 2015 8:00 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Well.

GetEnvironmentVariable is a Microsoft API call that retrieves data from the command line environment.

The Environment message tree is a message tree, that you access using the same IIB methods you use to access fields under Root.
Back to top
View user's profile Send private message
Wayne89
PostPosted: Wed Feb 11, 2015 8:46 am Post subject: Reply with quote

Newbie

Joined: 11 Feb 2015
Posts: 5

mqjeff wrote:
Well.

GetEnvironmentVariable is a Microsoft API call that retrieves data from the command line environment.

The Environment message tree is a message tree, that you access using the same IIB methods you use to access fields under Root.



Jeff, can you please give me a sample code to Retrieve Data from environment message tree in a .net compute node.

Thank you!
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Feb 11, 2015 9:12 am Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

There are examples of accessing the
Code:
OutputRoot
tree in this article:

http://www.ibm.com/developerworks/websphere/tutorials/1112_thompson/section5.html

Accessing the Environment tree is very similar, take a look and post back if you still have problems.

Kind regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Wayne89
PostPosted: Fri Feb 20, 2015 8:31 am Post subject: Reply with quote

Newbie

Joined: 11 Feb 2015
Posts: 5

mgk wrote:
There are examples of accessing the
Code:
OutputRoot
tree in this article:

http://www.ibm.com/developerworks/websphere/tutorials/1112_thompson/section5.html

Accessing the Environment tree is very similar, take a look and post back if you still have problems.

Kind regards,


The examples helped.

Thank you!
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportEnvironment Variables in a .NET Compute 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.