This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Websphere and the fly likes Stop Listener using wasadmin command line Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "Stop Listener using wasadmin command line" Watch "Stop Listener using wasadmin command line" New topic
Author

Stop Listener using wasadmin command line

Stephensh Zhang
Greenhorn

Joined: May 18, 2010
Posts: 5
Hi All, I am using Websphere 7.0 on Unix, I need using jython script stop listener, I consulted this page(http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=%2Fcom.ibm.websphere.base.doc%2Finfo%2Faes%2Fae%2Frxml_startport.html) but I can't get any useful information for me.
This is my jython scripts:


I believe I had some service providers and no attribute named as ListenerPort or look like ListenerPort.

Please refer attachements, Thanks.




[Thumbnail for Services.png]


[Thumbnail for Service providers.png]



Before the dream lifts you into the clouds,make sure look hard at the facts on the ground.
http://www.cnblogs.com/bruceleey
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
One simple way to create your Jython script is to see how WAS is doing it internally.

Check both the check boxes related to wsadmin and command assistance mode under Console Preferences.

Then perform the activity using manual steps in the admin console.

You will notice that WAS generates sample script in a file under <profile>/<logs> folder.

See how WAS is doing it and then customize and parameterize it.
Stephensh Zhang
Greenhorn

Joined: May 18, 2010
Posts: 5
@Deepak Pant

Thanks for your reply, But I've done that many times and no useful information for me.
Stephensh Zhang
Greenhorn

Joined: May 18, 2010
Posts: 5
I find a new way to stop ListenerPort, You need have to click Command Assistance in Web Console, Selected checkbox and click button stop listener,
Look at Command Assistance , You'll find answer. Refer attachements.


[Thumbnail for Administrative Scripting Commands.png]

[Thumbnail for help.png]

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Stop Listener using wasadmin command line
 
Similar Threads
HELP! Websphere ThreadMonitor Exception
Ant script for WAS 7
servlet
Compile and Deploy EJB without RAD,WASD
WSadmin set sessionManagement (cookiePath) for WebModule doesn't work.