Return-Path: Delivered-To: apmail-ws-tuscany-user-archive@locus.apache.org Received: (qmail 62262 invoked from network); 23 Aug 2006 21:23:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2006 21:23:30 -0000 Received: (qmail 7485 invoked by uid 500); 23 Aug 2006 21:23:30 -0000 Delivered-To: apmail-ws-tuscany-user-archive@ws.apache.org Received: (qmail 7469 invoked by uid 500); 23 Aug 2006 21:23:29 -0000 Mailing-List: contact tuscany-user-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-user@ws.apache.org Delivered-To: mailing list tuscany-user@ws.apache.org Delivered-To: moderator for tuscany-user@ws.apache.org Received: (qmail 39610 invoked by uid 99); 23 Aug 2006 20:49:16 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of kevincbw@qwest.net designates 63.231.195.115 as permitted sender) Date: Wed, 23 Aug 2006 14:48:51 -0600 Message-ID: <44ECBF33.8050002@qwest.net> From: "Kevin Williams" To: "Luciano Resende" Cc: tuscany-user@ws.apache.org User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Subject: Re: DAS & JNDI requirements References: <75D481373A76D311A5790090274F2B5C077AEA7F@mailsrv1.gemstone.com> <5a75db780608231050q661afd3eua33a7f6e5c5c0b9c@mail.gmail.com> In-Reply-To: <5a75db780608231050q661afd3eua33a7f6e5c5c0b9c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Currently, you can either pass the DAS a connection instance or a JNDI name. The CompanyWeb sample demonstrates the use of a DataSource on Tomcat and the config.xml is used to provide the JNDI name. All of our unit tests pass a connection. Luciano Resende wrote: > Hi Scott > > You could use DAS on Tomcat (see companyWeb sample app) and in a > plain old Java App (you could base on the jUnit tests we have, and > could configure DAS manually or using a config.xml file), i have both > working in my dev environment, but currently I'm using derby as my > data repository. > What i don't have, and was trying to get it up and running is a > MySQL environment and access it trough a JNDI that is the environment > you mentioned... I think i can have that working soon... In the > meantime, I have found a good link that might give you some hints if > this might be a configuration problem or not : > http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html > > - Luciano > > On 8/23/06, *Scott Kurinskas* > wrote: > > Perhaps I have a much more basic question. What runtime > environments does > the Data Access Service support? I thought I read somewhere that > Axis and > Tomcat were supported, but what about a plain 'ol Java > application? For the > use-case I'm trying to prove out, the DAS would be used within a pojo > executing within a java process (5.0 jdk). To keep life simple, > I'd first > like to get a basic use-case working, using the DAS within a java > app. > > What I cannot figure out is how to register the JNDI directory > with the > DAS/SDO/Tuscany runtime. For testing, I'm quite content to use a > file-based > directory and then migrate to something else. The problem I run > into is > that in DASImpl, it fails in the initializeConnection() operation > as the > call to InitialContext(env) fails. > > Thanks, > Scott > > > > > -- > ----------------------------------------------------- > Luciano Resende > SOA Opensource - Apache Tuscany > ----------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org For additional commands, e-mail: tuscany-user-help@ws.apache.org