Right. This is the way I use for multiple db and it works.

Howard


> -----Original Message-----
> From: Jonathan Porterfield [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 18, 2001 6:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple DBs
> 
> 
> I would like to append a little to this question, since it is 
> on the same 
> topic and I have been snooping extensively around the 
> relevant dtd's today.  
> Per the dtd, it is possible to create more than one database 
> per app-data 
> (document).
> 
> In other words this type of schema description is possible:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE app-data SYSTEM "database.dtd" >
> <app-data>
>   <database>
>     <table>
>       <column/>
>     </table>
>   </database>
>   <database>
>     <table>
>       <column/>
>     </table>
>   </database>
> </app-data>
> 
> Is this correct?
> 
> Would this properly generate not only both databases, but 
> their respective 
> peers classes?
> 
> Humh...
> 
> >From: <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: Multiple DBs
> >Date: Tue, 18 Sep 2001 17:58:17 -0300
> >
> >I'm trying to make my project work with more than one DB...
> >I've been told that I could change the method doBuild( ) in 
> my *MapBuilder 
> >classes....
> >
> >It was exactly what I did ....
> >
> >dbMap = TurbineDB.getDatabaseMap("curriculum");
> >
> >And I created a new database entry in my conf file
> >
> >database.curriculum.driver=org.postgresql.Driver
> >database.curriculum.url=jdbc:postgresql://postgresql.ibnetwor
> k.com.br:5432/curriculum
> >
> >
> >I got the following exception:
> >
> >
> >[Tue Sep 18 17:39:31 GMT-03:00 2001] -- ERROR -- 
> Turbine.handleException: 
> >null
> >  Exception:  java.lang.NullPointerException
> >  Stack Trace follows:
> >  java.lang.NullPointerException
> >  at 
> >org.apache.turbine.util.db.Criteria.containsObjectColumn(Crit
> eria.java:393)
> >  at org.apache.turbine.om.peer.BasePeer.doSelect(BasePeer.java:1111)
> >  at 
> >br.com.ibnetwork.ib.om.BasePessoaPeer.doSelectVillageRecords(
> BasePessoaPeer.java:265)
> >  at 
> >br.com.ibnetwork.ib.om.BasePessoaPeer.doSelect(BasePessoaPeer
> .java:235)
> >
> >
> >
> >Atenciosamente,
> >
> >Diogo Saad.
> >[EMAIL PROTECTED]
> >Inter Business Tecnologia e Servi�os
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to