I don't know if there is an official ofbiz way to do this,
but the components are all standard webapps, so you should be able to
use those mechanisms.
Create a component and deploy it to hot-deploy.
In that components web.xml configure
either: javax.servlet.ServletContextListener
<listener>
<listener-class>
com.something.YourServlet
</listener-class>
</listener>
or simply a startup-servlet:
<servlet>
<servlet-name>yourservlet</servlet-name>
<servlet-class>com.something.YourServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
On 8/22/2012 00:23, ian tabangay wrote:
--
Leonard Lin
Email:
[hidden email]
1136 N Larrabee Street, Apt 425
West Hollywood, CA 90069
Phone: +1 (213) 249 3260
Am Pfisterhölzli 2
CH - 8606 Greifensee
Switzerland
Phone: +41 (0)79 416 01 07