ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Sykes <and...@sykesdevelopment.com>
Subject Re: multiple websites configuration
Date Thu, 05 Oct 2006 10:18:44 GMT

I'd warn against modifying the ofbiz-component.xml inside ecommerce.

This is both unnecessary and means you're mixing your code and OFBiz
code which will lead to difficulties if you need to do an upgrade.

There is a directory specifically for bespoke applications called "hot-
deploy". You can use the ecommerce application as a starting point for
your new app. Simply copy the ecommerce app into hot-deploy change the
mount point, application name etc and you will have a second

You'll notice that the controller.xml for this new app refers to
artifacts in the original ecommerce app, for example...
<view-map name="ViewRequest" type="screen"

Note "component://ecommerce". You can therefore remove everything from
the new ecommerce directories that are simply duplicates of the original
ecommerce code. This means that you now will only have copies of
original ecommerce code where you have had to make specific changes,
let's say the new app was called "newecommerce", you would reference
like this...

Once you have your app setup, you can decide whether you need to simply
mount each app to a different place
e.g. /newecommerce1 /newecommerce2 /newecommerce3 etc, which would be
fine if you were using OFBiz in conjunction with Apache, or if it's
standalone, you might want to use the virtualhost stuff.

I hope that helps clarify.
Kind Regards
Andrew Sykes <andrew@sykesdevelopment.com>
Sykes Development Ltd

View raw message