• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3055
  • Last Modified:

Python script to deploy files in weblogic

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
Jayamurugan83
Asked:
Jayamurugan83
  • 2
  • 2
  • 2
  • +1
1 Solution
 
Jayamurugan83Author Commented:
I am adding this question to weblogic zone.
0
 
ECollinCommented:
Hi,

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

Emmanuel
0
 
Jayamurugan83Author Commented:
Some one have any python script to deploy files in managed servers?
0
Technology Partners: 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!

 
ECollinCommented:
0
 
girionisCommented:
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
 
girionisCommented:
0
 
ctoanCommented:
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

Technology Partners: 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!

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now