Many thanks everyone for your hints.
Adding the component-load.xml worked.

I think we could add the following text to the readme.txt file in the
hot-deploy directory:

======
The hot-deploy Auto-Loading feature loads all components in the order they
are found (i.e. alphabetic or creation date).

If you need a specific loading order of these components than you should
disable the Auto-Loading feature by creating a component-load.xml file in
the hot-deploy directory and use the load-component tag to load your
component in the order you want (just use the component-load.xml file in the
application folder as a template).
======

WDYT?

-Bruno


2011/2/19 Scott Gray <scott.g...@hotwaxmedia.com>

> There is an unimplemented <depends-on> tag in ofbiz-component.xsd that I've
> been meaning to add support for which would solve this problem.  It's not a
> trivial implementation though because at the moment components are loaded as
> they are located while this feature would require them all to be located
> first and then reordered and loaded.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 19/02/2011, at 5:31 AM, Bruno Busco wrote:
>
> > Hi,
> > is in the framework any tool to set the order in which the hot-deploy
> > components are loaded?
> > I have created two components in the hot-deploy folder.
> >
> > The first component loads some extseed in the database and the second
> > component loads some other extseed that depends on the first one.
> >
> > Unfortunately the order on which they are loaded when I use the ant
> > run-install-extseed command is the alphabetic order and the second one is
> > loaded before the first resulting in a foreign-key error.
> >
> > How can I fix this?
> >
> > Thank you,
> > Bruno
>
>

Reply via email to