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 493A2200B51 for ; Mon, 1 Aug 2016 16:46:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 48039160AA7; Mon, 1 Aug 2016 14:46:05 +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 702AC160A66 for ; Mon, 1 Aug 2016 16:46:04 +0200 (CEST) Received: (qmail 91427 invoked by uid 500); 1 Aug 2016 14:46:03 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 91402 invoked by uid 99); 1 Aug 2016 14:46:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2016 14:46:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C25821A5F75 for ; Mon, 1 Aug 2016 14:46:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kbvtEFPalRW9 for ; Mon, 1 Aug 2016 14:45:58 +0000 (UTC) Received: from mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0DB755FD6B for ; Mon, 1 Aug 2016 14:45:58 +0000 (UTC) Received: by mail-ua0-f178.google.com with SMTP id l32so107767695ual.2 for ; Mon, 01 Aug 2016 07:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=IoSKX1NqjhhINl987aFSugvTH3Z3Dl8zhdR5DzbSENk=; b=BVD3IXcmUAC2gzFXvv0GcckEZk1/cqEY7B5Fwcmy4g0Fdfhlga78H9iHLI18ncWF3C bbXM9jwntXJnFax5ZqRhVjNG7RXI3Ztud13m5sUo1rmliga2lM5iRXtEq39MzBK4k8h1 diejpu6em0WaWZ/Qw4V7Kv7BZE4dF88nt3/uzMFLRarG0Gz190qGGVA0PEIdH3Qbtmt+ WH2vy0s3TEAFKUNmxxzvVP3+DXj+UmRMRZ2JwvwuopJPo6yxb3ALtNO5MWa+teptLIbS yyoCRh8eA/RGsvwA/k5TIKHTFTFCjHBdzozrGuG02CERUPGDF1UZJAJwiRrs9OAGpBHY zMhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=IoSKX1NqjhhINl987aFSugvTH3Z3Dl8zhdR5DzbSENk=; b=W2fPuySKSrfC487GlGmrPlgUVSPh72ErL/PHlgmJ2WjBqRivj0mtMV+BO/mSW2225x O0jp/jb+I5rvD5Dv5kUa27HLRP7KdT9fCWAxOm5BWzqUPmYYToaiORySUty8FnmIftHh qbiSD5zUOmHnyYZBOL15TyikDTAxgVRzeC2OQJJ3geh5As9ncnW78uC9EQ0hAZiAkfqJ ja6LZGSjdvn2AqLpI4wdzVw7TtDWvfle/MIv1VEghS2vOrnPqgldMGbjTwrL0GrCRHmB QQ8Csfcyl8b5UAsoQ9OvXFS3Emrt/ytBCNPF+q7EMvbBajErSAoOfrtovVIeazB/vo4f hROw== X-Gm-Message-State: AEkoousaS4KY29uMvdLcy2gPwxTjqbVX85IPstvX/y5QmvimGGuK+S04WXyeOVYWuJUd0vtFnZBHJxRhUkrnMw== X-Received: by 10.176.6.9 with SMTP id f9mr23309430uaf.89.1470062757181; Mon, 01 Aug 2016 07:45:57 -0700 (PDT) MIME-Version: 1.0 Sender: chubrilo@gmail.com Received: by 10.31.159.211 with HTTP; Mon, 1 Aug 2016 07:45:56 -0700 (PDT) In-Reply-To: References: From: Dejan Bosanac Date: Mon, 1 Aug 2016 16:45:56 +0200 X-Google-Sender-Auth: MOTT7sl8QRRAxmF2KjTX5oSO5E4 Message-ID: Subject: Re: [DISCUSS] CDI Backed Client Library for Artemis To: "dev@activemq.apache.org" Content-Type: multipart/alternative; boundary=94eb2c123562708184053903a86b archived-at: Mon, 01 Aug 2016 14:46:05 -0000 --94eb2c123562708184053903a86b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi guys, I=E2=80=99m heading out for vacation in an hour, so I won=E2=80=99t be able= to take a look at it immediately. I=E2=80=99ll dig into it as soon as I=E2=80=99m back. Bu= t, yeah this is a completely new integration, so it won=E2=80=99t affect any of the existin= g stuff. Regards -- Dejan Bosanac http://sensatic.net/about On Mon, Aug 1, 2016 at 4:24 PM, John D. Ament wrote= : > That test looks like its focused on Karaf (OSGi) integration. Definitely > something that should be there. There's one guy I know who does OSGi and > CDI really well, but the market just isn't there. Both leverage JSR-330 > (AtInject) but ultimately are two different service models. > > This being its own JAR shouldn't impact any of that. > > John > > On Mon, Aug 1, 2016 at 10:16 AM Clebert Suconic > > wrote: > > > Looks really nice.. Very well done. > > > > There is a test Dejan wrote for CDI called > > org.apache.activemq.artemis.tests.integration.kara.ArtemisFeatureTest > > > > Can you verify the test still works? > > > > > > And how this would affect that Karaf integration? > > > > > > @Dejan can you take a look given you did a lot of work with this before= ? > > > > On Sun, Jul 31, 2016 at 11:11 PM, John D. Ament > > wrote: > > > Sorry, meant to link here - > > > https://github.com/johnament/activemq-artemis/tree/cdi-client > > > > > > John > > > > > > On Sun, Jul 31, 2016 at 11:09 PM John D. Ament > > > wrote: > > > > > >> All, > > >> > > >> I wanted to run this POC by you guys to see your thoughts. Obviousl= y > I > > >> have a mixed background at this point, so it kind of makes sense to > > bring > > >> two of my interests together. I started hacking together a CDI back= ed > > >> client against Artemis Core/JMS. Looking at Artemis and its > > integrations > > >> with Vert.x, Aerogear and Spring, it makes sense to support another > > >> runtime. In addition, the JMS 2 spec mandates support for some > > injection > > >> points via CDI. I wanted to take it a step further. > > >> > > >> - If running locally, bootstrap an embedded server. > > >> - Connect to a locally running server, or a configured remote cluste= r. > > >> - Provide some injection points to work with said server (e.g. > > >> ConnectionFactory, JMSContext) > > >> > > >> I wouldn't call it complete, but I've created a simple POC that does > > these > > >> things, which you can find at > > >> > > > https://github.com/johnament/activemq-artemis/commit/8430136d9ea648a1f089= 747da434d945de1d7fa2 > > >> I still want to add some XA support, but even this adds a huge step > > >> forward to be able to connect a simple local process to a remote > server, > > >> without needing full containers to do injection points. > > >> > > >> So what do you guys think? Worth adding to Artemis? > > >> > > >> John > > >> > > > > > > > > -- > > Clebert Suconic > > > --94eb2c123562708184053903a86b--