Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82773104C3 for ; Thu, 16 Jan 2014 07:05:42 +0000 (UTC) Received: (qmail 97097 invoked by uid 500); 16 Jan 2014 07:05:42 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 96963 invoked by uid 500); 16 Jan 2014 07:05:39 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 96951 invoked by uid 99); 16 Jan 2014 07:05:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 07:05:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 16 Jan 2014 07:05:33 +0000 Received: (qmail 443 invoked from network); 16 Jan 2014 07:15:35 -0000 Received: from unknown (HELO ?192.168.1.30?) (212.98.191.4) by vorsha.objectstyle.org with SMTP; 16 Jan 2014 07:15:35 -0000 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: V3.0.2 org.apache.cayenne.access.DataDomain, line 258 From: Andrus Adamchik In-Reply-To: <0351F2E1-81A7-4D8E-9513-0014B00AA01C@polyprotec.com> Date: Thu, 16 Jan 2014 10:05:08 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <710AD940-34E8-4D7C-9747-6400C6E24A5E@objectstyle.org> References: <44E986DC-C2DA-4B04-866E-AF2240E51D99@polyprotec.com> <0351F2E1-81A7-4D8E-9513-0014B00AA01C@polyprotec.com> To: user@cayenne.apache.org X-Mailer: Apple Mail (2.1827) X-Virus-Checked: Checked by ClamAV on apache.org Hi =C9mile, Welcome to the community! Looks suspect to me too :) The good news is that 3.0 is ancient news and = these days stack initialization is handled via dependency injection and = more or less completely outside of the stack objects themselves. Not sure if that code is causing you any trouble (if so, let=92s = discuss), but in general I would recommend switching to 3.1 beta for = your work. Andrus On Jan 15, 2014, at 8:05 PM, Emile Salem wrote: > Hi there, >=20 > as a first post to this list, I=92d like to ask the following: > why does the DataDomain need to have a dataContextFactory declared in=20= > its properties for the assignment of its queryCacheFactory to take = place, as read on line 258 of org.apache.cayenne.access.DataDomain = (3.0.2): >=20 > if ((queryCacheFactoryName !=3D null) && (dataContextFactory !=3D = null) && (!Util.isEmptyString(dataContextFactory))){ > this.queryCacheFactory =3D = ((QueryCacheFactory)createInstance(queryCacheFactoryName, = QueryCacheFactory.class)); > } > else{ > this.queryCacheFactory =3D null; > } > Thanks for your time >=20 > =C9MILE SALEM > Software Developer > esalem@polyprotec.com