Jostein Ulseth

Centralized provider configuration for RMAs

Discussion created by Jostein Ulseth on Feb 12, 2009
Latest reply on Feb 12, 2009 by Andrei Palskoi



I am developing an RMA that in part relies on custom providers that retrieves data from a database (for example unique numbering of elements using sequences, key/value pairs from code tables etc).


My current solution to database connection string handling is to pass this as an argument to the provider, which seems like an ok solution to keep the provider generic and reusable. However; I am not sure how to enable centralized configuration of such values, so that even if I have two or more database-backed providers, I can change the connection string in only one place when for example moving the RMA from a development environment to a production environment.


I obviously try to limit this problem by creating global provider instances, which I reuse in template definitions, but I still have several different provider implementations.


Any thoughts/ideas?





Message Edited by Jostein on 12-02-2009 03:20 PM