Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-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 0D286176BD for ; Wed, 25 Mar 2015 23:16:01 +0000 (UTC) Received: (qmail 98641 invoked by uid 500); 25 Mar 2015 23:16:00 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 98604 invoked by uid 500); 25 Mar 2015 23:16:00 -0000 Mailing-List: contact dev-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list dev@ignite.incubator.apache.org Received: (qmail 98592 invoked by uid 99); 25 Mar 2015 23:16:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 23:16:00 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [96.114.154.166] (HELO resqmta-po-07v.sys.comcast.net) (96.114.154.166) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 23:15:54 +0000 Received: from resomta-po-07v.sys.comcast.net ([96.114.154.231]) by resqmta-po-07v.sys.comcast.net with comcast id 7zDy1q0034zp9eg01zEDrz; Wed, 25 Mar 2015 23:14:13 +0000 Received: from tinybb.boudnik.org ([24.130.135.131]) by resomta-po-07v.sys.comcast.net with comcast id 7zED1q0012qGB6001zEDb7; Wed, 25 Mar 2015 23:14:13 +0000 Received: by tinybb.boudnik.org (Postfix, from userid 1002) id 379547E4; Wed, 25 Mar 2015 23:15:52 +0000 (UTC) Date: Wed, 25 Mar 2015 23:15:51 +0000 From: Konstantin Boudnik To: dev@ignite.incubator.apache.org Subject: Re: Ignite custom Spring XML schema Message-ID: <20150325231551.GT1657@boudnik.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Organization: It's something of 'Cos User-Agent: Mutt/1.5.21 (2010-09-15) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1427325253; bh=9vYlD5b9CmqWq+tkFZZLnDyk6igV2zTQq3+6tcilLEQ=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=mMfI6yA94kXP83MuHev03YtUWmbbZzQ68yVsRNg7CZ4Im8MmZNlcoq2JiQN/Dl8Ur w/uCTTM/01N1yplPZ4zWVD+KIvwRkzhJKvXWQoH9txp/MGfCcr3KWt5tzcb74gULop PBG429NuzcduUpOAN5N/mE/UHyVsYxM9+menLAIV9sxTwotfSxkgzkYFI3f7rLVdgq BezRoJYHlJgvDTrtzNqBqrAeLVxSOELQfe34CitesvvHXpjv5OmKAUVHpwy4uwqkqb xJBTkPCYxxdIb6rsy3EZv/i/b5GuJHJBjNY8zDhYMoXdL0tFP/zCn0JK4cV2lFkBY0 vhr6T8zK+VrxQ== X-Virus-Checked: Checked by ClamAV on apache.org I will harp once again on the beauty of DSLs ;) On Wed, Mar 25, 2015 at 11:21AM, Vladimir Ozerov wrote: > This is important question. As far as I know none of our competitors use > plain Spring XMLs. Disadvantage of this approach is that users have to > learn new synthax for configuration. > > But on the other hand this gives us independency of Spring format. It is > very important from interoperability point of view. For instance, currently > in GridGain .Net client we can do nothing with Spring XML configuration: we > cannot load it, modify it, pass object model to Java, etc.. Therefore, we > cannot take advantage of new dynamic cache start without introducing > boilerplate code responsible for marshalling .Net cache config data model > to bytes and unmarshalling it to Java data model in JVM. Also, our further > non-Java users will have to learn Spring format which can be very uncommon > for their platform and environment. > I believe we will face lots of such problems when developing open-source > integration with other platforms. > > So, I -1 for customSpring XML schemas, but +1 for thinking about new > completely independent XML schema _in_addition_ to current Spring features. > > On Wed, Mar 25, 2015 at 11:02 AM, Sergi Vladykin > wrote: > > > -1 > > > > Agree with Dmitriy. > > > > Sergi > > > > 2015-03-25 10:05 GMT+03:00 Dmitriy Setrakyan : > > > > > -1 > > > > > > I don't agree from usability standpoint. I like our default Spring config > > > syntax because it does not require learning of our XML syntax. The less > > > user has to learn, the better. > > > > > > D. > > > > > > On Tue, Mar 24, 2015 at 11:44 PM, Alexey Goncharuk < > > agoncharuk@apache.org> > > > wrote: > > > > > > > +1. Totally agree with Alexey on this idea. > > > > > > > > 2015-03-24 20:45 GMT-07:00 Alexey Kuznetsov : > > > > > > > > > Hi! > > > > > > > > > > What do you think about creating custom Spring XML schema? > > > > > > > > > > For example Spring AMQP has its own schema that looks like: > > > > > > > > > > > > > > > > > > > > > > connection-factory="connectionFactory" > > > > > exchange="myExchange" routing-key="foo.bar"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > We could have something similar for Ignite. That will make Ignite > > > Spring > > > > > XML configs much smaller. > > > > > No need to use full class names. > > > > > > > > > > Thoughts? > > > > > > > > > > > > > > > -- > > > > > Alexey Kuznetsov > > > > > GridGain Systems > > > > > www.gridgain.com > > > > > > > > > > > > > >