Search code examples
javaweblogic12cear

Run bash script after application is deployed


We have a maven project that export an "ear" file at the end of building phase. App server is Weblogic 12C. and the server is clustered by 4 nodes. after deploying the app and when the machine state is active, we have to run 3 scripts to setup app properly. they are 3 scripts for translating and something like that. It mean we have always some tasks immediately after deploying and may be missed by operator. I'm wonder if there is a way to put these scripts in the ear file to be run after deploy or call them when the deploy is finish.


Solution

  • WebLogic Server supports application life cycle events that allow to run java code during specific phases of deployment/undeployment. Take a look at the documentation to see if this can hit your needs.