Author |
Message
|
kristymq |
Posted: Wed Jul 30, 2008 3:20 am Post subject: To run mqsicreatebar without MB Installed? |
|
|
Newbie
Joined: 23 Jun 2008 Posts: 3
|
Hello,
May sounds silly.. but Is it possible to build a message broker archieve file using mqsicreatebar command, by just copying eclipse folder (has mqsicreatebar.exe file & workbench commands), without having any MB Installed in the staging box? |
|
Back to top |
|
 |
AkankshA |
Posted: Wed Jul 30, 2008 3:44 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
probably you yourself can try that and let us know... i doubt abt the success.. but i could very well be wrong too..
But my curiosity.. What would you achieve by that.. . what is the requirement of having such a design.... _________________ Cheers |
|
Back to top |
|
 |
kristymq |
Posted: Wed Jul 30, 2008 4:35 am Post subject: |
|
|
Newbie
Joined: 23 Jun 2008 Posts: 3
|
What we are trying to achieve(rather expected to achieve) is, We have to check in the requireed artifacts to a CM repository and this repository exists on another machine( build machine) where we don't have the MB runtime or the tool kit installed, We are supposed to come out with an Ant build script to create a bar file and also deploy that bar file into the runtime.
We are trying to figure it out if this is even possible. The first step we tried to do is to run mqsicreatebar by just copying the exe and then copying the whole eclipse folder into a machine where there is no tool kit or runtime installed.
Any light on this is very helpful for us. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Jul 30, 2008 4:54 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Even if you got this to work, I can't imagine that it would be supported. If something were to change down the road, you'd probably be on your own. |
|
Back to top |
|
 |
chrisc |
Posted: Wed Jul 30, 2008 4:32 pm Post subject: |
|
|
Voyager
Joined: 19 Mar 2006 Posts: 77
|
On a previous project we used Ant scripts to build broker archives checking it out from source, but we had the Message Broker toolkit installed, so I don't know what the result would be without it.
From memory, however, mqsicreatebar actually uses the project workspace from the toolkit to build it all up, including project dependencies, metadata, etc. If you manage to pinpoint all of the different bits and pieces that are required then you might have success, but it certainly sounds like a long shot.
We also had problems in terms of the BAR files now always being properly updated, due to some weird caching thing in the toolkit, i.e. sometimes it wouldn't pick up new code. We were using v5 of the toolkit though, and I believe v6 of mqsicreatebar has a -clean option or something that forces the project metadata to be cleared out first.
Good luck, and please let us know if you have success. It would definitely be a very useful thing to do, and something I think is a big gap in the tooling for the broker. (Think CruiseControl for broker flows...!) |
|
Back to top |
|
 |
AkankshA |
Posted: Wed Jul 30, 2008 7:57 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
kristymq wrote: |
What we are trying to achieve(rather expected to achieve) is, We have to check in the requireed artifacts to a CM repository and this repository exists on another machine( build machine) where we don't have the MB runtime or the tool kit installed, We are supposed to come out with an Ant build script to create a bar file and also deploy that bar file into the runtime.
We are trying to figure it out if this is even possible. The first step we tried to do is to run mqsicreatebar by just copying the exe and then copying the whole eclipse folder into a machine where there is no tool kit or runtime installed.
Any light on this is very helpful for us. |
well..
why dont u create the bar file on the machine where toolkit is installed and then put it in CM repository.... _________________ Cheers |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Wed Jul 30, 2008 10:10 pm Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
If you really like to find out the smallest env. that you need to able to run mqsicreatebar command you perhaps need to play with startup.jar (decompile it, search what it does and try what comes with args from mqsicreatebar.exe ...) and see what kind of environment it builds and what classes / jars / methods it uses to create a bar file.
But as it has been said it is perhaps safer and faster to install whole Toolkit to the machine where you like to use Toolkit commands.
Marko |
|
Back to top |
|
 |
aspre1b |
Posted: Thu Jul 31, 2008 1:17 am Post subject: |
|
|
 Voyager
Joined: 05 Jul 2007 Posts: 78 Location: Coventry, UK
|
Quote: |
We also had problems in terms of the BAR files now always being properly updated, due to some weird caching thing in the toolkit, i.e. sometimes it wouldn't pick up new code. We were using v5 of the toolkit though, and I believe v6 of mqsicreatebar has a -clean option or something that forces the project metadata to be cleared out first. |
I also found this problem using Broker v5, but I got around it by having the ant script checkout the project and any dependencies to a separate workspace. Before doing that, I would delete the contents of that workspace, removing any previous meta data.
This solved my initial problem, but some of our projects now took two hours to build (due to the complex MRM's) when the meta data is removed. However if the associations are present in the meta data, it takes around 2 minutes to build. Solution to this problem was to build over night and to make sure a build was done prior to a deployment, not at the same time. |
|
Back to top |
|
 |
|