Solved

Python script to deploy files in weblogic

Posted on 2008-06-19
7
2,895 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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't install scipy on Python 2.7 in Win7 2 246
Macports Import Problem 4 64
How To Loop - Python 19 95
Optimum versions of Selenium Webdriver with Python On Windows 7 1 140
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 if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…

860 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