How to load ATG component on Server startup?

When you start up an application, Nucleus reads the configuration path. The out-of-the-box DAS module has (/DAS/config/config.jar/Nucleus.properties) Nucleus.properties component.

Component path: /nucleus/
$class=atg.nucleus.Nucleus
# the default initially resolved service
initialServiceName=/Initial

The initialServiceName property instructs Nucleus to configure and start up its initial service using Initial.properties

Component path: /nucleus/Initial
Configuration: /nucleus/Initial/?propertyName=serviceConfiguration
$class=atg.nucleus.InitialService
initialServices=\
        atg/dynamo/service/PerformanceMonitor,\
/atg/Initial,\
VMSystem,\
/atg/dynamo/StartServers,\
        /atg/dynamo/server/ServerMonitor


In nucleus, to start any custom component at start up(when ATG server starts), Layer /nucleus/Initial.properties as below:

initialServices+=\
                /atg/search/CustomEndecaDimIdCacheService

1 comment:

  1. This blog is really helpful to deliver updated educational affairs over internet which is really appraisable. I found one successful example of this truth through this blog. I am going to use such information now. Growth Hacking

    ReplyDelete