Author |
Message
|
my_mqmb |
Posted: Sat Jun 11, 2011 3:42 am Post subject: 100 BAR FILEs RECOMPILatn |
|
|
Voyager
Joined: 08 Jun 2011 Posts: 84
|
Say i have a 100 bar files or services in my workspace which have a reference to a common framework or service ..
I do some change in the common framework ..
now i gotta redeploy all the 100 bar files after recompiling all the bar files .
I have a script for auto deployment , But how on earth can i recompile all the bar files in my workspace at 1 go ?
Pointers ??  |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Jun 11, 2011 4:07 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You clean build the entire workspace. You might have to turn off "build automatically" to make "clean" active. |
|
Back to top |
|
 |
Vitor |
Posted: Sat Jun 11, 2011 6:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
You clean build the entire workspace. |
Potentially get yourself a coffee while you wait. But it's a single click.
If your question is "How do I rebuild 100 barfiles" expand your auto-deployment script (which I'm guessing from your previous posts has the mqsideploy commands in it) to include the mqsicreatebar commands as well. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
my_mqmb |
Posted: Sat Jun 11, 2011 11:08 pm Post subject: Re: 100 BAR FILEs RECOMPILatn |
|
|
Voyager
Joined: 08 Jun 2011 Posts: 84
|
when you said this , i was not sure .. but i tried.
A build all or a Clean ALL after removing 'build automatically' never actually builds the bar files ..
I can see the modification time in the bar files not changed at all . i guess they have to be opened individually and rebuilt 1 by 1 ... |
|
Back to top |
|
 |
Vitor |
Posted: Sun Jun 12, 2011 6:20 am Post subject: Re: 100 BAR FILEs RECOMPILatn |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
my_mqmb wrote: |
I can see the modification time in the bar files not changed at all . i guess they have to be opened individually and rebuilt 1 by 1 ... |
Or you could use my suggestion and script the bar file rebuild.
It doesn't have to part of the same script that deploys them. It just often is.
But feel free to ignore my suggestion and do them individually by hand if you feel that's best. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Jun 12, 2011 10:08 am Post subject: Re: 100 BAR FILEs RECOMPILatn |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
my_mqmb wrote: |
A build all or a Clean ALL after removing 'build automatically' never actually builds the bar files .. |
That's correct. But you can't rebuild the bar files until you've recompiled the files that go into the bar files - and you have to rebuild your entire workspace to cause that to happen.
As my esteemed colleague has said, use mqsicreatebar. That will actually also do the needed clean build if you ask it to.
But be prepared to potentially have mqsicreatebar run 100 times, for each bar file. And be prepared for that to take the full amount of time needed to a) start the toolkit, b) compile all of the resources in the workspace, c) build the bar file. Each time you run mqsicreatebar it will do all of those tasks. |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Jun 12, 2011 11:21 am Post subject: Re: 100 BAR FILEs RECOMPILatn |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
But be prepared to potentially have mqsicreatebar run 100 times, for each bar file. And be prepared for that to take the full amount of time needed to a) start the toolkit, b) compile all of the resources in the workspace, c) build the bar file. Each time you run mqsicreatebar it will do all of those tasks. |
And be prepared for the time for each mqsicreatebar to grow unless you sort out the whole contact admin issues of workspaces and JVM's.
We've gven up on trying to do this on a regular basis. The Devs produce the bar files for all the UAT, P-Prod & Prod environments. These are all held in source control along with the source files and the barfile overrides (ugh!).
We are also working on a clean code plan to eliminate the need for any barfile overrides and also any difference in the bar files that are deployed to the different environments. These are not easy and will take time and determination.
This will simplify the whole thing and remove a number of errors in deployments. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|