Re: Run service at ofbiz startup

2012-08-22 Thread Jacques Le Roux

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

Jacques

From: ian tabangay itaban...@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

2012-08-22 Thread Leonard Lin

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-nameyourservlet/servlet-name
servlet-classcom.something.YourServlet/servlet-class
load-on-startup1/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.r...@les7arts.com wrote:


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

Jacques

From: ian tabangay itaban...@gmail.com

  Hi.

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

Thanks!
Ian Tabangay




--

Leonard Lin
Email:leonard@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

2012-08-22 Thread varun bhansaly
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 itaban...@gmail.com wrote:

 Hi.

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

 Thanks!
 Ian Tabangay




-- 
Regards,
Varun Bhansaly