From user-return-22441-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Mon Jun 15 14:34:51 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 20F70180669 for ; Mon, 15 Jun 2020 16:34:51 +0200 (CEST) Received: (qmail 42482 invoked by uid 500); 15 Jun 2020 14:34:50 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 42437 invoked by uid 99); 15 Jun 2020 14:34:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2020 14:34:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 813B0C1579 for ; Mon, 15 Jun 2020 14:34:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.512 X-Spam-Level: X-Spam-Status: No, score=0.512 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=0.2, KAM_DMARC_STATUS=0.01, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=disabled Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vjtZTnedtjCT for ; Mon, 15 Jun 2020 14:34:47 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=217.70.183.199; helo=relay9-d.mail.gandi.net; envelope-from=jb@nanthrax.net; receiver= Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id D84227E158 for ; Mon, 15 Jun 2020 14:34:46 +0000 (UTC) X-Originating-IP: 78.218.26.15 Received: from [192.168.0.108] (hvc29-1-78-218-26-15.fbx.proxad.net [78.218.26.15]) (Authenticated sender: jb@nanthrax.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id E4368FF819 for ; Mon, 15 Jun 2020 14:34:45 +0000 (UTC) From: Jean-Baptiste Onofre Content-Type: multipart/alternative; boundary="Apple-Mail=_539D01F0-3AA8-411A-8739-FDB6A114E6E2" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Programatically (Camel) Blueprint Date: Mon, 15 Jun 2020 16:34:44 +0200 References: <602C304C-93B2-468D-8FA6-73AE7C852907@nanthrax.net> To: user@karaf.apache.org In-Reply-To: Message-Id: <418251C9-2749-4C11-8780-2BD86457CCA7@nanthrax.net> X-Mailer: Apple Mail (2.3608.80.23.2.2) --Apple-Mail=_539D01F0-3AA8-411A-8739-FDB6A114E6E2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I don=E2=80=99t talk about a full Camel DSL, but more from creating the = RouteBuilder from your canonical format. I did that for some customers. For instance, their routes were describe with a file like = deploy/my.route containing: route.source=3Dkey route.phaseIn=3D=E2=80=A6 route.phaseOut=3D=E2=80=A6 route.target=3D=E2=80=A6 The use case was kind of API Gateway. I created a artifact installer and = I created the RouteBuilder "on the fly" based on this description. Regards JB > Le 15 juin 2020 =C3=A0 16:24, Matthias Leinweber = a =C3=A9crit : >=20 > Hi, >=20 > i'm still (again) on this topic. Maybe you misunderstood that i plan = to configure camelcontext during runtime from a central configuration = and or user interface. > With your own RouteBuilder you mean creating my own dsl and somehow = extending org.apache.camel.builder.RouteBuilder? > Is this not a bit too much effort and for what reason the camel = dsl/blueprints exists? > I think I will basically do the same like Artifact transformer does = and create and install a bundle. So it's a bit easier to track the = bundle state instead of writing a file to the deploy folder. >=20 >=20 > best regards, > Matthias >=20 > Am Do., 4. Juni 2020 um 15:49 Uhr schrieb Jean-Baptiste Onofre = >: > You can do kind of your own RouteBuilder. >=20 >> Le 4 juin 2020 =C3=A0 15:15, Matthias Leinweber = > a = =C3=A9crit : >>=20 >> Somehow dirty, but easy. Maybe the best solution. :) >>=20 >> Am Do., 4. Juni 2020 um 14:56 Uhr schrieb Jean-Baptiste Onofre = >: >> Why not having a service creating blueprint file in deploy folder ? >>=20 >> That=E2=80=99s probably the easiest in your case. >>=20 >> Regards >> JB >>=20 >>> Le 4 juin 2020 =C3=A0 14:54, Matthias Leinweber = > a = =C3=A9crit : >>>=20 >>> Thank you for your quick reply JB, >>>=20 >>> Yeah my plan was a bit more generic. Which service or class would be = a good starting point for "bootstrapping". BlueprintContainerImpl is not = so easy to understand (at least for me). >>>=20 >>> best regards >>>=20 >>> Am Do., 4. Juni 2020 um 14:14 Uhr schrieb Jean-Baptiste Onofre = >: >>> Hi Matthias, >>>=20 >>> If the "source" is a file, then, you can create an FileInstall = ArtifactInstaller service. >>> If you want something more generic, it=E2=80=99s easy to create a = service taking the string and bootstrapping the blueprint. >>>=20 >>> Regards >>> JB >>>=20 >>> > Le 4 juin 2020 =C3=A0 14:06, Matthias Leinweber = > a = =C3=A9crit : >>> >=20 >>> > Hello People, >>> >=20 >>> > actually I try to programmatically deploy a (Camel) Blueprint. = E.g. Create something with a String. After reading source of aries, = camel and felix.fileinstall my only idea is to dynamically create = bundles the way felix file install is handling this problem. >>> > Is there anything easier/less complicated? >>> >=20 >>> > best regards, >>> > Matthias >>>=20 >>>=20 >>=20 >>=20 >=20 >=20 >=20 >=20 --Apple-Mail=_539D01F0-3AA8-411A-8739-FDB6A114E6E2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

