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 A4D81200B4F for ; Tue, 26 Jul 2016 10:17:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A34E0160A75; Tue, 26 Jul 2016 08:17:28 +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 E8B97160A56 for ; Tue, 26 Jul 2016 10:17:27 +0200 (CEST) Received: (qmail 28957 invoked by uid 500); 26 Jul 2016 08:17:27 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 28945 invoked by uid 99); 26 Jul 2016 08:17:26 -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; Tue, 26 Jul 2016 08:17:26 +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 56B4E180554 for ; Tue, 26 Jul 2016 08:17:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 0XTitUDAMNxn for ; Tue, 26 Jul 2016 08:17:23 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 2558F5F245 for ; Tue, 26 Jul 2016 08:17:23 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id f93so144982420lfi.2 for ; Tue, 26 Jul 2016 01:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ZsNXo+Vk5XTowdFiFTtulKYmWMKnQdk+EwRYQSfJSTE=; b=Ox99pP0b/0/P7907zwalSJ70phPKFuek9ILiH/3PTarVb3QMSdrzaSNkCv6YKPDjem CeFyxu47zLyt4wHDnRzrPkach2Qr7LDK+4id7GEFDyRmKt284lYlG5bv5DcxOH0pwBJ2 9ApZlYsvkLBSFZApjfXF5sZacsRDSRSwy/uiHmB27F57n8Ph37jEUlR18qdNtNCJ4ehB XIrVh3NcKUEecRqMBFru9GVrijCj1D2J6AlFOrlKCRCxevmPfdL3PpmsM5Hswy+kqlIY Wfb3O7wJdNKNQc7wBmggcW2qppAEubuLHeqv2tMQ9EnhPZvRrt0j26+EEdfRF2WNbozO jGXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ZsNXo+Vk5XTowdFiFTtulKYmWMKnQdk+EwRYQSfJSTE=; b=f7Wf3FUYm5vhRTPdOBT2dOOXaxkJI1juEmQNfToE88036m0jd0jroos7cdxDnjT9fM Z5SEvR4ohTOiZCNiuxpdVXcFX8qzU2YMaWErvnPxSILctgA0Q/xpjchBt35RmAIhQjW0 PO2SL8OWRvgC17zJ2BdoPCcs5z2UU6lzzNJopzl9+0FLVjBWQL8x2JbS0LV3mAzKCw2B KgKJZYwwjRWKc8g5VFoEzBQjzGf/1xyiHRoPSc0FEilcEUY2DBPbrqRXjMEILTFhKaPl LDf7PCwDEFTefcxxSrIJFWSpb/IOBm4V43gKpvhsd3DrLErVWBIQJjKd+bnBbt6TrZfJ +/IA== X-Gm-Message-State: AEkoout9IR3DpaCgjKSGHqjr/Wlf4Xn2v5kUF7yEPZXHJuhY3vSVm6VbX83zbC4xhaqbx3MXf+BzYg8GkfD9B7cx X-Received: by 10.46.33.84 with SMTP id h81mr8143097ljh.47.1469521042209; Tue, 26 Jul 2016 01:17:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.205.75 with HTTP; Tue, 26 Jul 2016 01:17:21 -0700 (PDT) In-Reply-To: References: From: Alexey Kuznetsov Date: Tue, 26 Jul 2016 15:17:21 +0700 Message-ID: Subject: Re: IgniteConfiguration.toXml() To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a1142c240b60f440538858782 archived-at: Tue, 26 Jul 2016 08:17:28 -0000 --001a1142c240b60f440538858782 Content-Type: text/plain; charset=UTF-8 Pavel, In Web Console [1] we have generation of Spring XML and appropriate Java code generation. And from my experience it is not trivial thing to generate Spring XML in some cases (if we will write code by ourselves). If we will use Spring marshaling - that will bring a dependency from Spring to ignite-core and we cannot do this. We could add this as utility method to ignite-spring module. [1]. https://ignite.apache.org/addons.html#web-console On Tue, Jul 26, 2016 at 2:19 PM, Pavel Tupitsyn wrote: > Igniters, > > This applies equally to Java and .NET: > > Writing XML configuration in not easy or fun. I've seen lots of questions > on how to configure things in XML. > Spring syntax is cumbersome even when you get used to it. > > On the other hand, setting IgniteConfiguration properties directly in Java > or C# is much easier because of the IDE support. > Sometimes users will start with a code-only app and decide to move > configuration to XML. > > So I propose to add IgniteConfiguration.toXml() method in Ignite.NET. > Not sure how easy it is in Java, but .NET already has it, just hidden from > public API. > > Thoughts? Objections? > > Pavel. > -- Alexey Kuznetsov GridGain Systems www.gridgain.com --001a1142c240b60f440538858782--