Hi,
Ok, this work, but parameter database-name is ignored. Try this:
<data-source class-name="com.codestudio.sql.PoolManDataSource">
     <params  />
</data-source>

Its work too :). Castor just make new PoolManDataSource(). And
database-name param is ignored.

Thanks.

-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 10, 2002 1:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] DataSource Parameters


> "Alexey A. Efimov" wrote:
> 
> Hello,
> 
> I have question for DataSource xml setup in database.xml:
> ...
> <datasource class-name="acme.MyDataSource">
>   <params param1="value1" param2="value2" ... />
> </datasource>
> ...
> 
> Where are put those parameters (param1="value1" param2="value2")? I 
> see class DataSource from jdo.conf But in DataSourceDescription said 
> that params is element and nothing else -> Just check existings of 
> this tag and do
> Class.forName(className).newInstance() to get DataSource 
> implementation. But where
> 
> adding parameters? My parameters are ignored... I just may describe
only 
> tag <params /> and Castor create new DataSource.
> 
> But for:
> <data-source class-name="oracle.jdbc.pool.OracleConnectionCacheImpl">
>   <params URL="jdbc:oracle:thin:@localhost:1521:TEST" user="SYSTEM" 
> password="manager"/> </data-source>
> 
> Castor set this parameters and type to console "Setting user name and 
> password ...".
> 
> I want for correctly use PoolManDataSource.
> It have two constructors - default and PoolManDataSource(String 
> poolName, String jndiName). Can I say to Castor to use second 
> Constructor?
> 
> If ansver is no, can you explain how paramerers from tag params come 
> to OracleConnectionCacheImpl without Unmarshalling (I suppose that 
> unmarshalling not happened besoce in classes DataSource and 
> DataSourceDescriptor keep sillence about this)?
> 
> PS.
> Yesterday, in descussion about PoolMan I say that PoolMan can include 
> into Castor by this:
>   <data-source class-name="com.codestudio.sql.PoolManDataSource">
>     <params database-name="oraclepool" />
>   </data-source>
> 
> But, this work and for:
>   <data-source class-name="com.codestudio.sql.PoolManDataSource">
>     <params />
>   </data-source>
> and for:
>   <data-source class-name="com.codestudio.sql.PoolManDataSource">
>     <params database-name="blblbbllasasd" />
>   </data-source>
> 
> PoolMan just get first pool... If you use only one pool you not
affected 
> by this, but if pools are many ... poolman use always first :(
> 
 

Alexey, 

It seems to me that the database descriptor you've show above should 
work just fine. Here's a working example of using a PoolManDataSource 
with Castor: 

        http://castor.exolab.org/list-archive/msg11212.html

It is exacle what you've listed above. 

Bruce

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to