Executing some custom code when server starts up.

Hi all.How can I execute some custom code, when the server starts up?Exactly, how can I make some custom configuration for my enterprise application as a code executed when the SJS AS server starts up, and then have access to it from application?Thanks.
[281 byte] By [Ar@la] at [2007-10-3 11:19:28]
# 1

I'm not sure if this will do exacty what you want, but the app server allows you to deploy a lifecycle module which is started up when the app server starts up and is notified during shutdown as well.

It is not by itself a mechanism for EJBs to learn of app server start-up and shutdown, but you might be able to use a life cycle module and your EJBs together to accomplish what you want to do.

Read this section of the documentation and see if this might help meet your needs.

http://docs.sun.com/app/docs/doc/819-3659/6n5s6m5b0?a=view

- Tim

tjquinna at 2007-7-15 13:44:12 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...