WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Automate script to install and uninstall of application(.ear) after checking state of BPEL process

    Posted Mon April 01, 2013 05:34 AM
    Hi all,

        I have a requirement where in i need to automate the deployment of enterprise applications(.ear) (install/uninstall/update) using jacl scripting..

       In Websphere Process Server, it is observed that before uninstalling or updating an application(.ear) which has a Business Process(BPEL), the BPEL Process should be stopped and then we proceed further for uninstalling or updating the EAR.Otherwise it will result in the failure in the uninstallation process.

      We want to automate the process of checking the state of BPEL process before moving ahead with uninstalling of EAR.

      My requirement is:
    1.   A script(jacl) should check the state of BPEL Process(started or stopped). If it is started, then it should stop the BPEL.

     2. Then another script should uninstall or update the EAR which has that BPEL Process.

       Need some assistance in this regard. Please provide some guidelines to accomplish this task.

    Thanks in advance.



  • 2.  Automate script to install and uninstall of application(.ear) after checking state of BPEL process

    Posted Tue April 02, 2013 07:40 AM
    Yes.. you can

    1. There are some utilities provided by IBM under processChoreographer/admin directory of your process server installation.  These are Jython/Jacl scripts hence you can use with wsadmin.

    2. Deploying EAR file also can be automated using wsadmin. I remember couple of our community members posted scripts which you can use by changing the varibles.


  • 3.  Automate script to install and uninstall of application(.ear) after checking state of BPEL process

    Posted Tue April 02, 2013 08:34 AM

    Hi Joseph,


        Thanks for your reply. We have a set of jacl scripts and install/uninstall scripts for automated deployment of enterprise applications and is working properly.


       
       Using bpcTemplates.jacl present in processChoreographer/admin, i could able to stop/start BPEL using wsadmin.But i have a requirement where i need to check which all enterprise applications have Business Process(BPEL) and stop them before going for uninstalling those applications..


       Since some of the times we tend to forget stopping BPEL process before uninstalling applications which lead to so many problems while installing the same application.

      Can we somehow integrate these two scripts to automate the install/uninstall process?

    Thanks in advance.

      
     



  • 4.  Automate script to install and uninstall of application(.ear) after checking state of BPEL process

    Posted Tue April 02, 2013 08:54 AM
    Ok

    The following has been introduced from v7.5 but unfortunately it is not available in v7

    pic.dhe.ibm.com/infocenter/dmndhelp/v8r0...




  • 5.  Automate script to install and uninstall of application(.ear) after checking state of BPEL process

    Posted Tue April 02, 2013 08:57 AM
    Hi Pavan,

      Stopping and starting process and task templates using administrative scripts
      pic.dhe.ibm.com/infocenter/dmndhelp/v7r0...

      Some useful administration scripts, related to Process Server

       Business Process Choreographer administrative scripts
       pic.dhe.ibm.com/infocenter/dmndhelp/v7r0...

       Commands (wsadmin scripting)
       pic.dhe.ibm.com/infocenter/dmndhelp/v7r0...

       Command-line utilities
       pic.dhe.ibm.com/infocenter/dmndhelp/v7r0...
       
       Hope this helps,
       
       
     Regards


  • 6.  Automate script to install and uninstall of application(.ear) after checking state of BPEL process

    Posted Tue April 02, 2013 09:21 AM
    Pavan - you can also try -force option while uninstalling process templates.

    Also try to get the listTemplates.py file and run against v7 . It should work :-)