jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "ConnectionPooling" by MartijnHendriks
Date Thu, 17 Dec 2009 14:13:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "ConnectionPooling" page has been changed by MartijnHendriks.
http://wiki.apache.org/jackrabbit/ConnectionPooling?action=diff&rev1=2&rev2=3

--------------------------------------------------

  
  The components can be configured in the same way as before via the repository descriptor
(also see ConfigurationOverview and [[http://jackrabbit.apache.org/jackrabbit-configuration.html|Jackrabbit
configuration]]). The components that have the same database URL, driver and user will share
the same connection pool (with an unlimited number of connections). Thus, existing deployments
can easily be migrated to use pooling: The only change needed is to replace any bundle persistence
manager class by it's twin brother from the pooling package.
  
- A new configuration element has been added to the repository descriptor: the ''Data``Sources''
element in which you can explicitly configure one or more pooling data sources. Each ''Data``Source''
has a logical name which can be used in the configuration of the above mentioned components.
Here is an example:
+ A new configuration element has been added to the repository descriptor: the ''Data``Sources''
element in which you can explicitly configure one or more pooling data sources. Each ''Data``Source''
has a logical name which can be used in the configuration of the above mentioned components.
Here follows an example.
+ 
+ '''Note:''' the ''logicalName'' parameter of the ''Data``Source'' element has been replaced
by the ''name'' attribute as of 2.0-beta5.
  
  {{{
  <?xml version="1.0"?>
  <Repository>
      <DataSources>
-         <DataSource>
+         <DataSource name="ds1">
-             <param name="logicalName" value="ds1"/>
              <param name="driver" value="oracle.jdbc.driver.OracleDriver" />
              <param name="url" value="jdbc:oracle:thin:@localhost:1521:xe" />
              <param name="schema" value="oracle" />

Mime
View raw message