First off, I'm pretty new to JBoss. I'm using jboss-4.0.1sp1. I'm writing a fairly simple application and I want to run a servlet that will initialize my hibernate configuration. I think the way to do this is by running a servlet on startup in Jboss. However, I'm not sure how to do this. I think I'm looking for the equivalent to what exists in Tomcat's web.xml file where you can specify <load-on-startup>5</load-on-startup> inside a servlet element.
Since JBoss uses Tomcat as the servlet container, load-on-startup in the web.xml should work. It is a J2EE standard feature.