Run service at ofbiz startup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Run service at ofbiz startup

ian tabangay
Hi.

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

Thanks!
Ian Tabangay
Reply | Threaded
Open this post in threaded view
|

Re: Run service at ofbiz startup

Jacques Le Roux
Administrator
https://cwiki.apache.org/confluence/display/OFBIZ/How+to+run+OFBiz+as+a+Service

Jacques

From: "ian tabangay" <[hidden email]>
> Hi.
>
> Is it possible to run a service in ofbiz everytime it starts up?
>
> Thanks!
> Ian Tabangay
>
Reply | Threaded
Open this post in threaded view
|

Re: Run service at ofbiz startup

ian tabangay
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 <
[hidden email]> 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" <[hidden email]>
>
>  Hi.
>>
>> Is it possible to run a service in ofbiz everytime it starts up?
>>
>> Thanks!
>> Ian Tabangay
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Run service at ofbiz startup

Leonard Lin-2
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 <
> [hidden email]> 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" <[hidden email]>
>>
>>   Hi.
>>> Is it possible to run a service in ofbiz everytime it starts up?
>>>
>>> Thanks!
>>> Ian Tabangay
>>>
>>>

--

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

Reply | Threaded
Open this post in threaded view
|

Re: Run service at ofbiz startup

Jacques Le Roux
Administrator
In reply to this post by ian tabangay
Ha indeed read too fast before being really awake :D

Jacques

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

> 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 <
> [hidden email]> 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" <[hidden email]>
>>
>>  Hi.
>>>
>>> Is it possible to run a service in ofbiz everytime it starts up?
>>>
>>> Thanks!
>>> Ian Tabangay
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Run service at ofbiz startup

Varun Bhansaly
In reply to this post by ian tabangay
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 <[hidden email]> wrote:

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



--
Regards,
Varun Bhansaly