Scripted Deployment in TIBCO BW
- Create an archive file in designer but don’t build EAR file. EAR file should build from command prompt.
- Go to the following location in Command prompt
C:\TIBCO_BW\tra\5.6\bin>
- To build Ear file from the project
buildear -s -ear
/Scriptdeploy.archive -o E:\scriptedDep.ear -p
E:\scripteddeploymentdocument\scriptdeploy
- Now we have to build Deployment Configuration file from EAR file.
AppManage -export -ear
E:\scriptedDep.ear -out E:\scripteddeploymentdocument\scriptedDep.xml
- Add the following into formation in confirmation file (.xml)
<bindings>
<binding
name="ScriptedDeployment">
<machine>Home-PC</machine>
<product>
<type>bwengine</type>
<version>5.8</version>
<location>C:\tibco\bw\5.8</location>
</product>
<description></description>
<contact></contact>
<shutdown>
<checkpoint>false</checkpoint>
<timeout>0</timeout>
</shutdown>
</binding>
</bindings>
- Now deploy the Application in to a domain
AppManage -deploy -ear
E:\scriptedDep.ear -deployconfig E:\scripteddeploymentdocument\scriptedDep.xml
-app ScriptedDep -domain mindmajix -user mindmajix -pw mindmajix
In Admin
- For undeploying an application
AppManage -undeploy -app
scriptdept -user mindmajix -pw mindmajix -domain mindmajix
- To Deploy the application in Fault Tolerance
<isFt>true</isFt>
Change
the value if "isFt" to true. By default it will be false
and
add one more binding in the bindings and <ftWeight>100</ftWeight>
in each binding with different binding names
If
ftWeight value is different in two bindings (500 and 200)it will be in primary
and secondary mode if both values are equal then it will be in peer to peer.
- Now You undeploy the Application and deploy aging
Undeploy the Application
AppManage -undeploy -app ScriptedDep-user mindmajix -pw mindmajix -domain mindmajix
- Deploy the Application
AppManage -deploy -ear
E:\scriptedDep.ear -deployconfig E:\scripteddeploymentdocument\scriptedDep.xml
-app ScriptedDep43 -domain mindmajix -user mindmajix -pw mindmajix
- To extract ear and configuration file from a application
Appmanage -export -out E:\Z\scriptedDep.xml -genEar -ear E:\Z\A.ear
-app ScriptedDep -domain mindmajix -user
mindmajix -pw mindmajix
- To get all the possible tag in configuration (.xml) file from ear
AppManage -export -ear
E:\scriptedDep.ear -out E:\scripteddeploymentdocument\scriptedDep1.xml –max
Interesting Article
ReplyDeleteJava Online Training | Core Java Training Online
Online Java Training | Java EE Online Training
Thank you for sharing such a good blog. You are doing a great job.
ReplyDeleteTIBCO BW Container Edition Online Training
TIBCO BWCE training in Ameerpet
TIBCO BWCE training in Hyderabad
Nice post.
ReplyDeleteNice post.
Telugu movies download
Indian movies download
movies download
Movies watch online
Online movies watch
Hindi movies download