I need to execute a servlet of the Application on startup to perform some Data Retrieval Tasks. How can i achieve teh same using BEA Weblogic Server?] What settings need to be set?
Think about ServletContextListeners, there are methods contextInitialized and contextDestroyed. I guess you could use contextInitialized for your purpose. Hope this helps...
A servlet is designed to respond to a request from the client, so using one for startup tasks is not really a good use of the technology. A context listener, as Chandra suggested, would be more approriate. [ February 27, 2006: Message edited by: Bear Bibeault ]
If your container supports Servlet Spec 2.3 or better, follow Bear's advice and use a ContextListener.
Prior to that we had to use the <load-on-startup> attribute of the servlet entry in order to get a spec compliant way to execute startup code in a servlet app. From the looks of the last post, BEA has some proprietary ways of dealing with this as well.
Since you specifically asked about BEA solutions, I'll move this to the BEA forum where the Weblogic gurus hang out.