Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 60307 invoked from network); 17 Feb 2009 17:22:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 17:22:16 -0000 Received: (qmail 1563 invoked by uid 500); 17 Feb 2009 17:22:14 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 1540 invoked by uid 500); 17 Feb 2009 17:22:14 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 1531 invoked by uid 99); 17 Feb 2009 17:22:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 09:22:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jaydmchugh@gmail.com designates 209.85.198.225 as permitted sender) Received: from [209.85.198.225] (HELO rv-out-0506.google.com) (209.85.198.225) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 17:22:04 +0000 Received: by rv-out-0506.google.com with SMTP id b25so2343065rvf.55 for ; Tue, 17 Feb 2009 09:21:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=MKXTPvopnlaIGK+heoIdUg1/qs8tBAkEXNsF0C47WAI=; b=G4Kz7z7Ys4hHjSVdCCwB2QI75c4uvEpPgn83qOvqP0XjWA52A/sS7o4PIA9G+fEmOF gnueG7HgnWBS/CuvHnLfaDj7k/MAdfmhBPr4N2iLGRRCPk4et3hHMALmTmEIgMkADBhd +FZLRuVAAL0qPDEWpYOdrBufxHBHVEBVdbU6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=k0d/RwwZirBnfDV0oHE/5Is4CQvYySu7WbXK2OEuBk3HYbsVkjG1pTzztltxXNIyZL bwSYiIsvLzgArvcOYMtDr0LGaycECZl7h0dIqXNDhdhFAyfzrSIrlBKw4uvKxhkyK2it eQCNgN+d3Ds8Bk/FjQvbu0oieqlr1dBpEG0uc= Received: by 10.140.161.11 with SMTP id j11mr1837917rve.114.1234891303610; Tue, 17 Feb 2009 09:21:43 -0800 (PST) Received: from ?172.16.3.2? (198.pubint.com [66.84.139.198]) by mx.google.com with ESMTPS id k41sm6471801rvb.6.2009.02.17.09.21.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Feb 2009 09:21:43 -0800 (PST) Message-ID: <499AF221.3000904@gmail.com> Date: Tue, 17 Feb 2009 11:21:37 -0600 From: "Jay D. McHugh" User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: best practice to deploy multiple .js libs (not just dojo) References: <22046873.post@talk.nabble.com> In-Reply-To: <22046873.post@talk.nabble.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello Bryan, I don't know that there is an official 'best way' to do this - but... Setting up a single location for multiple web apps to find the same copy of a JavaScript library is just a matter of wrapping it up as a web app. For Dojo, we do this in Maven and create a .car file so that it can be referenced as a plug-in to be automatically deployed when something that depends on it is installed (i.e. the admin console). If you are familiar with Maven or want to make it easy for your own apps to 'automatically' deploy your additional libraries - take a look at the way we build the Dojo plug-in. You will need to have a repository available for Geronimo to find the library plugin (either local maven repo or some repository manager). If you don't care to have the Geronimo automatically install the JavaScript library when you install apps that need it - just make a .WAR file that deploys the library to the common location that you want. The downside of this is that you have to remember to deploy your JavaScript app or your regular app will not work. The plugin method is -probably- the best practice. It reduces the likelihood that you will deploy broken apps. Jay Bww00 wrote: > Looking for the best way to deploy multiple .js libraries other than dojo. > like ext-js or jquery. > > > > Thanks > Bryan