Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 16145 invoked from network); 13 Jan 2010 19:06:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 19:06:00 -0000 Received: (qmail 15593 invoked by uid 500); 13 Jan 2010 19:05:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 15527 invoked by uid 500); 13 Jan 2010 19:05:59 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 15519 invoked by uid 99); 13 Jan 2010 19:05:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 19:05:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 19:05:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NV8X4-0000Gx-Vg for derby-dev@db.apache.org; Wed, 13 Jan 2010 11:05:30 -0800 Message-ID: <27148810.post@talk.nabble.com> Date: Wed, 13 Jan 2010 11:05:30 -0800 (PST) From: Jim Crowell To: derby-dev@db.apache.org Subject: Re: Derby Network Server usage? In-Reply-To: <4B4D09B8.8080801@amberpoint.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: JimCrowell@EMail.com References: <27117797.post@talk.nabble.com> <4B4BEB88.4080906@amberpoint.com> <27134902.post@talk.nabble.com> <4B4D09B8.8080801@amberpoint.com> Bryan, Thanks for all the help. I just posted a message in the derby-user mailing list asking about the feasibility of embedding a Web Server in my Java stand alone application. The thread's subject is as follows: "Embedded Web Server in Java stand alone application..." Bryan Pendleton wrote: > > Hi Jim, > > These questions are probably better addressed to the derby-user mailing > list > since they have more to do with how to use Derby than with how it is > implemented internally. So you probably want to pursue the discussion on > that list, as you'll find more people who have experience building > applications > like the one you describe. > > Derby does not provide a JSP container, nor a Servlet container, so if > you are interested in writing JSPs and Servlets you'll need to find one. > Tomcat is certainly a fine choice; there are plenty of other JSP and > Servlet > containers out there, but the derby-dev list is probably the wrong place > to look > for more information about that. > > When you get to writing your JSPs and Servlets, you merely need to ensure > that the derbyclient.jar library is available to them. In the case of most > JSP or Servlet containers, there is a simple way to include such a jar > library > into your web application; for example in Tomcat I believe you just have > to > place derbyclient.jar into the correct 'lib' directory. > > Once you have made derbyclient.jar available to your JSP or Servlet, you > can > simply create a new java.sql.Connection object in your code, using the > Derby > network-format URL scheme: > > jdbc:derby://host:port/databaseName;options > > The ClientDriver class in the derbyclient.jar will then implement all of > your > JDBC calls using network access to the Network Server instance located in > your application. > > I think that JDK 1.5 is capable of doing everything you've described so > far. > I believe that JDK 1.6 adds further performance and functionality > improvements, > but Derby runs great with JDK 1.5 as well as with JDK 1.6 so you can > choose > whichever you prefer. > > I believe you are correct that you don't need Java EE in order to write > simple JSP and Servlet code. You just need J2SE and a Servlet/JSP > container > such as Tomcat. > > I believe there is a great "using Derby with Tomcat" tutorial here: > http://db.apache.org/derby/papers/fortune_tut.html > There are some links in that tutorial to other Derby-with-Tomcat > tutorials. > > Good luck, and let us know if you run into any problems with Derby; the > community will be glad to help. > > thanks, > > bryan > > > > ----- Regards, Jim... -- View this message in context: http://old.nabble.com/Derby-Network-Server-usage--tp27117797p27148810.html Sent from the Apache Derby Developers mailing list archive at Nabble.com.