Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82E04DBD5 for ; Mon, 10 Sep 2012 15:59:51 +0000 (UTC) Received: (qmail 41558 invoked by uid 500); 10 Sep 2012 15:59:51 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 41525 invoked by uid 500); 10 Sep 2012 15:59:51 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 41517 invoked by uid 99); 10 Sep 2012 15:59:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2012 15:59:51 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FSL_FREEMAIL_1,FSL_FREEMAIL_2,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [77.238.189.64] (HELO nm11.bullet.mail.ird.yahoo.com) (77.238.189.64) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Sep 2012 15:59:45 +0000 Received: from [212.82.105.245] by nm11.bullet.mail.ird.yahoo.com with NNFMP; 10 Sep 2012 15:59:23 -0000 Received: from [212.82.108.242] by tm17.bullet.mail.ird.yahoo.com with NNFMP; 10 Sep 2012 15:59:22 -0000 Received: from [127.0.0.1] by omp1007.mail.ird.yahoo.com with NNFMP; 10 Sep 2012 15:59:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 893504.55671.bm@omp1007.mail.ird.yahoo.com Received: (qmail 47791 invoked by uid 60001); 10 Sep 2012 15:59:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1347292761; bh=93li1E5CrM46dPBecIl2vqkVjxqDj81u1jE0cpoGw7Q=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=A/I3cD2xkYedTeJF+pvvt7oPSSoGv2KdxQ8ouwSDKmn/wrBRx+F/pA14nJbwq7TRmpgGxxqWLjVB5Xrhtov98GvDQWfsHkJVc+junsE/zSTIpan1mRV3Vvw/p4xehhe0apc1IKWB6A12nmI7gAPaBImrHzplgwZIPtyDNSNgxHE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Hka5F0oXmJtAKCWzDjL2ursORi47FugIsF6SBaZZ8VTCCTxC3K/J1hNBZwjW21g1T2R3vnyllrbR0zjwgVTMpXWJHlAGmb7intx6HqPUFh324tWjIFS1APFzkYn+nULSHfEL/llOH9asXgA/U+XhUaDCKLwlEOgu9jbFqwrWQME=; X-YMail-OSG: qM6M1JwVM1np4hDRTmXAYIZBUPFKiasAiD1vR2QOjsgEv5z YYTjLF6cfaV4g5njfaqaj_pkKNqpTTQATjPFs71ct.t8pTU4kyO5y6dQI7Be g3GkfwfswuhkWjbtH8zbyKHN_by0potfPhhTi7iEBk1ao2b2BvfbC4uUiMNN LSrNvSLlwmYysy6NuTjPpn.am3vTg.ubVun48yWEzXh.YVhUR8l3GAwvv1VG aHehd91cVBSIkzIe9G9fCF0WXjrrCdas2hli5ELCy18xo4IMwGo6B4kASz75 6lDecTezRFoiw8v4_M3V_Ygn3tkeUuO7gVHe8sUywRhv2hwtfj.U7lJkZXZi q_znhW4YYVKR1WT9eAol5npFYp_sknIgyYmoHgL127uopqqEYLSiZ.8z0ZzQ 9bPSxyDqdqA8i0c4gKyfX2yotMXRk1zi.yD4xlCqg_nPfpEJJBB5wHOJJUGf KGdHNUlcciLunVt7mn1o2J99DuokbGR4seUYis4QfksfeYOqCNOLMIBUrW_d P0LByo_w5QERH49wrQmf9NiyTyWMm6OAy51ioP4Nuc8gU9Hu6R2mwcDKZI.W 3V0qjsZ4FA3Y89g7Zo59ADuLOzaSArs4FsClITryF1qNEZoKwYuGibHq60qX cg76R4SFO6plM5TKWTayTPrfGfFIgh5zulebjoQxX63xQ1ISb5V1hSAi_uCg FL2r7YvA7mMVrL.Y0pigBrNhENMB1oE8xfvDNDJtlrITa_s4Ft_.mHrac.aq 8kEE9iD9KgOurGwjwylUpKkfQmSQ8_x5i1V.4Cyd7IuGIZp58iViEp_hayt_ kzVNvRlK1Ia8Ar5W96xWnAtoKYSdQi7DdWI57i__9QoqMVDZ22gv_C01LADf SewX5eyhOuO7Qb7rltPDgcw177MIDAm.IJIyFqGfEQbQxh.p34dM- Received: from [128.131.32.170] by web28903.mail.ir2.yahoo.com via HTTP; Mon, 10 Sep 2012 16:59:21 BST X-Mailer: YahooMailWebService/0.8.121.416 References: <504DE918.5040408@gmail.com> <1347286525.2322.YahooMailNeo@web28905.mail.ir2.yahoo.com> <504DF744.9050803@gmail.com> Message-ID: <1347292761.47240.YahooMailNeo@web28903.mail.ir2.yahoo.com> Date: Mon, 10 Sep 2012 16:59:21 +0100 (BST) From: Mark Struberg Reply-To: Mark Struberg Subject: Re: XML Config To: "deltaspike-dev@incubator.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org One of the credos is that you MUST NOT repackage for just moving to a new s= erver.=0AEither this is in JNDI (same location) or just use @Inject Project= Stage ps; to check on which server you are running. =0A=0AI see no benefit = of moving config to XML if it's not picked up from a really changable locat= ion.=0ATo me this just means to replace hardcoding in java sources with har= dcoding in some XML which gots scanned by java sources.=0A=0ALieGrue=0Astru= b=0A=0A=0A=0A=0A----- Original Message -----=0A> From: Bernard =C5=81abno <= s4237@pjwstk.edu.pl>=0A> To: deltaspike-dev@incubator.apache.org=0A> Cc: = =0A> Sent: Monday, September 10, 2012 5:41 PM=0A> Subject: Re: XML Config= =0A> =0A> Ok, what If I have library with CDI beans that send emails and ne= ed to have=0A> JNDI of mail session configured?=0A> When I attach this libr= ary to project A that is deployed on JBoss AS7 it=0A> may have different jn= di then in some other project or server.=0A> =0A> =0A> 2012/9/10 Marius Bog= oevici =0A> =0A>> Spring supports it, but in p= ractice you'd want to stay away from it. I=0A>> thought more along the lin= es of a script that is interpreted at startup.=0A>> =0A>> =0A>> On 2012-09= -10 10:15 AM, Mark Struberg wrote:=0A>> =0A>>> hmm 'scriptable' imo implie= s that it can be changed at runtime. =0A> But=0A>>> that's by design not p= ossible with CDI. Spring supports this, we do =0A> not.=0A>>> Otoh this al= lows us to be much faster in all 'static' use =0A> cases.=0A>>> =0A>>> Lie= Grue,=0A>>> strub=0A>>> =0A>>> =0A>>> =0A>>> =0A>>> ----- Original Messag= e -----=0A>>> =0A>>>> From: Marius Bogoevici = =0A>>>> To: =0A> deltaspike-dev@incubator.**apache.org=0A>>>> Cc: Romain Manni-Bucau =0A= >>>> Sent: Monday, September 10, 2012 3:20 PM=0A>>>> Subject: Re: XML Con= fig=0A>>>> =0A>>>> G enerally speaking, I think it would be good to have a= mechanism =0A> for=0A>>>> configuring beans that does not require re-comp= ilation - may be of=0A>>>> limited use in greenfield applications, but abo= ve all with=0A>>>> brownfield/legacy code. In fairness, for the latter one= could use=0A>>>> producers and such, but it may still be a PITA in some c= ases.=0A>>>> =0A>>>> Now, the key here IMO would be to have a scriptable (= no =0A> recompilation)=0A>>>> and toolable DSL outside the annotation syst= em. It so happens that =0A> of=0A>>>> all the options, XML is IMO the most= common and better understood =0A> by the=0A>>>> average developer. If we = manage to define a proper intermediate =0A> model=0A>>>> for this mechanis= m, then there could be plenty of other options =0A> (yaml,=0A>>>> or even = Groovy or Ruby if one so wishes) to add on later.=0A>>>> =0A>>>> =0A>>>> O= n 2012-09-10 3:50 AM, Romain Manni-Bucau wrote:=0A>>>> =0A>>>>> =C2=A0 wha= t does bring xml? i think that's the point=0A>>>>> =0A>>>>> =C2=A0 if it i= s only to get a format with hierarchy=C2=A0 you can use =0A> yaml for=0A>>>= >> instance=0A>>>>> =0A>>>>> =C2=A0 *Romain Manni-Bucau*=0A>>>>> =C2=A0 = *Twitter: @rmannibucau*=0A>>>>> =C2=A0 *Blog: =0A> http://rmannibucau.word= press.**com=0A>>>>> *=0A>>>>> =0A>>>>> = =0A>>>>> =0A>>>>> =0A>>>>> =C2=A0 2012/9/10 Bernard =C5=81abno =0A>>>>> =0A>>>>> =C2=A0 =C2=A0 If you find elegant way to do eve= rything that can be =0A> currently done=0A>>>>>> =0A>>>>> then=0A>>>> =0A>= >>>> =C2=A0 it's cool not to use XML, but if we won't be able to =0A> i.e.= =0A>>>>>> =0A>>>>> configure bean=0A>>>> =0A>>>>> =C2=A0 properties betwe= en compilation and deployment then it will be =0A> great=0A>>>>>> =C2=A0 d= isappointment.=0A>>>>>> =0A>>>>>> =C2=A0 2012/9/10 Charles Moulliard =0A>>>>>> =0A>>>>>> =C2=A0 =C2=A0 I would prefer that we avoid= to use XML. Otherwise, end =0A> users will=0A>>>>>>> =0A>>>>>> be=0A>>>> = =0A>>>>> =C2=A0 confused about what a CDI / CDI Extension should looks lik= e =0A> and why=0A>>>>>>> =0A>>>>>> we=0A>>>> =0A>>>>> =C2=A0 are=0A>>>>>>= =0A>>>>>>> =C2=A0 moving one step down to do what Spring / Xbean are =0A>= doing.=0A>>>>>>> =0A>>>>>>> =C2=A0 On Fri, Sep 7, 2012 at 11:31 PM, Romai= n Manni-Bucau=0A>>>>>>> =C2=A0 wrote:=0A>>>>>>> =0A= >>>>>>> =C2=A0 =C2=A0 Why i would like to use files (i find xml too =0A> ve= rbose) is for=0A>>>>>>>> =0A>>>>>>> constants=0A>>>> =0A>>>>> =C2=A0 (uri= for instance) or alternative/interceptor (as mentionned)=0A>>>>>>>> =0A>>>= >>>>> =C2=A0 Today i find other use case the translation of =0A> bad desig= n=0A>>>>>>>> =0A>>>>>>>> =C2=A0 ...just my opinion maybe=0A>>>>>>>> =C2=A0= Le 7 sept. 2012 23:01, "Jason Porter"=0A>>>>>>>> =0A>>>>>>> a=0A>>>> =0A>>>>> =C2=A0 =C3=A9crit=0A>>>>>> =0A>>>>>>> =C2= =A0 :=0A>>>>>>> =0A>>>>>>>> =C2=A0 Mark, Pete and I discussed a little bi= t about the =0A> XML=0A>>>>>>>>> =0A>>>>>>>> config (from=0A>>>> =0A>>>>> = =C2=A0 Solder)=0A>>>>>>>> =0A>>>>>>>>> =C2=A0 on IRC today. We quickly de= cided that we =0A> needed to move=0A>>>>>>>>> =0A>>>>>>>> over to the=0A>>= >> =0A>>>>> =C2=A0 mailing=0A>>>>>>>> =0A>>>>>>>>> =C2=A0 list for more i= nput, and to make things =0A> official.=0A>>>>>>>>> =0A>>>>>>>>> =C2=A0 As= things currently exist in the Solder XML =0A> Config,=0A>>>>>>>>> =0A>>>>>= >>> it's probably not=0A>>>> =0A>>>>> =C2=A0 portable and would really ne= ed some of the changes in CDI=0A>>>>>>>>> =0A>>>>>>>> 1.1 to work=0A>>>> = =0A>>>>> =C2=A0 properly. We also discussed throwing out the idea of=0A>>>= >>>>>> =0A>>>>>>>> completely=0A>>>> =0A>>>>> =C2=A0 configuring=0A>>>>>>= >> =0A>>>>>>>>> =C2=A0 beans via XML and using the XML config for =0A> oth= er tasks such=0A>>>>>>>>> =0A>>>>>>>> as=0A>>>> =0A>>>>> =C2=A0 applying= =0A>>>>>> =0A>>>>>>> =C2=A0 interceptors and the like via regex or similar= ideas, =0A> in=0A>>>>>>>>> =0A>>>>>>>> other words=0A>>>> =0A>>>>> =C2=A0= having=0A>>>>>>>> =0A>>>>>>>>> =C2=A0 it being a subset of what currentl= y exists =0A> today. What is=0A>>>>>>>>> =0A>>>>>>>> in Solder=0A>>>> =0A>= >>>> =C2=A0 is=0A>>>>>> =0A>>>>>>> =C2=A0 very=0A>>>>>>>> =0A>>>>>>>>> = =C2=A0 similar to configuring beans via XML in =0A> Spring, and we feel=0A= >>>>>>>>> =0A>>>>>>>> that=0A>>>> =0A>>>>> =C2=A0 paradigm=0A>>>>>>> =0A>= >>>>>>> =C2=A0 has sailed.=0A>>>>>>>>> =0A>>>>>>>>> =C2=A0 I'm starting t= his thread to get some =0A> other ideas about=0A>>>>>>>>> =0A>>>>>>>> what= we should=0A>>>> =0A>>>>> =C2=A0 do=0A>>>>>>> =0A>>>>>>>> =C2=A0 for XML= config and also see what people think.=0A>>>>>>>>> =0A>>>>>>>>> =C2=A0 --= =0A>>>>>>>>> =C2=A0 Jason Porter=0A>>>>>>>>> =C2=A0 =0A> http://lightguard= -jp.blogspot.**com=0A>>>>>>>>> =C2=A0 = =0A> http://twitter.com/**lightguardjp=0A>= >>>>>>>> =0A>>>>>>>>> =C2=A0 Software Engineer=0A>>>>>>>>> =C2=A0 Open So= urce Advocate=0A>>>>>>>>> =C2=A0 Author of Seam Catch - Next Generation Ja= va =0A> Exception=0A>>>>>>>>> =0A>>>>>>>> Handling=0A>>>> =0A>>>>> =C2=A0 = PGP key id: 926CCFF5=0A>>>>>>>>> =C2=A0 PGP key available at: keyserver.n= et, =0A> pgp.mit.edu=0A>>>>>>>>> =0A>>>>>>>>> =0A>>>>>>> =C2=A0 --=0A>>>>>= >> =C2=A0 Charles Moulliard=0A>>>>>>> =C2=A0 Apache Committer / Sr. Pr. C= onsultant at =0A> FuseSource.com=0A>>>>>>> =C2=A0 Twitter : @cmoulliard=0A= >>>>>>> =C2=A0 Blog : http://cmoulliard.blogspot.com=0A>>>>>>> =0A>>>>>>> = =0A>> =0A>