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:
Thanks Jacques for replying but that wasnt what I was asking. I wanted
execute a service of ofbiz everytime ofbiz starts. Is there a way to
configure a service to behave that way?

Thanks!
Ian Tabangay

On Wed, Aug 22, 2012 at 3:12 PM, Jacques Le Roux <
[email protected]> wrote:

https://cwiki.apache.org/**confluence/display/OFBIZ/How+**
to+run+OFBiz+as+a+Service<https://cwiki.apache.org/confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service>

Jacques

From: "ian tabangay" <[email protected]>

  Hi.
Is it possible to run a service in ofbiz everytime it starts up?

Thanks!
Ian Tabangay



--

Leonard Lin
Email:    [email protected]

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

Reply via email to