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 » Passing arguments to wmbt.exe -Solved

Post new topic  Reply to topic
 Passing arguments to wmbt.exe -Solved « View previous topic :: View next topic » 
Author Message
sjensen
PostPosted: Thu May 25, 2006 3:58 am    Post subject: Passing arguments to wmbt.exe -Solved Reply with quote

Centurion

Joined: 18 Dec 2003
Posts: 134
Location: London

Hi,

We have implemented a java security exit on the toolkit on windows. The exit takes a username and password. It would be preferable to supply these on a command line invocation of wmbt.exe. I know it takes a
Code:
 -clean
arguments and looking at the wmbt.ini file there are a number of
Code:
 -VMArgs=
statement. I've had no luck trying to pass username/password however. Is there an overview of the arguments wmbt.exe will take and how to pass them?

Toolkit running on Windows 2003 server and XP-Pro

Many Thanks
Stefan


Last edited by sjensen on Fri May 26, 2006 6:28 am; edited 1 time in total
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu May 25, 2006 4:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The only way I know that you could do this would be to use java system properties.

So do "-VMArgs= -Dmy.java.property.username=<username> -Dmy.java.property.password=<password>". And then code your security exit to get the values of my.java.property.username and my.java.property.password.

There is a list of the runtime options for Eclipse in the Help of the broker toolkit.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sjensen
PostPosted: Thu May 25, 2006 7:22 am    Post subject: Reply with quote

Centurion

Joined: 18 Dec 2003
Posts: 134
Location: London

Hi,

Thanks. I tried adding that on the command line. However it did not work .

I tried:
Code:
 wmbt.exe -VMArgs=Djava.property.username=<user> -VMArgs=-Djava.property.password=<passwd>

and
Code:
 wmbt.exe "-VMArgs=Djava.property.username=<user>  -VMArgs=-Djava.property.password=<passwd>"

and
Code:
 wmbt.exe VMArgs=Djava.property.username=<user> VMArgs=-Djava.property.password=<passwd> 

and
Code:
 wmbt.exe "VMArgs=Djava.property.username=<user> VMArgs=-Djava.property.password=<passwd>"


None of them worked so is this simply not possible or am I doing something stupid (again )?

Thanks
Stefan
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu May 25, 2006 7:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

sjensen wrote:
None of them worked so is this simply not possible or am I doing something stupid (again )?


How did it not work? Did the toolkit not launch?

It's entirely possible that my syntax is wrong. It was from the top of my head. So it might be that I did something stupid, not you.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sjensen
PostPosted: Thu May 25, 2006 8:01 am    Post subject: Reply with quote

Centurion

Joined: 18 Dec 2003
Posts: 134
Location: London

Hi,

Toolkit launches but the arguments are not passed to the exit. The way the exit works if the username/password is not passed it will prompt and alas it prompts. If I put the java property lines into config.ini it works but I do not want passwords in a file really and it is in the product directory so for all users on the machine. The syntax looks like the one used in wmbt.ini I've tried most combinations I think.

Thanks
Stefan
Back to top
View user's profile Send private message
sjensen
PostPosted: Fri May 26, 2006 6:31 am    Post subject: Reply with quote

Centurion

Joined: 18 Dec 2003
Posts: 134
Location: London

Hi,

Got it. This works:

Code:
wmbt.exe -vmargs "-Djava.property.username=<user>" "-Djava.property.password=<passwd>"


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 » Passing arguments to wmbt.exe -Solved
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.