Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 59901 invoked from network); 20 Nov 2004 03:26:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Nov 2004 03:26:02 -0000 Received: (qmail 71349 invoked by uid 500); 20 Nov 2004 03:25:52 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 71306 invoked by uid 500); 20 Nov 2004 03:25:51 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 71290 invoked by uid 99); 20 Nov 2004 03:25:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of hemapani@gmail.com designates 64.233.184.199 as permitted sender) Received: from [64.233.184.199] (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 19 Nov 2004 19:25:49 -0800 Received: by wproxy.gmail.com with SMTP id 68so83151wri for ; Fri, 19 Nov 2004 19:25:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=KFSUevPAqs5Pxet+XdWXZlULf2V+tuBHwxBdXZHm4/eijNQV6wuZ1AJ0UXKzP0v/NEOXFgfG6cz3uohCSSfAJoIxDysJHB2v5m3XhApyAwgOSF107RUkAsDuWPEAxq8B/VJHO90xKHDbxbgy8/aew3DGRfmAkz9vhhN0suWmgHo= Received: by 10.54.52.56 with SMTP id z56mr15296wrz; Fri, 19 Nov 2004 19:25:43 -0800 (PST) Received: by 10.54.23.78 with HTTP; Fri, 19 Nov 2004 19:25:43 -0800 (PST) Message-ID: Date: Sat, 20 Nov 2004 09:25:43 +0600 From: Srinath Perera Reply-To: Srinath Perera To: dev@geronimo.apache.org Subject: Re: How to start a plan from the Code In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > I think what you want to do is use the itest plugin together with the > geronimo maven deploy plugin. You will have to add a new module to do > this: I suggest itests/webservices. The good example of how to use > this is openejb itests. These tests will run only after assembly; > however if you are starting jetty and openejb, what you have is > definitely not a unit test but an integration test. Thanks Daivd; yap it is more like integeration :), . what I want is to start system plan , j2ee-server plan, (with jetty and openejb) some axis configuration plan and then send SOAP calls. (there is long way to go it seems.) will look at the plugin! Thanks Srinath > On Nov 19, 2004, at 12:45 AM, Srinath Perera wrote: > > > I am trying to bring up few Gbeans from plan; I am trying to use > > following code. > > > > ReadOnlyRepository repository = new ReadOnlyRepository(new > > File("temp")); > > ServiceConfigBuilder scb = new > > ServiceConfigBuilder(null,repository); > > > > File plan = new File("plan1.xml"); > > ConfigurationDocument configurationDoc = > > ConfigurationDocument.Factory.parse(plan.toURL()); > > File temp = new File("new"); > > > > ConfigurationType conf = configurationDoc.getConfiguration(); > > List confs = scb.buildConfiguration(conf,null,temp); > > URI uri = new URI(conf.getConfigId()); > > ----------------------> Point A > > > > kernel.startConfiguration(temp.toURI()); > > kernel.stopConfiguration(temp.toURI()); > > > > 1) when I run the code the kernel not seem to know about the > > configuration I created at point A, Is there something missing and any > > way to improve this code? > > > > 2) Actually I need to get up J2EE continer, OpenEJB and Jetty > > Contianers up using plans from the code. I think there are plans > > created already (I think it is in assembly) what are the plans I > > should load to get that three contianers up and in what order. > > Thanks > > Srinath > > > > p.s. my plan > > > > > > > xmlns="http://geronimo.apache.org/xml/ns/deployment" > > configId="test/plan1"> > > > > > > Hi > > > type="java.lang.String">geronimo.server: > > j2eeType=J2EEServer,name=geronimo > > > > > > > >