I use a servlet to load some global values. This accesses a couple of
tables and has the effect of initializing OJB, although that was not the
intention. The servlet is invoked when Tomcat starts up using
load-on-startup servlet attribute in web.xml
<servlet>
<servlet-name>InitServlet</servlet-name>
<servlet-class>org.mff.web.serv.InitServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
k jee wrote:
Is there a preferred way to initialized OJB when starting a web app?
Currently, on my system, OJB doesn't really load up until the first DB
related call.
Was wondering if there were some call I could make to an OJB
Factory class or whatever, to initialize OJB, other than making a call
that would invoke a query.
Thanks
---------------------------------
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]