wsadmin jython update uninstall install application


I'm trying to piece together or find a sample script that will install, update or uninstall then install new version of an app on WAS 6.1

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HonorGodSoftware EngineerCommented:
The following page has both Jacl & Jython scripts for WebSphere administration, including the deployment of applications.
HonorGodSoftware EngineerCommented:
Be sure to take a look at AutoDeploy
hu8myphoAuthor Commented:
I actually downloaded the autodeploy samples and have been looking at the description doc.  I'm familiar with wsadmin, but isn't strong in python.  Trying to see if I can rip stuff apart or combine  stuff together to get a single or fewer executable py that encompasses my desired functionality.  Any thoughts?
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

HonorGodSoftware EngineerCommented:
Well, Jython is basically Python, but instead of executing on the Python virtual machine (using Python byte code), Jython executes on a Java Virtual Machine.

So, Jython is compiled into Java byte codes, and executed on the same Java Virtual Machine code that is used by the WebSphere Application Server.

To learn Jython, use some of the Python tutorials (e.g.,

If you have specific questions about wsadmin Jython, I'll be happy to try and answer them for you.
hu8myphoAuthor Commented:
Thanks for your help.  I am actually looking for help on this.  I meant to say Jython, I was just implying jython when referring to wsadmin.  

I've been tasked with trying to put together a script of set of script that essentially accomplishes some of the tasks that the autodeploy sample achieves.  I need to tailor it specifically to situation.  Can you help?

I'm familiar with the wsadmin objects, but haven't used it often.  

HonorGodSoftware EngineerCommented:
I am very familiar with wsadmin, and Jython (less so with Jacl).
What do you need to do?

I presume that you are on WebSphere Application Server 6.1.
Is that correct?
hu8myphoAuthor Commented:
Thanks ahead for your help.  I can definitely see your track record.  I'm working on WAS knowledge, but I need to ramp up on wsadmin jython asap.  Looking to build deployment script.  I've been looking through samples and stuff, but now I want to carve out something from it that is can be used in my environment.  

WAS 6.1.  any way to discuss further offline?
HonorGodSoftware EngineerCommented:
Q: Any way to discuss further offline?
A: No.  experts-exchange forbids "off line" discussions.

  That would give unfair advantage to the person/people with whom information is shared.

This is the link to the online documentation for version 6.1 of of the WebSphere Application Server product:

If you click on the link labelled "install", the portion of the documentation related to the AdminApp.install() command will be displayed.  If the default settings are acceptable, this this could be as simple as:

print AdminApp.install('c:/apps/myapp.ear')

What specific questions do you have?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hu8myphoAuthor Commented:
thank you.  will start over with specific questions.
HonorGodSoftware EngineerCommented:
I hope that you found the information somewhat helpful.

I think that you understand how difficult it is to answer a "wide open" question thoug.

Thanks for the grade & points

Good luck & have a great day.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.