continuent.org JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: SEQUOIA-837
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jeff Mesnil
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sequoia

Make macro list configurable per DB types

Created: 31/Oct/06 10:37 AM   Updated: 11/Jan/07 02:29 PM
Return to search
Component/s: Core
Affects Version/s: None
Fix Version/s: Sequoia 3.0 beta3

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description   
For Sequoia 3.0, we want to have a more tunable macro handler (only for random and date macros) so that Sequoia can adapt to the macros specific to a DB types (random/date macros for MySQL are slightly different from macros for PostgreSQL).

In the current HEAD, this list of macros is defined in the LoadBalancer section of the VDB XML file.
However, it is less that satisfactory since the list of macros for a given DB must be repeated in each and every VDB XML files which uses a given DB type.

We should remove the macros definition from the VDB XML (and its DTD) and make it possible in Sequoia to configure this macro list for each DB type outside of VDB definition so that the usage of macros will be transparent to Sequoia users in most cases.

The proposed implementation is to have a simple properties file for each DB types where we will list the macros for the given DB type.
Then, when loading a VDB XML file, for each new database backend, we will use the DB prefix of its JDBC url (e.g. mysql) to load the corresponding macro list and add these macros to the VDB's LoadBalancer.
If we can't load a corresponding properties file, the DatabaseBackend won't be created and the VDB won't be loaded.

The only caveat of this approach is that the users will have to create a properties file for each DB type they use. However with the help of the Sequoia community, it should be possible to include these files for most of the DB used by the community directly in Sequoia CVS.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.