Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2295
  • Last Modified:

wsadmin jython update uninstall install application

Hi

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

Thanks
0
hu8mypho
Asked:
hu8mypho
  • 6
  • 4
1 Solution
 
HonorGodCommented:
The following page has both Jacl & Jython scripts for WebSphere administration, including the deployment of applications.

http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html
0
 
HonorGodCommented:
Be sure to take a look at AutoDeploy
0
 
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?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
HonorGodCommented:
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., http://www.python.org/tutorial).

If you have specific questions about wsadmin Jython, I'll be happy to try and answer them for you.
0
 
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.  

Thanks,
0
 
HonorGodCommented:
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?
0
 
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?
0
 
HonorGodCommented:
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:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/rxml_adminapp.html

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?
0
 
hu8myphoAuthor Commented:
thank you.  will start over with specific questions.
0
 
HonorGodCommented:
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.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now