Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Stop Listener using wasadmin command line

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Services.png
[Thumbnail for Services.png]
Service
Service-providers.png
[Thumbnail for Service-providers.png]
Service Providers
 
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Deepak Pant

Thanks for your reply, But I've done that many times and no useful information for me.
 
Stephensh Zhang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Administrative-Scripting-Commands.png
[Thumbnail for Administrative-Scripting-Commands.png]
help.png
[Thumbnail for help.png]
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic