Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 85744200D4F for ; Wed, 6 Dec 2017 17:45:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 83F1F160C0A; Wed, 6 Dec 2017 16:45:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CA6C6160BF3 for ; Wed, 6 Dec 2017 17:45:08 +0100 (CET) Received: (qmail 15310 invoked by uid 500); 6 Dec 2017 16:45:07 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 15293 invoked by uid 99); 6 Dec 2017 16:45:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2017 16:45:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C1CE618074A for ; Wed, 6 Dec 2017 16:45:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.493 X-Spam-Level: X-Spam-Status: No, score=0.493 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 7WOaumwrw_tX for ; Wed, 6 Dec 2017 16:45:05 +0000 (UTC) Received: from pv33p33im-asmtp001.me.com (pv33p33im-asmtp001.me.com [17.142.241.8]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 530F95F263 for ; Wed, 6 Dec 2017 16:45:05 +0000 (UTC) Received: from process-dkim-sign-daemon.pv33p33im-asmtp001.me.com by pv33p33im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P0J00A00T4PNQ00@pv33p33im-asmtp001.me.com> for users@activemq.apache.org; Wed, 06 Dec 2017 16:44:57 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1512578697; bh=EEz9UuttRQ0BnnBm37UcECLVIP/w13oSSNjgyKTWsDA=; h=From:Content-type:MIME-version:Date:Subject:Message-id:To; b=j1tmPNL+ZzRs/MnBDHz9pMjGKIVpP2Uav/RijFP2DR9yiICwth+RZ+gLRRKL425vR f/ncpENWH1tt/vDQuPvCmsRzzOCI/lEyYMjsS7Rdk4o9hmcCbIaVQvaR5876bHVtTP mGaRouW/amOxmzgmoAagLiQj1v/Y94qsMBJP2cf8e9UZgyPAYkblHNJLuiYvAXHis8 IlProHVkeKbNaADqO/VmFEY2zhdMpF/vmKAMOh3wYJw6P0jo7vIVHTMdvviNorrr0R /libgtsq9Q4CUh4O6y8rSOD8cbmv/PimmxK0ggXLh6ne+Zy2LsC9vRK62LwVhTuSDs X8FisHQmag0uQ== Received: from icloud.com ([127.0.0.1]) by pv33p33im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0P0J00HI6T6UCN10@pv33p33im-asmtp001.me.com> for users@activemq.apache.org; Wed, 06 Dec 2017 16:44:57 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-12-06_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1712060238 From: =?utf-8?Q?Michael_Andr=C3=A9_Pearce?= Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable MIME-version: 1.0 (1.0) Date: Wed, 06 Dec 2017 16:44:53 +0000 Subject: Re: Artemis JMS Client All JAR Message-id: References: <1512571188897-0.post@n4.nabble.com> In-reply-to: <1512571188897-0.post@n4.nabble.com> To: users@activemq.apache.org X-Mailer: iPhone Mail (15C114) archived-at: Wed, 06 Dec 2017 16:45:09 -0000 Hi Benjamin=20 I can understand a little as classloader if the class would be different in t= wo different jars.=20 but if these are spec jars with the same class=E2=80=99s then it shouldn=E2=80= =99t cause an issue as it shouldn=E2=80=99t matter which class gets loaded f= rom which jar, because they should be the same. If anything having all the implantation jars in the single jar may cause mor= e issues if you have other vendors as Libs like guava etc are bundled in.=20= We did do some shading to try avoid some of that, but the original intent of= the single jar was to package everything needed, for simple deployment case= s where we don=E2=80=99t expect competing jars, not for complex dependencies= clashing handling. from the sounds of it with having multiple other vendors libs also, if you h= ave that really should be handling the dependencies manually without the all= jar , manually, via maven or other tooling. I=E2=80=99m not saying it=E2=80=99s not causing you an issue but it be good i= f you could expand with an exception this is causing. And the jars you have o= n the cp.=20 I=E2=80=99m not 100% pulling libs out is the answer here as it sounds as you= have more a complex dependency deployment which as stated wasn=E2=80=99t th= e original intent of the single jar client.=20 Cheers Mike Sent from my iPhone > On 6 Dec 2017, at 14:39, beegee wrote: >=20 > Hi, >=20 > the Artemis client all JAR contains all dependencies in a shadowed package= , > except of two dependencies: > - JMS Spec 2.0 > - javax.json Spec (?) >=20 > I would suggest to not include the Spec JARS in the client JAR as it could= > cause trouble if those JARS are already included in the classpath. Also, i= f > an application supports several different JMS providers and has included > client all JARS of those providers, then it's better to have the JMS spec > JAR included just once. >=20 > In our software product we cannot use Maven or some sort of library > dependency management tool as of now, so we need to add those JARS manuall= y > to the classpath. The client all JAR helps a lot, but as we need to suppor= t > different JMS providers it would be better to have the JMS spec separatly.= =20 >=20 > What do you think? >=20 > Kind regards, > Benjamin Gentner >=20 >=20 >=20 > -- > Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.ht= ml