Barracuda initializeLocal Question....

Kirk Daries <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <D09B591872D1D611AF2B0010B5A1AAD05D4211@WCSMAIL>
Hi Guys,

Quick question.
Is there a mechanism to fire 'events' during my initializeLocal method
withing my ApplicationGateway...

I'm not sure if there is a mechanism already.. or a better way...

Here's what I'd like to do.

E.g. 

public void initializeLocal() {
  super.initializeLocal();
  
  //Startup configuration...
  .
  .
  .
  //Done Setting up the Servlet

  //Now I'd like to notify all interested event listeners 
  //that the servlet has done starting up.

  //If so.. then go and do their own mini initializations..
  // database stuff and what not..

  //Pseudo Code Follows here...
  Have 2 Events and Listeners...specified in my ApplicationAssembler XML

  ServeletStartupComplete.Event
  and After_StartupComplete.Event which extends
ServeletStartupComplete.Event

  Get the EventQueue...
  Add After_StartupComplete.Event to the queue
  Let Barracuda process the queue and all interested listeners
  //End Pseudo Code
  
The idea is that I'd like all interested listeners to 
listen for ServeletStartupComplete.Event.

This way.. when I add the After_StartupComplete.Event..the queue should
process all the
waiting listeners..

Regards
KD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.