Solved

Python script to deploy files in weblogic

Posted on 2008-06-19
7
2,854 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
Comment Utility
I am adding this question to weblogic zone.
0
 
LVL 10

Expert Comment

by:ECollin
Comment Utility
Hi,

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

Emmanuel
0
 

Author Comment

by:Jayamurugan83
Comment Utility
Some one have any python script to deploy files in managed servers?
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 10

Expert Comment

by:ECollin
Comment Utility
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
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
Comment Utility
0
 
LVL 1

Accepted Solution

by:
ctoan earned 500 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Python Hue issue with import 12 68
plusOut java challenge 40 161
How to scan rdp  ''only'' open port 3333? 5 64
Path to Python 9 37
Strings in Python are the set of characters that, once defined, cannot be changed by any other method like replace. Even if we use the replace method it still does not modify the original string that we use, but just copies the string and then modif…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now