I = don=E2=80=99t talk about a full Camel DSL, but more from creating the = RouteBuilder from your canonical format.

I did that for some = customers.

For = instance, their routes were describe with a file like deploy/my.route = containing:

route.source=3Dkey
route.phaseIn=3D=E2=80=A6
route.phaseOut=3D=E2=80=A6
route.target=3D=E2=80=A6

The use case was kind of API Gateway. I = created a artifact installer and I created the RouteBuilder "on the fly" = based on this description.

Regards
JB

Le 15 juin 2020 =C3=A0 16:24, Matthias = Leinweber <m.leinweber@datatactics.de> a =C3=A9crit :

Hi,

i'm still = (again) on this topic. Maybe you misunderstood that i plan to configure = camelcontext during runtime from a central configuration and or user = interface.
With your own RouteBuilder you mean = creating my own dsl and somehow extending = org.apache.camel.builder.RouteBuilder?
Is this not = a bit too much effort and for what reason the camel dsl/blueprints = exists?
I think I will basically do the same like = Artifact transformer does and create and install a bundle. So it's = a bit easier to track the bundle state instead of writing a file to = the deploy folder.


best regards,
Matthias

Am Do., 4. Juni 2020 um 15:49 Uhr schrieb = Jean-Baptiste Onofre <jb@nanthrax.net>:
You can do kind of your own RouteBuilder.

Le 4 juin 2020 =C3=A0 15:15, Matthias = Leinweber <m.leinweber@datatactics.de> a =C3=A9cr= it :

Somehow dirty, but easy. Maybe the best solution. :)

Am Do., 4. Juni 2020 um 14:56 Uhr schrieb = Jean-Baptiste Onofre <jb@nanthrax.net>:
Why not having a = service creating blueprint file in deploy folder ?

That=E2=80=99s probably the easiest in = your case.

Regards
JB

Le 4 juin 2020 =C3=A0 14:54, Matthias Leinweber <m.leinweber@datatactics.de> a =C3=A9crit :

Thank you for your quick reply JB,

Yeah my plan was a bit more = generic. Which service or class would be a good starting point for = "bootstrapping". BlueprintContainerImpl is not so easy to understand (at = least for me).

best regards

Am Do., 4. = Juni 2020 um 14:14 Uhr schrieb Jean-Baptiste Onofre <jb@nanthrax.net>:
Hi Matthias,

If the "source" is a file, then, you can create an FileInstall = ArtifactInstaller service.
If you want something more generic, it=E2=80=99s easy to create a = service taking the string and bootstrapping the blueprint.

Regards
JB

> Le 4 juin 2020 =C3=A0 14:06, Matthias Leinweber <m.leinweber@datatactics.de> a =C3=A9crit :
>
> Hello People,
>
> actually I try to programmatically deploy a (Camel) Blueprint. E.g. = Create something with a String. After reading source of aries, camel and = felix.fileinstall my only idea is to dynamically create bundles the way = felix file install is handling this problem.
> Is there anything easier/less complicated?
>
> best regards,
> Matthias









= --Apple-Mail=_539D01F0-3AA8-411A-8739-FDB6A114E6E2--