Return-Path: Delivered-To: apmail-avalon-dev-archive@www.apache.org Received: (qmail 50122 invoked from network); 7 Nov 2003 18:22:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Nov 2003 18:22:54 -0000 Received: (qmail 10267 invoked by uid 500); 7 Nov 2003 18:22:44 -0000 Delivered-To: apmail-avalon-dev-archive@avalon.apache.org Received: (qmail 10217 invoked by uid 500); 7 Nov 2003 18:22:43 -0000 Mailing-List: contact dev-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list dev@avalon.apache.org Received: (qmail 10203 invoked from network); 7 Nov 2003 18:22:43 -0000 Received: from unknown (HELO sg1-wwd.cirquedigital.com) (65.223.48.51) by daedalus.apache.org with SMTP; 7 Nov 2003 18:22:43 -0000 Received: from cirquedigital.com (lsanca1-ar45-4-62-167-175.lsanca1.elnk.dsl.genuity.net [4.62.167.175]) (authenticated bits=0) by sg1-wwd.cirquedigital.com (8.12.8/8.12.8) with ESMTP id hA7IMPoE007717 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Nov 2003 10:22:25 -0800 Message-ID: <3FABE2EF.8040608@cirquedigital.com> Date: Fri, 07 Nov 2003 10:22:39 -0800 From: Filip Defoort Reply-To: filip@cirquedigital.com Organization: CirqueDigital, LLC. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@avalon.apache.org Subject: [merlin] embedding servlet questions.. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi gang, I'm embedding merlin into a servlet -- all seems to work well, but there's a couple of remaining issues before everything is completely cleaned up: 1/ How do I get to the merlin application repository directory ? Right now, I'm using a parameter in the web.xml that basically hardcodes the repository.. Not very elegant, e.g. if I would distribute/commit the example into the sandbox, anybody checking it out would have to manually update that link. merlin.repository.dir F:/home/filipdef/maven maven.repo.local F:/home/filipdef/maven 2/ The merlin servlet is simply a wrapper that loads a component jar -- should I package that jar in the .war file or connect to a local/remote repository to get to the actual component.. Currently I'm doign the equally unelegant: block /WEB-INF/lib/merlin-service-tutorial-1.0.jar // .... MerlinServlet.java... String blockPath = getInitParameter( "block", "BLOCK-INF/block.xml" ); URL block = new File( home, blockPath ).toURL(); ContainmentModel root = m_kernel.getContainmentModel(); root.addContainmentModel( block, conf ); Anybody any thoughts/suggestions ? Thanks, - Filip PS: 30, born in Belgium, but living in Los Angeles since the last couple of years.. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org For additional commands, e-mail: dev-help@avalon.apache.org