You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by ian tabangay <it...@gmail.com> on 2012/08/22 06:10:47 UTC

Run service at ofbiz startup

Hi.

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

Thanks!
Ian Tabangay

Re: Run service at ofbiz startup

Posted by Jacques Le Roux <ja...@les7arts.com>.
Ha indeed read too fast before being really awake :D

Jacques

From: "ian tabangay" <it...@gmail.com>
> 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 <
> jacques.le.roux@les7arts.com> 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" <it...@gmail.com>
>>
>>  Hi.
>>>
>>> Is it possible to run a service in ofbiz everytime it starts up?
>>>
>>> Thanks!
>>> Ian Tabangay
>>>
>>>
>

Re: Run service at ofbiz startup

Posted by Leonard Lin <le...@gmx.net>.
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 <
> jacques.le.roux@les7arts.com> 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" <it...@gmail.com>
>>
>>   Hi.
>>> Is it possible to run a service in ofbiz everytime it starts up?
>>>
>>> Thanks!
>>> Ian Tabangay
>>>
>>>

-- 

Leonard Lin
Email:    leonard.lin@gmx.net

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


Re: Run service at ofbiz startup

Posted by ian tabangay <it...@gmail.com>.
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 <
jacques.le.roux@les7arts.com> 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" <it...@gmail.com>
>
>  Hi.
>>
>> Is it possible to run a service in ofbiz everytime it starts up?
>>
>> Thanks!
>> Ian Tabangay
>>
>>

Re: Run service at ofbiz startup

Posted by Jacques Le Roux <ja...@les7arts.com>.
https://cwiki.apache.org/confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service

Jacques

From: "ian tabangay" <it...@gmail.com>
> Hi.
> 
> Is it possible to run a service in ofbiz everytime it starts up?
> 
> Thanks!
> Ian Tabangay
>

Re: Run service at ofbiz startup

Posted by varun bhansaly <vb...@gmail.com>.
You can try configuring start-up services in
framework/service/config/serviceengine.xml.
See
http://svn.apache.org/repos/asf/ofbiz/trunk/framework/service/config/serviceengine.xml


On Wed, Aug 22, 2012 at 9:40 AM, ian tabangay <it...@gmail.com> wrote:

> Hi.
>
> Is it possible to run a service in ofbiz everytime it starts up?
>
> Thanks!
> Ian Tabangay
>



-- 
Regards,
Varun Bhansaly