mqsipackagebar command is a new command introduced in Message Broker v8.0.0.1 and it is shipped with runtime.
mqsipackagebar is used to create bar file on a machine which don’t have Message Broker installed.
WMB 8.0.0.1 introduces the ability to deploy message flows
without needing to compile them into *.cmf files and the same feature is
used by the mqsipackagebar command.
Resources that you add to a BAR file by using the mqsipackagebar
command are not compiled when they are added and this command adds only
deployable resources to the BAR file.
Whatever resources we add through this command to the bar file are
not complied which means *.msgflows are added to bar file as *.msgflows
and not *.cmfs.
But still *.mset,*java files are not deployable resources in MB
8.0.0.1. So if we need to add these resources to the bar file then these
resources should be complied as *.dictionary,*.xsdzip,*.jar
There is also an option in the command to include non-deployable
resources but these resources will not be deployed to the execution
group.
Few options in toolkit and mqsicreatebar commands are added to facilitate this command.
In MBToolkit 8.0.0.1, the default option is not to compile the message flows into .cmf files and generates the mqsipackagebar command for the bar file we created.
Usage:
1. Can create bar file on any machine and message broker installation
is not required. But few configuration is required to run this command.
For configuration set up, please visit the
link.
2. Adds the *.msgflow, *.esql, *.subflow to the bar file without compiling.
3. As it is not compiling the deployable resources like msgflow, we can recover the code with the help of bar file at any time.
4. Can create bar file with both deployable objects(.msgflow) and non-deployable objects(.zip)
Restrictions:
1. Can’t have both *.cmf and *.msgflow of a message flow in the same bar
2. *.mset and *.java are not deployable resource and these types of resources needs to be
compiled prior to using this command.
If we want to compile message sets and Java projects, we can go with the below options
Toolkit provides the option to complie the resources like .mset to .dictnory and .java to .jar
mqsicreatebar command is updated to complie the resources like .mset to .dictnory and .java to .jar
mqsicreatebar -data
workspace -compileOnly
3. Will not do strict validation on the resource we add to the bar file and is less powerful when compare mqsicreatebar.
4. Should convert all subflows with .msgflow extension to .subflow extension.
MB toolkit 8.0.0.1 has option to convert the subflows with .msgflow extension to .subflow extension.
