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 » Unneeded project in bar

Post new topic  Reply to topic
 Unneeded project in bar « View previous topic :: View next topic » 
Author Message
raphg
PostPosted: Thu Apr 04, 2013 7:06 am    Post subject: Unneeded project in bar Reply with quote

Newbie

Joined: 04 Apr 2013
Posts: 7

Hello,

I can't solve a strange problem when building my bar.
I have several opened projects like this in my workspace:
- prj-a
- prj-b
- prj-c
- ...

When I build, say, prj-b, I choose various resources but nothing from prj-a (I don't need anything from this project in this bar). After the build, I have prj-a.jar included in my bar
So I try it another way, and closed my prj-a project in my workspace. Building again the prj-b project, no errors, and the prj-a.jar does not appear anymore in my bar !
I've checked everywhere: no reference to prj-a.

My question is simple: is it possible to get some dependency graph to analyze it and discover why my prj-a project get included in a bar when it shouldn't ?

Thanks in advance for any advice
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Apr 04, 2013 7:08 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What version of WMB toolkit are you using?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
raphg
PostPosted: Thu Apr 04, 2013 7:13 am    Post subject: Reply with quote

Newbie

Joined: 04 Apr 2013
Posts: 7

lancelotlinc wrote:
What version of WMB toolkit are you using?

I'm using:
WebSphere Message Broker Toolkit - Message Broker
Version: 7.0.0.1
Build id: 7.0.0.1-IFix-20110906_1111
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Apr 04, 2013 7:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Right-click the project that contains your message flows (prj-b-?), select Properties -> Project References, uncheck prj-a.

You should be using the command line or Ant to build your bars. You should avoid (IMHO) building bars manually.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
raphg
PostPosted: Thu Apr 04, 2013 7:51 am    Post subject: Reply with quote

Newbie

Joined: 04 Apr 2013
Posts: 7

Unfortunatly, I've already check that: my prj-b is not referenced.
As I've no other idea, I made a full scan of all files in my prj-b, and found no "prj-b" string anywhere.

This problem looks like building process are "looking" on my workspace and add prj-a in my bar as long as it is opened. If I close it, no prj-a is added to my bar (and of course, my bar is still fully functional)
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Apr 04, 2013 7:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Again, you should not use the bar editor in toolkit to build bars. Use the mqsicreatebar (mqsipackagebar for version eight) on the command line or Ant driving those commands. This gives you complete control over what goes into your bar.

Doesn't do any good to build a bar with the bar editor when you humanly do not have the ability to exactly build it the same way every time, especially if your on vacation and your co-worker is trying to build it. That's why you should use Ant.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Apr 04, 2013 7:58 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

raphg wrote:
Unfortunatly, I've already check that: my prj-b is not referenced.
As I've no other idea, I made a full scan of all files in my prj-b, and found no "prj-b" string anywhere.

This problem looks like building process are "looking" on my workspace and add prj-a in my bar as long as it is opened. If I close it, no prj-a is added to my bar (and of course, my bar is still fully functional)


You said "jar" file.

If a msgflow project references a java project, and that java project references another java project...

Java projects also have different types of references they can make - regular or external.

The nice thing about the v8 bar file editor is that it will give you the equivalent mqsipackagebar command to build the same bar.

This makes the bar file editor an excellent tool to test and figure out what mqsipackagebar options you need to specify to get what you want.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Thu Apr 04, 2013 9:31 am    Post subject: Re: Unneeded project in bar Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

raphg wrote:
When I build, say, prj-b, I choose various resources but nothing from prj-a (I don't need anything from this project in this bar). After the build, I have prj-a.jar included in my bar

If prj-b defines external Java procedures, but does not itself reference any java projects, either directly or indirectly, then the barfile editor may select an arbitrary open java project from the workspace, and add it to the barfile (whether it needs to or not).

WMB 6.0 behaved this way; it's likely that WMB 7.0 does as well.
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 » Unneeded project in bar
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.