Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6EA4B19104 for ; Wed, 30 Mar 2016 13:46:26 +0000 (UTC) Received: (qmail 41349 invoked by uid 500); 30 Mar 2016 13:46:25 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 41291 invoked by uid 500); 30 Mar 2016 13:46:23 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 41212 invoked by uid 99); 30 Mar 2016 13:46:21 -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; Wed, 30 Mar 2016 13:46:21 +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 53926180628 for ; Wed, 30 Mar 2016 13:46:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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=gmail.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 gndagzPGbDNz for ; Wed, 30 Mar 2016 13:46:19 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 808165FAE2 for ; Wed, 30 Mar 2016 13:46:18 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id x3so66202464obt.0 for ; Wed, 30 Mar 2016 06:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=VDfVuizQOiIt3z7iFIV5xGxW+o+b1c33o78OFCkEyOk=; b=cMXgkIF1wx6BxGcdjbJtJwG5srCChaTyz/TguipKCoOukfbgC/xk+G0QVjzDyz8eT1 CwIp1HXAboYqfbuMgpFAGsAOysHbb6qUMa+BK7BaIm0Fmb9H0go+iF+A/EK3aPtmayhN +ZOvMLPwv9TLJgcnhwrgvHqD11AEEjDVVvKmHdHKMv/I74cp7Q3GykAI4TIL8FK60nrR LWDtPNpJbchkfzTQqatAcbvvPzyJnlz+t4g3cdte8azHDR1+GuaHM2U6Mi+vsA7cy9xw uJEk9b/U4SZXR5KT6ggqv0aFsQgelt3LuJHFfYM+0/+8pqKnPqPTAjuog16sueqN1sty yrFg== 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:date :message-id:subject:from:to; bh=VDfVuizQOiIt3z7iFIV5xGxW+o+b1c33o78OFCkEyOk=; b=bZQAhwV5yxaYpERZWucLicawNTUk3XnD/tOgf8IPw2sGb14V+pLmtEHYgOGZLkQB1a s/Eus3mXRNMDYTXBz7HSFgBx3NcF+J41kTIdw0DofI4EakdMDtUfYSstCfX80SR9XWa/ LnG1cwO9J3KbwlowjVVeADvOIYrgj7T/vc/ktjrYcRGDLXNy/PLeZH+pbGUwxQhFZzna DVI4D/a6bkCVeH5+amwPPo+nD6KJsqgwk9OZeuotHoeOtAPbpYuJ9tqqJamMka2z2Kj5 Ox87FESCJPfZFKQKTCryp1qsUeyNELhR8iPhhld+Q9T08Wapk07+OiuiI2cAJCorUgTR RuSA== X-Gm-Message-State: AD7BkJJSjWrWIymSh8468X6F595GZ26vB6jrBpG5pxDpPHJSH5GppJK+yvXfbLu70Rib8piQzCtvFh7DbW+vvg== MIME-Version: 1.0 X-Received: by 10.182.224.168 with SMTP id rd8mr4869388obc.22.1459345545687; Wed, 30 Mar 2016 06:45:45 -0700 (PDT) Received: by 10.202.213.9 with HTTP; Wed, 30 Mar 2016 06:45:45 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 Mar 2016 09:45:45 -0400 Message-ID: Subject: Re: Automatic Persistence in .NET From: Murthy Kakarlamudi To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=089e0149bd20dafb00052f445cea --089e0149bd20dafb00052f445cea Content-Type: text/plain; charset=UTF-8 Thanks Vladimir for the detailed response. I had a question about using jdbc config in .NET classes, but probably it will be self-explanatory as I go through the exercise. Will reach out if I run into any issues. Thanks. On Wed, Mar 30, 2016 at 9:41 AM, Vladimir Ozerov wrote: > Murthy, > > Sorry, doesn't understand the question. Essentially Java will do the > following: > 1) Connect to database using JDBC. If you use SQL Server you will need to > download JDBC driver and it put to %IGNITE_HOME%/libs folder. > 2) It will create corresponding Java classes based on your inputs and > database metadata. > > When it is done, you should configure *CacheJdbcPojoStoreFactory *as it > is explained in the documentation*.* At this point you would be able to > read-through or write-through if you were Java user. For .NET you will have > to manually create corresponding model classes taking in count > interoperability issues. See > https://apacheignite-net.readme.io/docs/platform-interoperability for > more information. > > Please let us know if you have further questions. > > Vladimir. > > > On Wed, Mar 30, 2016 at 4:25 PM, Murthy Kakarlamudi > wrote: > >> Vladimir, Pavel, >> Thanks for your responses. I will try generating classes using Java >> and see if I can recreate them in .NET. Have a question though. The schema >> import tool generates *jdbc*:sqlserver://[host]:[port][;databaseName=database]. >> Assuming jdbc config does not work in .NET classes while setting up Store >> Factory. Am I correct in my assumption? >> >> Thanks, >> Satya. >> >> On Wed, Mar 30, 2016 at 5:00 AM, Pavel Tupitsyn >> wrote: >> >>> Hi Satya, >>> >>> It should be possible to set up automatic persistence for Ignite.NET >>> using Java mechanisms described there: >>> https://apacheignite.readme.io/docs/automatic-persistence >>> Basically, you'll have to import schema, compile resulting classes and >>> put them to classpath, and update Spring XML configuration accordingly. >>> It may not be convenient for .NET user, but there is no other way >>> currently. >>> >>> Pavel >>> >>> >>> On Wed, Mar 30, 2016 at 9:18 AM, Vladimir Ozerov >>> wrote: >>> >>>> Hi, >>>> >>>> Ignite is able to work with persistent store with read-through and >>>> write-through semantics in both Java and .NET versions. You can find >>>> relevant docs for .NET here: >>>> https://apacheignite-net.readme.io/docs/persistent-store >>>> Automatic persistence is a feature built on top of persistent store and >>>> is currently available only in Java. >>>> >>>> Please let me know if you have any further questions. >>>> >>>> Vladimir. >>>> >>>> On Wed, Mar 30, 2016 at 6:05 AM, Murthy Kakarlamudi >>>> wrote: >>>> >>>>> Hi, >>>>> Our .NET application needs read-through and write-through >>>>> capabilities. I see that there is Automatic Persistence feature for Java >>>>> and not for .NET in 1.5 version. Did I miss anything or is it not supported >>>>> in .NET for 1.5? >>>>> >>>>> Thanks, >>>>> Satya. >>>>> >>>> >>>> >>> >> > --089e0149bd20dafb00052f445cea Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Vladimir for the detailed response. I had a questio= n about using jdbc config in .NET classes, but probably it will be self-exp= lanatory as I go through the exercise. Will reach out if I run into any iss= ues. Thanks.

