Hi:

Sonny Sukumar dijo:
>
> That is very interesting, Antonio.  How were able to achieve that?  Are
> each  of your apps connecting to separate dbs?

Right. Every application has its own database 4 databases and 1 server
(locahost). I am using postgres.

<advertise>
http://www.postgresql.org/
</advertise>

I didn't nothing weird. Deployed Cocoon and I changed the web.xml to tell
Tomcat I will use postgreSQL JDBC. Then I setup the conection in
cocoon.xconf, that is all.

Here is the snip of my web.xml:

<init-param>
  <param-name>load-class</param-name>
    <param-value>
      <!-- For parent ComponentManager sample:
        org.apache.cocoon.samples.parentcm.Configurator
      -->
      <!-- For IBM WebSphere: com.ibm.servlet.classloader.Handler -->
      <!-- For PostgreSQL Database Driver: -->
        org.postgresql.Driver
    </param-value>
</init-param>

************************************
In my cocoon.xconf I wrote:

<!--..... Start configuration from 'datasources' -->
  <datasources>
    <jdbc logger="core.datasource.pla_pool" name="pla_pool">
      <pool-controller max="20" min="5"/>
        <dburl>jdbc:postgresql://localhost:5432/database1</dburl>
        <user>myuser</user>
        <password>mypasword</password>
    </jdbc>
  </datasources>
<!--..... End configuration from 'datasources' -->

**************************************

Of course I change the <dburl> acording to the datasource i need to use.

I hope it will help you.

Best Regards,

Antonio Gallardo



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

Reply via email to