The ofbiz-containers.xml file in /base/
If you create a class that implements org.ofbiz.base.container and register it 
in the containers file like this:
<container name="my-java-thread-container" 
class="my.custom.container.MyJavaThreadContainer"/>
then ofbiz will call init(...) and start() on your class during startup and 
then stop() during shutdown.

The containers are loaded in the order they are listed in the file.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 18/09/2010, at 6:37 PM, saravanan6 wrote:

> 
> Hi scott,
> 
>           Can u tell me abt how to register my java thread class in
> ofbiz-containers.xml?
> 
> Acutually, we have 2 ofbiz containers in the ofbiz folder. which one  i want
> to use?
> 
> Location1 : framework/base/config/ofbiz-container.xml
> Location2 : framework/appserver/config/ofbiz-container.xml
> 
> i am new to ofbiz,,, so, plz explain your thoughts little bit easy ?
> 
> 
> Thanks for your reply and also expecting too
> 
> Thanks & Regards,
> P.SARAVANAN
> 
> -- 
> View this message in context: 
> http://ofbiz.135035.n4.nabble.com/how-to-automatically-invoke-the-java-file-whenever-ofbiz-starts-tp2543570p2544783.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to