You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Rupinder Singh Mazara <rm...@masterfile.com> on 2006/06/27 21:10:30 UTC
accessing the bootstrap mechanism
hi all
while ofbiz is warming up i need to execute a query and cache the
results into some safe location.
what is the best mechanism to achieve this ?
i was think of assigning the resulting list from the query to the
globalContext , but the basic issue is where to place the query so that
it is executed at the startup of ofbiz
thanks
Re: accessing the bootstrap mechanism
Posted by "David E. Jones" <jo...@ofbiz.org>.
You can do things on startup with the containers stuff (mounted in ofbiz-containers.xml).
-David
Rupinder Singh Mazara wrote:
> hi all
>
> while ofbiz is warming up i need to execute a query and cache the
> results into some safe location.
>
> what is the best mechanism to achieve this ?
>
> i was think of assigning the resulting list from the query to the
> globalContext , but the basic issue is where to place the query so that
> it is executed at the startup of ofbiz
>
> thanks
>
>
>
>
Re: accessing the bootstrap mechanism
Posted by Rupinder Singh Mazara <rm...@masterfile.com>.
thank you David
David E. Jones wrote:
>
> In the serviceengine.xml file you can also use the startup-service
> element to execute services on startup.
>
> -David
>
> Rupinder Singh Mazara wrote:
>> hi all
>>
>> while ofbiz is warming up i need to execute a query and cache the
>> results into some safe location.
>>
>> what is the best mechanism to achieve this ?
>>
>> i was think of assigning the resulting list from the query to the
>> globalContext , but the basic issue is where to place the query so
>> that it is executed at the startup of ofbiz
>>
>> thanks
>>
>>
>>
>>
>
>
>
Re: accessing the bootstrap mechanism
Posted by "David E. Jones" <jo...@ofbiz.org>.
In the serviceengine.xml file you can also use the startup-service element to execute services on startup.
-David
Rupinder Singh Mazara wrote:
> hi all
>
> while ofbiz is warming up i need to execute a query and cache the
> results into some safe location.
>
> what is the best mechanism to achieve this ?
>
> i was think of assigning the resulting list from the query to the
> globalContext , but the basic issue is where to place the query so that
> it is executed at the startup of ofbiz
>
> thanks
>
>
>
>