Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 69165 invoked from network); 6 Apr 2006 17:57:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 17:57:54 -0000 Received: (qmail 32810 invoked by uid 500); 6 Apr 2006 17:57:52 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 32791 invoked by uid 500); 6 Apr 2006 17:57:51 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 32780 invoked by uid 99); 6 Apr 2006 17:57:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 10:57:51 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=RCVD_IN_NJABL_PROXY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of eferreyra@gmail.com designates 66.249.82.201 as permitted sender) Received: from [66.249.82.201] (HELO xproxy.gmail.com) (66.249.82.201) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 10:57:51 -0700 Received: by xproxy.gmail.com with SMTP id s8so149387wxc for ; Thu, 06 Apr 2006 10:57:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=avJxk26jOJQFVX7zpCHV687m33kobFzGhO8cqF/137bbMOlqCF3KSe/Cx4Iz13oT0+9ZRnjVe6K+9OKHmtGyQeDs5F1GJoPvypkd7ImLvDlOAQpbZRvwOmCs0BU8JdQ7f48/RXyW9fCQ0tQsegnsdTTGsuecOG1ieZ3vFjmDabY= Received: by 10.70.130.7 with SMTP id c7mr1430300wxd; Thu, 06 Apr 2006 10:57:29 -0700 (PDT) Received: from ?201.252.204.164? ( [201.252.204.164]) by mx.gmail.com with ESMTP id i15sm642615wxd.2006.04.06.10.57.28; Thu, 06 Apr 2006 10:57:28 -0700 (PDT) Message-ID: <44355688.2020106@gmail.com> Date: Thu, 06 Apr 2006 14:57:28 -0300 From: Enrique Ferreyra User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: es-ar, es, en-us, en MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: config files, where ? References: <44353DD9.2020506@gmail.com> <9ad875ff0604060917l369a9a22j38582d9eed563fd7@mail.gmail.com> <27c1a34f0604061034t7d24a119x305dc13c02a154f3@mail.gmail.com> In-Reply-To: <27c1a34f0604061034t7d24a119x305dc13c02a154f3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ok, i like that but how do you reference the sqlmap.xml ? I try put in package com.ccem.comun, and reference like this: String resource = "/com/ccem/comun/SqlMap.xml"; Reader reader = Resources.getResourceAsReader(resource); sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader); But i get: java.io.IOException: Could not find resource /com/ccem/comun/SqlMapConfig.xml help... thanks! Ted Schrader escribi�: >Hello, > >For my project I'm keeping the SQLMaps under a java package, like this: > >com.mycompany.myapp.sqlmaps > >Because this implies that the SQLMaps as part of the source, my build >process includes them in the jar/war/ear. > >Ted > >On 06/04/06, Cimballi wrote: > > >>Hi, >> >>I use a separate folder for configuration files and I put this folder >>in the classpath. >>Maybe there are better solutions... >> >>Cimballi >> >> >>On 4/6/06, Enrique Ferreyra wrote: >> >> >>>Hi, this is kind of newbie question... >>> >>>I have an application in serveral JARs, i would like to all share the >>>ibatis files (sql maps) but i dont know how, currently this apps are >>>NetBeans project, and i put the files in the Project/Build/Classes >>>because i reference the file whitout path, the problem is if i do clean >>>project NetBeans delete that dir, also if i run the generated jar the >>>app cant find the files... >>> >>>Where is the best place to put this files in this situation, and how >>>reference to it ? >>> >>>Thanks >>> >>>-- >>> A.U.S. Enrique Ferreyra >>> Centro de C�mputos >>> Red Megatone - Red Confina >>> >>> > > > -- A.U.S. Enrique Ferreyra Centro de C�mputos Red Megatone - Red Confina