geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: How to start a plan from the Code
Date Fri, 03 Dec 2004 12:40:27 GMT
Srinath,

Any progress on this? 

Thanks,
dims


On Sat, 20 Nov 2004 09:25:43 +0600, Srinath Perera <hemapani@gmail.com> wrote:
> > 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
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <configuration
> > >     xmlns="http://geronimo.apache.org/xml/ns/deployment"
> > >     configId="test/plan1">
> > >      <!-- Use the default deployer -->
> > >     <gbean name="test:axis=gb1" class="GBean1">
> > >         <attribute name="attribute1">Hi</attribute>
> > >         <attribute name="attribute2"
> > > type="java.lang.String">geronimo.server:
> > > j2eeType=J2EEServer,name=geronimo</attribute>
> > >     </gbean>
> > > </configuration>
> > >
> >
> >
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Mime
View raw message