Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 30024 invoked from network); 8 Nov 2007 18:56:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2007 18:56:05 -0000 Received: (qmail 83577 invoked by uid 500); 8 Nov 2007 18:55:53 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 83561 invoked by uid 500); 8 Nov 2007 18:55:53 -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 Delivered-To: moderator for user@cayenne.apache.org Received: (qmail 19827 invoked by uid 99); 8 Nov 2007 03:47:54 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sratanot@gmail.com designates 209.85.146.181 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=ynxw4LRTYnGWSgF4TxhVarbHDq8zlu8B6aUtsPECdxY=; b=CEnjJ/eW/MOR9u6JDjASHAItv3kfK7noQUihZNbxW1fux8Nlra57EVLgUmDi0WGHLDAptIR3Uig+qGD6gJJjW0gKNpNA5/KBSViJkKRXIwYhZJWK0UM/FkCl2137DU/sf5k4AfO03n+zrYBHzNbssZGKtpy7cduEB6zDmSzz6js= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Yq2O/W1B3ZTowNL5xaSm/GXHy/3+Aqh/xMEnE9fPldOKPk6rcMjRzucrS6eU9xV71UnQCrD6kjHUVYTk/a2NMyCQsdngBk8KajDnaKecnGpWuiKLIYgPvBzb2g9fi28c83wyiYM6xkvAerQCVN6Hwa9zuPGwyELdwHRWT7phEL8= Message-ID: <11339950711071947r4aa50caep918492360699b8bd@mail.gmail.com> Date: Wed, 7 Nov 2007 19:47:37 -0800 From: "Sukanya Ratanotoyanon" To: user@cayenne.apache.org Subject: Question about using a library having Cayenne embedded within a project using Cayenne MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_38478_24100964.1194493657180" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_38478_24100964.1194493657180 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I'm having a problem getting a correct DataDomain when I'm using a library containing cayenne objects. Basically, I'm working on a project using Cayenne. I need the database URL, usename and password to be configurable. Therefore, I have this method to set up them up like this: Configuration config = Configuration.getSharedConfiguration(); DataDomain domain = config.getDomain(); DataNode cNode = domain.getNode(LINK_DB_NODE); .... .... I received a library that also uses Cayenne to map the database, and tried to integrate this library into my project. However, after integration, when I call Configuration.getSharedConfiguration(), it loads the configuration from the cayenne.xml in the library instead of the one I'm using for the project. So when I tried to get my DataNode, it cannot be founded. This results in NullPointerException when I use my DataNode object. Is there a way to work around this, or do I miss something? I just start using Cayenne not very long ago and would appreciate any helps. Thank you very much, Sukanya ------=_Part_38478_24100964.1194493657180--