ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » 100 BAR FILEs RECOMPILatn

Post new topic  Reply to topic
 100 BAR FILEs RECOMPILatn « View previous topic :: View next topic » 
Author Message
my_mqmb
PostPosted: Sat Jun 11, 2011 3:42 am    Post subject: 100 BAR FILEs RECOMPILatn Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Sat Jun 11, 2011 4:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sat Jun 11, 2011 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
my_mqmb
PostPosted: Sat Jun 11, 2011 11:08 pm    Post subject: Re: 100 BAR FILEs RECOMPILatn Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sun Jun 12, 2011 6:20 am    Post subject: Re: 100 BAR FILEs RECOMPILatn Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Sun Jun 12, 2011 10:08 am    Post subject: Re: 100 BAR FILEs RECOMPILatn Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Sun Jun 12, 2011 11:21 am    Post subject: Re: 100 BAR FILEs RECOMPILatn Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » 100 BAR FILEs RECOMPILatn
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.