On Wed, Mar 30, 2016 at 9:41 AM, Vladimir Ozerov <vozerov@gridgain.com= > wrote:
M= urthy,

Sorry, doesn't understand the question. Essen= tially Java will do the following:
1) Connect to database using J= DBC. If you use SQL Server you will need to download JDBC driver and it put= to %IGNITE_HOME%/libs folder.
2) It will create corresponding Ja= va classes based on your inputs and database metadata.

=
When it is done, you should configure CacheJdbcPojoStoreFactory as it is explained in the documentation.=C2=A0At this point you wou= ld be able to read-through or write-through if you were Java user. For .NET= you will have to manually create corresponding model classes taking in cou= nt interoperability issues. See=C2=A0https://apacheign= ite-net.readme.io/docs/platform-interoperability for more information.<= /div>

Please let us know if you have further questions.<= /div>

Vla= dimir.


On We= d, Mar 30, 2016 at 4:25 PM, Murthy Kakarlamudi <ksatya@gmail.com> wrote:
Vladimir, Pa= vel,
=C2=A0 =C2=A0 Thanks for your responses. I will try generating cla= sses using Java and see if I can recreate them in .NET. Have a question tho= ugh. The schema import tool generates=C2=A0jdbc:sqlserver://[host]:[= port][;databaseName=3Ddatabase]. Assuming jdbc config does not work in .NET= classes while setting up Store Factory. Am I correct in my assumption?

Thanks,
Satya.

On Wed, Mar 30, 2016 at = 5:00 AM, Pavel Tupitsyn <ptupitsyn@gridgain.com> wrote:=
Hi Satya,

It should be possible to set up automatic persistence for Ignite.NET = using Java mechanisms described there:=C2=A0https://apacheigni= te.readme.io/docs/automatic-persistence
Basically, you'll= have to import schema, compile resulting classes and put them to classpath= , and update Spring XML configuration accordingly.=C2=A0
It may n= ot be convenient for .NET user, but there is no other way currently.
<= span>

Pavel
<= div>


On Wed, Mar 30, 2016 at 9:18 AM, Vladimir Ozerov &= lt;vozerov@gridga= in.com> wrote:
Hi,

Ignite is able to work with persistent store wi= th read-through and write-through semantics in both Java and .NET versions.= You can find relevant docs for .NET here:=C2=A0https://apachei= gnite-net.readme.io/docs/persistent-store
Automatic persisten= ce is a feature built on top of persistent store and is currently available= only in Java.

Please let me know if you have any = further questions.

V= ladimir.

=
On Wed, Mar 30, 2016 at 6:05 AM, Murthy Kakarlam= udi <ksatya@gmail.com> wrote:
Hi,
=C2=A0 =C2=A0Our .NET application needs read-th= rough and write-through capabilities. I see that there is Automatic Persist= ence feature for Java and not for .NET in 1.5 version. Did I miss anything = or is it not supported in .NET for 1.5?

Thanks,
Satya.





--089e0149bd20dafb00052f445cea--