geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: Hi , how to starta a gbean , when server starts up
Date Fri, 28 Apr 2006 15:02:20 GMT
The only way to get GBeans into the server is to include them in a
Geronimo module (either an application, or a service module).  The
module needs to have a deployment plan that lists the GBeans as well
as any dependencies.  This is the same way all the core components of
Geronimo are installed -- they are included in modules like
j2ee-server, j2ee-system, etc.

If you deploy the module normally (either during server construction
or afterward) then your module (and the GBeans within it) will be
started when the server starts and stopped when the server stops,
unless you use one of the deployment tools to stop or undeploy the
module.

If you're building a server from scratch you'd probably want to use
Maven to build your module, the packaging plugin to package it into a
CAR file, and the assembly pluing to include that CAR file in the
server.  If you want to add your module to the server at any time
after the assembly plugin is run, you can just use the normal deploy
tool.

Thanks,
    Aaron

On 4/28/06, ahmed <man.geronimo@gmail.com> wrote:
>
> Thanks Sachin for your quick reply !!!.
>
> Let me try to be more clear .
> I am not looking to deploy the gbean manually , What iam interested is
> something like this ....
> while iam building the server from scratch , i want his gbean to be get
> added into the server as a service and when i start the server , it should
> be started automatically.
>
> Thanks ,
>
>
>
>
> On 4/28/06, Sachin Patel <sppatel2@gmail.com> wrote:
> > Hi,
> >
> > Deploying a service is pretty much done just like you are deploying a
> > j2ee application.  Provide a jar and a plan for it.  Take a look at
> > geronimo-config-1.1.xsd.  Your dependencies to other configurations
> > or jars can be defined in there.  Then using the command line
> > deployer your can deploy your service.
> >
> > deployer deploy /path/to/jar /path/to/plan.xml
> >
> > Also, I've found it helpful to look at the many examples available in
> > the configs directory from the root of the source tree.
> >
> > Hope that helps.
> >
> > - sachin
> >
> >
> >
> > On Apr 28, 2006, at 6:59 AM, Man wrote:
> >
> > > Hi ,
> > >
> > >     I like to clarify few things regarding gbean dependencies here :
> > >
> > >                   I have a gbean , with some dependencies and i
> > > need to start it as a independent service when server starts(i
> > > don't wanna it to go as a gbean into other's configurations) .
> > >
> > >                  can somebody educate me , how to go about having a
> > > gbean started when server starts and where do i mention the
> > > dependencies for this gbean.
> > >
> > > With Thanks,
> > >
> > >
> >
> >
>
>

Mime
View raw message