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 » Setting Java System Properties (java -D xxx) in WMB 6.0

Post new topic  Reply to topic
 Setting Java System Properties (java -D xxx) in WMB 6.0 « View previous topic :: View next topic » 
Author Message
capistrano
PostPosted: Mon Nov 03, 2008 9:16 am    Post subject: Setting Java System Properties (java -D xxx) in WMB 6.0 Reply with quote

Novice

Joined: 28 Jun 2005
Posts: 13
Location: Dublin

Does anyone know how/if I can specify System Property definitions for the WMB 6.0 JVM?

I am talking about the System Properties specified with -D option on the java command.

The idea is that if I can specify these System Properties then I can read the from ESQL via an external java function. In this way I can parameterise my application per environment.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Nov 03, 2008 10:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Just use User Defined Properties on your Bar File instead.

You can read those just fine from Java.

And you can also read them from ESQL, which you won't be able to do with -D properties unless you write a Java routine that you can call (and even then it's a bad idea).
Back to top
View user's profile Send private message
capistrano
PostPosted: Tue Nov 04, 2008 2:53 am    Post subject: Reply with quote

Novice

Joined: 28 Jun 2005
Posts: 13
Location: Dublin

Yes, I'll probably use User Defined Properties.

But I'd still be inteterested in knowing if I can set JVM System Properties that can then be accessed from Java running on WMB.
Back to top
View user's profile Send private message
mqmatt
PostPosted: Tue Nov 04, 2008 5:02 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

You can use the environment variable MQSIJVERBOSE to pass extra commandline parameters to the JVM.
Code:
set MQSIJVERBOSE=-D xx

Use with caution; as other posters have said, UDPs should be used wherever possible.
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 » Setting Java System Properties (java -D xxx) in WMB 6.0
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.