RE: Starting a keel/avalon component/model automatically

"Louis Moore" <[email protected]> Thu, 15 Jul 2004 16:12:29 -0700
Newsgroups gmane.comp.java.keel.user
Message-ID <C5E6D04B7C014946B7CCBFC2AF30DB62C096DD@corpmail01.corp.walmart.com>
You can define activation for a component in its system.xconf file. If
you want it to startup when the server does, do something like this (I'm
not sure but you might be able to do it in the metadata for your class
instead as well):

<keel>

<my-component id="my-component-id" activation="startup"
logger="my-component-logger">
</my-component>

</keel>

hth,
Lou

-----Original Message-----
From: user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org
[mailto:user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org] On Behalf
Of maxxam-cuDQgYkrLFxfAa1EqD/[email protected]
Sent: Thursday, July 15, 2004 2:55 PM
To: user-keelframework.org-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org
Subject: [Keel User] Starting a keel/avalon component/model
automatically

Hi,

I have an application which receives JMS messages (from an external
system) which in turn needs to call a keel model/s. I have a class that
implements the JMS queue receive and I need this class to start up
automatically after the server is started. At present I am starting it
by
manually opening a jsp page that calls a keel model which in turn
instantiates my object.

I have tried implementing the Startable interface hoping that
Avalon/keel
will start my component for me - I really don't have a good idea at all
about how this Avalon stuff works! No luck so far.

I guess that it is possible to start components automatically as the
quartz scheduler somehow starts up but I can't figure out how it manages
to do this.

Can anyone help please.
Max
_______________________________________________
User mailing list
[email protected]
http://lists.keelframework.org/listinfo.cgi/user-keelframework.org