Config file or database?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Config file or database?

Scott.
Hi All,

Is there a specific reason why the smtp server information is in a config file versus the database? Can anyone see a reason that I should not change it? I would just like to make it easier to edit from a UI.
Reply | Threaded
Open this post in threaded view
|

Re: Config file or database?

Scott.
Anyone have an opinion?


Scott A wrote
Hi All,

Is there a specific reason why the smtp server information is in a config file versus the database? Can anyone see a reason that I should not change it? I would just like to make it easier to edit from a UI.
Reply | Threaded
Open this post in threaded view
|

Re: Config file or database?

jonwimp
Scott,

SMTP server info doesn't change very often for a single entity (eg company or organization). It's
just easiest to put that in a config file.

If OFBiz is set up to serve multiple entities, then putting SMTP info into database will be worth
the effort.

If you want to edit SMTP info from a UI, you should put it into database.

Jonathon

Scott A wrote:

> Anyone have an opinion?
>
>
>
> Scott A wrote:
>> Hi All,
>>
>> Is there a specific reason why the smtp server information is in a config
>> file versus the database? Can anyone see a reason that I should not change
>> it? I would just like to make it easier to edit from a UI.
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Config file or database?

David E Jones

On a somewhat relevant side note: we have already established (in some mailing list discussions) an objective to move many of the configuration values in properties files in to the database. These would be business related, ie non-technical settings (ie no database settings or JMS server settings or cache, debug, etc settings).

Part of the reason for this is we want to eventually have some data files for different industries where you can just grab OFBiz, load the data files for the variation you want, and boom you're ready to go.

-David


Jonathon -- Improov wrote:

> Scott,
>
> SMTP server info doesn't change very often for a single entity (eg
> company or organization). It's just easiest to put that in a config file.
>
> If OFBiz is set up to serve multiple entities, then putting SMTP info
> into database will be worth the effort.
>
> If you want to edit SMTP info from a UI, you should put it into database.
>
> Jonathon
>
> Scott A wrote:
>> Anyone have an opinion?
>>
>>
>>
>> Scott A wrote:
>>> Hi All,
>>>
>>> Is there a specific reason why the smtp server information is in a
>>> config
>>> file versus the database? Can anyone see a reason that I should not
>>> change
>>> it? I would just like to make it easier to edit from a UI.
>>>
>>
>