Solved

Python script to deploy files in weblogic

Posted on 2008-06-19
7
2,859 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error catching in Python 8 48
Java concurrency in pictures ( or animations ) 1 108
Trying to run a Python File 11 63
Export Table to CSV - Access to CSV - using python 18 100
"The time has come," the Walrus said, "To talk of many things: Of sets--and lists--and dictionaries-- Of variable kinks-- And why you see it changing not-- And why so strange are strings." This part describes how variables and references (see …
This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
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 …

920 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

13 Experts available now in Live!

Get 1:1 Help Now