There are two deployment methods in Message Broker
Deploying bar file without clearing currently deployed resources in the execution group. The bar file will add or modify the resources but it will not clear the execution group.
How to do it:
1. WMB Toolkit
Drag a message flow or a broker archive (BAR) file from the Broker Development view onto an execution group to deploy it. Alternatively, right-click an execution group to select a message flow or BAR file to deploy to the selected execution group.
Testclient:
Test client is used to deploy and test the code sequentially in WMBT and it is not used only for deployment.
Check the box as per the screenshot and start deploying and testing the flow.
Windows -> Preferences->Broker Development-> Message Broker Test Client->Check the box ”Add or modify(but not clear) what has already been deployed on the execution group”.

2. WMB Explorer
Uncheck the box as per the screenshot and deploy the bar file
Windows -> Preferences->WebSphere Message Broker Explorer-> Uncheck the box “Empty the contents of the execution group before deployment”.

3. CommandConsole( must not specify –m parameter)
Use mqsideploy command without –m option
mqsideploy MB8BROKER -e default -a mybar.bar -w 600
4. Message Broker API(CMP API)
Use deploy method with isIncremental argument “true”
public DeployResult deploy(java.io.InputStream barStream,
java.lang.String barFileLabel,
boolean isIncremental,
long timeToWaitMs)
ExecutionGroupProxy eg = b.getExecutionGroupByName(“default”);
DeployResult dr = eg.deploy(“MyBAR.bar”, true, 30000);
Complete Deployment:
Deploying bar file after clearing all currently deployed resources in the execution group. The bar file will remove all the objects in the execution group then starts deploying .
1. WMB Toolkit – Test client
Drag a message flow or a broker archive (BAR) file from the Broker Development view onto an execution group will always to incremental deployment.
So, if complete deployment is required then only way is to use the test client.Test client is used to deploy and test the code in WMBT and it is not used only for deployment.
UnCheck the box as per the screenshot and start deploying and testing the flow.
Windows -> Preferences->Broker Development-> Message Broker Test Client->Uncheck the box ”Add or modify(but not clear) what has already been deployed on the execution group”.

2. WMB Explorer
Check the box as per the screenshot and deploy the bar file
Windows -> Preferences->WebSphere Message Broker Explorer-> Check the box “Empty the contents of the execution group before deployment”.

3. CommandConsole( -m is mandatory)
Use mqsideploy command with –m option
mqsideploy MB8BROKER -e default -a mybar.bar -m -w 600
4. Message Broker API(CMP API)
Use deploy method with isIncremental argument “false”
public DeployResult deploy(java.io.InputStream barStream,
java.lang.String barFileLabel,
boolean isIncremental,
long timeToWaitMs)
ExecutionGroupProxy eg = b.getExecutionGroupByName(“default”);
DeployResult dr = eg.deploy(“MyBAR.bar”, false, 30000);
- Delta or Incremental Deployment
- Complete Deployment
Deploying bar file without clearing currently deployed resources in the execution group. The bar file will add or modify the resources but it will not clear the execution group.
How to do it:
1. WMB Toolkit
Drag a message flow or a broker archive (BAR) file from the Broker Development view onto an execution group to deploy it. Alternatively, right-click an execution group to select a message flow or BAR file to deploy to the selected execution group.
Testclient:
Test client is used to deploy and test the code sequentially in WMBT and it is not used only for deployment.
Check the box as per the screenshot and start deploying and testing the flow.
Windows -> Preferences->Broker Development-> Message Broker Test Client->Check the box ”Add or modify(but not clear) what has already been deployed on the execution group”.

2. WMB Explorer
Uncheck the box as per the screenshot and deploy the bar file
Windows -> Preferences->WebSphere Message Broker Explorer-> Uncheck the box “Empty the contents of the execution group before deployment”.

3. CommandConsole( must not specify –m parameter)
Use mqsideploy command without –m option
mqsideploy MB8BROKER -e default -a mybar.bar -w 600
4. Message Broker API(CMP API)
Use deploy method with isIncremental argument “true”
public DeployResult deploy(java.io.InputStream barStream,
java.lang.String barFileLabel,
boolean isIncremental,
long timeToWaitMs)
ExecutionGroupProxy eg = b.getExecutionGroupByName(“default”);
DeployResult dr = eg.deploy(“MyBAR.bar”, true, 30000);
Complete Deployment:
Deploying bar file after clearing all currently deployed resources in the execution group. The bar file will remove all the objects in the execution group then starts deploying .
1. WMB Toolkit – Test client
Drag a message flow or a broker archive (BAR) file from the Broker Development view onto an execution group will always to incremental deployment.
So, if complete deployment is required then only way is to use the test client.Test client is used to deploy and test the code in WMBT and it is not used only for deployment.
UnCheck the box as per the screenshot and start deploying and testing the flow.
Windows -> Preferences->Broker Development-> Message Broker Test Client->Uncheck the box ”Add or modify(but not clear) what has already been deployed on the execution group”.

2. WMB Explorer
Check the box as per the screenshot and deploy the bar file
Windows -> Preferences->WebSphere Message Broker Explorer-> Check the box “Empty the contents of the execution group before deployment”.

3. CommandConsole( -m is mandatory)
Use mqsideploy command with –m option
mqsideploy MB8BROKER -e default -a mybar.bar -m -w 600
4. Message Broker API(CMP API)
Use deploy method with isIncremental argument “false”
public DeployResult deploy(java.io.InputStream barStream,
java.lang.String barFileLabel,
boolean isIncremental,
long timeToWaitMs)
ExecutionGroupProxy eg = b.getExecutionGroupByName(“default”);
DeployResult dr = eg.deploy(“MyBAR.bar”, false, 30000);
How to remove a deployed bar file from Execution group using mqsideploy command??????????????????
ReplyDeleteCan be done by using mqsideploy with -d option
ReplyDeleteGreat survey, I'm sure you're getting a great response. City Index demo review
ReplyDelete