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 » BAR includes JARs

Post new topic  Reply to topic
 BAR includes JARs « View previous topic :: View next topic » 
Author Message
goffinf
PostPosted: Wed Feb 18, 2009 8:13 am    Post subject: BAR includes JARs Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

version 6.1.

When I create a BAR a number or JARs get added. I assume this is because the compiler analyses dependancies and includes JARs as needed ??

Much of the time I don't actually want that behaviour, that is, the JARs that are included we don't want to deploy to the Broker, instead they are installed in one of the other locations that Broker class loaders look in (shared-classes or LILPATH or CLASSPATH for example).

Of course I can manually remove them from the BAR, buts that a bit of a nuisance. Plus we use auotmated build scripts to create BARs which are deployed to our production servers and, whilst it might be possible to amend these to exclude the unwanted JARs, I wondered whether there was a way of stopping them being included in the first place ??

How does the compiler actually determine what JARs the include in the BAR ?

Thanks

Fraser.
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Thu Feb 19, 2009 12:33 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Are you using JCN? If so your code in JCN will be packajed in JAR...
And also if you are code in JCN is accessing some functions in external jar which will also get added
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
gs
PostPosted: Thu Feb 19, 2009 2:29 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

You can reference a JAR file in your java build path via a variable (e.g. M2_REPO). That way it won't be included while building the BAR file.

However, I'd like to see that this could be controlled on the "Order and Export" tab.
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 » BAR includes JARs
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.