Hi Dan,
The app initialization tasks may take some time, depending on what needs
to be done.  For example, on startup:

1) It may check if external systems are alive, and gather some data
about those resources.
2) It may contact other resources to let them know that this resource is
alive.
3) It may initialize global objects that must exist before any resources
can access them (i.e. for collecting statistics).
4) Must initialize one service group so that clients may starting making
requests to it.

Putting these initialization tasks in a capability is risky because it
can possibly be called by a client if the capability is exposed somehow.


Also, I'm finding that when the application starts up, it doesn't
actually initialize any resources until the first client request is sent
to it.  If this is the case, then the first request will always take the
longest.  I'm not sure if this is a bug because I thought at least one
resource must automatically be initialized on app startup, way before
requests are handled.
-Vinh
 

-----Original Message-----
From: Daniel Jemiolo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 16, 2006 8:52 AM
To: [email protected]
Subject: Re: app initialization tasks

I guess it depends on what your initialization tasks are. If you can be
a bit more specific about what you want to do, I can advise on where to
insert the code.

Dan


"Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> wrote on 11/15/2006
09:19:40 PM:

> Does Muse have a place where initialization tasks can be invoked upon 
> app startup?  So far, the samples have these tasks done in the 
> capability classes, since the capabilities are intialized when the 
> resources are initialized.  But, I'm not sure if this is the proper 
> place to be doing such tasks.
> 
> Or, is this the responsibility of the Axis2 container to invoke the 
> app's initialization classes, if Axis2 has such a feature?
> -Vinh


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to