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 » JRE command line options (need to add a -Dmyvariable= )

Post new topic  Reply to topic
 JRE command line options (need to add a -Dmyvariable= ) « View previous topic :: View next topic » 
Author Message
powerlord
PostPosted: Tue Dec 08, 2009 1:20 am    Post subject: JRE command line options (need to add a -Dmyvariable= ) Reply with quote

Novice

Joined: 02 Sep 2005
Posts: 19

Is there a way of adding a JRE OPTS line to the JRE launcher in MB 6.1 ?

I require to access a JAVA system property inside my java code.

Lets say, its called 'PID' (because it is!).

so, if it was a regular java program I'd execute it thus:

java -DPID=$$ myprog.class

So - how can I add the '-DPID=$$' to the MB JRE launcher so that the JRE knows about my java system variable ?

Note: I know I could setProperty in java, etc, etc... however this is not an option here because:

1) it would mean changing code depolyed - I am looking for a no code change fix.

2) Thw whole point of this is to pass the PID in - so it has to be on the command line (and yeh - I know I could access this from java - again - it has to be no code change fix)

atb,

stu
Back to top
View user's profile Send private message
powerlord
PostPosted: Tue Dec 08, 2009 2:03 am    Post subject: Reply with quote

Novice

Joined: 02 Sep 2005
Posts: 19

To sort of answer my own question as it might help others:

It turns out that there are many system properties set internally by the DFE when it inits the JRE!

After deploying a node to print them all out, I found that each of the ESQL properties has a java property - even though the documentation states that in java they are only accessible from the MbNode API:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak04897_.htm

this appears not to be the case.

For example the following is a java system property:

broker.eglabel = exec group name.

this is all I need - something to unqiuely ID the exec group so different exec groups log to different files.

stu
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 » JRE command line options (need to add a -Dmyvariable= )
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.