I need a startup class for weblogic which instantiates some classes.Is it mandatory that startup should always have the public static void main() method?
Write a class called StartupServlet which extends GenricServlet.
In the init method instanciate all the class which you want to load.
In the web.xml use following tag.
<
servlet>
<servlet-name>Startup Servlet</servlet-name>
<servlet-class>StartupServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>