Solved

Python script to deploy files in weblogic

Posted on 2008-06-19
7
2,913 Views
Last Modified: 2013-12-10
Hi,
        I am trying to write a python script to handle deployment in weblogic. We are migrating applications from Jboss to Weblogic. It looks like we need to deploy files through WLST to deploy files using python scripts. When we use WLST we have to connect with admin server to deploy files in the managed server. We are planning to deploy files only on managed servers. Is it possible to deploy files in managed server when admin server is unreachable? Could any one help me to write this script in python?

Thanks.
0
Comment
Question by:Jayamurugan83
  • 2
  • 2
  • 2
  • +1
7 Comments
 

Author Comment

by:Jayamurugan83
ID: 21826065
I am adding this question to weblogic zone.
0
 
LVL 10

Expert Comment

by:ECollin
ID: 21834318
Hi,

you need the admin server to deploy your application.
Target it only on managed servers.

Emmanuel
0
 

Author Comment

by:Jayamurugan83
ID: 21835555
Some one have any python script to deploy files in managed servers?
0
Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

 
LVL 10

Expert Comment

by:ECollin
ID: 21838251
0
 
LVL 35

Expert Comment

by:girionis
ID: 21857470
There is the WebLogic Scripting Tool that allows you to do this kind of things, have a look here: http://edocs.bea.com/wls/docs90/config_scripting/using_WLST.html
0
 
LVL 35

Expert Comment

by:girionis
ID: 21857476
0
 
LVL 1

Accepted Solution

by:
ctoan earned 500 total points
ID: 21910314
It would be easier to just use the wldeploy ant task to deploy/undeploy. But the admin server has to be up and running to do this.

  <target name="deploy" description="Deploys (and redeploys) ">
        <wldeploy
                        action="deploy"
                        source="${deployment}/${app.name}_ejb.jar"
                        name="${app.name}"
                        user="weblogic"
                        password="weblogic1234"
                        adminurl="myurl01:8888"
                        debug="true"
                        targets="cluster1"
                        failonerror="true"
                        verbose="true"
                        timeout="50"/>  
      </target>
      
      <target name="undeploy" description="Deploys (and redeploys) ">
        <wldeploy
                        action="undeploy"
                        name="${app.name}"
                        user="weblogic"
                        password="weblogic1234"
                        adminurl="myurl01:8888"
                        debug="true"
                        targets="cluster1"
                        failonerror="true"
                        verbose="true"
                        timeout="50"/>  
      </target>
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
Flask is a microframework for Python based on Werkzeug and Jinja 2. This requires you to have a good understanding of Python 2.7. Lets install Flask! To install Flask you can use a python repository for libraries tool called pip. Download this f…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question