Hey all,

there is a consistency problem within Turbine in that it is possible to have multiple
DatabaseMap's for a given DBBroker, but it isn't possible to have those multiple 
DatabaseMap's
point to the same connection pool.

For instance, in BasePeer.doDelete():

DatabaseMap dbMap = DBBroker.getInstance().getDatabaseMap( criteria.getDbName() );
...some code here...
 db = DBBroker.getInstance().getConnection( criteria.getDbName() );

In this case, the dbMap and the connection name must be "default" by default.

What if I wanted essentially to use both Turbine's database tables + another set of 
database
tables? I would have to extend Turbine's DatabaseMapBuilder because I could only have 
one
DatabaseMapBuilder...but say that I want my own version of the Visitor tables....

Maybe I'm just confused, but essentially, I see the problem in 
DBBroker.getDatabaseMap() not
really allowing for much more than the DEFAULT map name.

My end goal is that I want to combine Turbine's DatabaseMapBuilder with my own
DatabaseMapBuilder and be able to reference it as one. I'm totally confused about how 
to make
this happen. 

Frank, John, can you help me out here?

-jon

-- 
Scarab -
      Java Servlet Based - Open Source 
         Bug/Issue Tracking System
        <http://scarab.tigris.org/>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to