Buildear & AppMange in Script Deployment, Advantages

The script deployment allow to build an ear file for application and then load the application into one or more domain in tibco administrator.

Build ear Utility

The buildear utility builds an ear file based on the enterprise archive resources that is defined in a tibco designer, the project is configured using tibco designer.

AppManage Utility

AppManage utility can be used to create deployment configuration information from an ear file, and deploy it in tibco admin through command line. Before deploy can make any changes in file.

AppManage utility is not only for deploy purpose, it should be used to undeploy and delete application from domain, start and stop application services in administrator.

Advantages of Script Deployment

We cant able to deploy ear through GUI when administrator down but we deploy ear through command prompt (script deploy).we have to deploy same global variable to different application, every time we deploy by individual, override this problem we use script to deployment using configuration xml file.

Create ear (Application) file

builder s p c:\tibco\ ClientApp -o d:\ ClientApp.ear

Create xml (Deployment Configuration) File

Below command will create and save an xml file from ear in the given directory. Once done, you can make any changes before deployment (ex: you need to change global variable can do here).

Appmanage -export -ear d:\ ClientApp.ear -out d:\ ClientApp.xml

Upload ear file

Appmanage -upload -ear d:\ ClientApp.ear -domain mydomain -user admin -pw admin

Deploy ear & xml file

Appmanage -deploy -ear d:\ ClientApp.ear -deployconfig d:\ ClientApp.xml -domain mydomain -user admin -pw admin

Deploy ear only

Appmanage -deploy -app ClientApp -domain mydomain -user admin -pw admin

Undeploy ear

Appmanage -undeploy -app ClientApp -domain mydomain -user admin -pw admin

Delete ear

Appmanage -delete -app ClientApp -domain mydomain -user admin -pw admin

Deploy xml file after changes

Appmanage -deploy -deployconfig d:\ ClientApp.xml -domain mydomain -user admin -pw admin

Create new xml file based on same properties of old xml file for new changes and also text file

Appmanage -export d:\ ClientApp.ear -deployconfig d:\ ClientApp.xml out d:\ ClientApp _changes.xml

Export Application in Batch deploy mode

AppManage -batchExport -domain mydomain -user admin -pw admin -dir c:\adminbatch\mybatch\

Deploying Applications in Batch Mode

AppManage -batchdeploy -domain mydomain -user admin -pw admin -dir c:\adminbatch\mybatch\ -nostart


-export : export a deployment configuration file
-upload : upload an archive
-config : configure an application
-deploy : deploy an application
-undeploy : undeploy an application
-delete : delete an application
-s : save
-o : output path
-p : input path
-user : tibco administrator domain user name
-pw : tibco administrator domain password
-domain : domain name of application deploy
-start : start deployed service instance an application
-stop : stop deployed service instance an application
-kill : kill deployed service instance an application
-nostart : no start services at deploy time
-batchupload : upload all applications specified in appmanage.batch
-batchconfig : config all applications specified in appmanage.batch
-batchDeploy : deploy all applications specified in appmanage.batch
-batchUndeploy : undeploy all applications specified in appmanage.batch