This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes JAVA_OPTION in WLST and Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JAVA_OPTION in WLST and Weblogic" Watch "JAVA_OPTION in WLST and Weblogic" New topic
Author

JAVA_OPTION in WLST and Weblogic

Malatesh Karabisti
Ranch Hand

Joined: Jul 28, 2010
Posts: 153

Hi All,

I am trying to automate the build and deployment in weblogic server, using nodemanger and wlst I am doing start/stop of server like nmStart('servername') and nmKill('servername'), I don't have any issue with starting servers but I need to pass java options during the start up like -Dkey=value.

I know it can be done by adding the JAVA_OPTIONS in startWeblogich.sh, But I don't want to modify this scipt.

Can any body please suggest on passing the java options in wlst.

Thanks,
Malatesh Karabisti
Ranch Hand

Joined: Jul 28, 2010
Posts: 153

I have solved like this.

wls:/nm/mydomain> prps = makePropertiesObject("weblogic.ListenPort=8001")
wls:/nm/mydomain> nmStart("AdminServer",props=prps)
 
Consider Paul's rocket mass heater.
 
subject: JAVA_OPTION in WLST and Weblogic
 
Similar Threads
How to list domains in weblogic using java?
weblogic server state using embedded form of WLST
Is there any way to trigger aleart when a stuck thread found?
error in running stand alone WLST
Trouble running a WLST snippet