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 4A9FC173B7 for ; Tue, 2 Jun 2015 08:42:14 +0000 (UTC) Received: (qmail 38572 invoked by uid 500); 2 Jun 2015 08:42:14 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 38533 invoked by uid 500); 2 Jun 2015 08:42:14 -0000 Mailing-List: contact user-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.incubator.apache.org Delivered-To: mailing list user@ignite.incubator.apache.org Received: (qmail 38522 invoked by uid 99); 2 Jun 2015 08:42:13 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 08:42:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8FFA31A42E7 for ; Tue, 2 Jun 2015 08:42:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.973 X-Spam-Level: X-Spam-Status: No, score=0.973 tagged_above=-999 required=6.31 tests=[SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id yCDvUcABG3CX for ; Tue, 2 Jun 2015 08:42:03 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 194CD20C4B for ; Tue, 2 Jun 2015 08:42:03 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 705D3E04025 for ; Tue, 2 Jun 2015 01:42:01 -0700 (PDT) Date: Tue, 2 Jun 2015 01:38:47 -0700 (PDT) From: ivasilinets To: user@ignite.incubator.apache.org Message-ID: <1433234327146-438.post@n6.nabble.com> In-Reply-To: <1432997970581-431.post@n6.nabble.com> References: <1432997970581-431.post@n6.nabble.com> Subject: Re: How to use CacheJdbcBlobStore? Getting NotSerializableException MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! 1. Jdk marshaller is used only to check configuration. 2. Cache store factory should be serializable in cache configuration. FactoryBuilder$SingletonFactory save the instance of the underlying object, so you can use only serializable stores with it. CacheJdbcBlobStore is not serializable. You need to implement your own factory to use CacheJdbcBlobStore. To implement your own factory please override method Factory.create() @Override public CacheJdbcBlobStore create() { CacheJdbcBlobStore store = new CacheJdbcBlobStore(); //Please set only parameters that you need. To use default configuration, write only return new CacheJdbcBlobStore(); store.setInitSchema(initSchema); store.setConnectionUrl(connUrl); store.setCreateTableQuery(createTblQry); store.setLoadQuery(loadQry); store.setUpdateQuery(updateQry); store.setInsertQuery(insertQry); store.setDeleteQuery(delQry); store.setUser(user); store.setPassword(passwd); store.setDataSource(dataSource); return store; } I hope my answer helps you. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-use-CacheJdbcBlobStore-Getting-NotSerializableException-tp431p438.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.