cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <>
Subject Re: cocoon userdocs/xsp/esql.html
Date Wed, 06 Feb 2002 08:38:42 GMT
On 05.Feb.2002 -- 11:34 PM, Conrad Wood wrote:
> you refer to a database connection
> 'ConnectionName' in the Example and a
> note 'ConnectionName' is defined is
> cocoon.xconf.
> I spent the last day trying to figure out how
> to add this to cocoon.xconf. Can you add a link
> to how to do this on the sample-page?

Conrad, have a close look at the sample cocoon.xconf. There's one
database connection defined as "personnel":

  <!-- Datasources:
    <jdbc name="personnel" logger="core.datasources.personnel">
          If you have an Oracle database, and are using the the
      pool-controller below, you should add the attribute
      "oradb" and set it to true.

      <pool-controller min="5" max="10" oradb="true"/>

      That way the test to see if the server has disconnected
      the JdbcConnection will function properly.
      <pool-controller min="5" max="10"/>
          If you need to ensure an autocommit is set to true or
      false, then create the "auto-commit" element below.


      The default is true.

I believe the semantics of this should be pretty obvious (to someone
familiar with jdbc, but esql doesn't free you from that). To define a
new database connection, add another <jdbc/> block.

If for some reason you don't want to use these connection pools, you
may as well specify on your xsp:

	Pool not used:




C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message