Hi,

For postgresql we just add it to the dbAlias attribute
        Eg. Dbalias="//myserver.example.com?ssl" to use a ssl connection
Following the same logic you could use something like 
        
dbAlias="//myserver.example.com?charSet=Big5&prop2=value2&prop3=value3"

Good luck,

Rob :)


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 24 May 2004 6:27 a.m.
> To: [EMAIL PROTECTED]
> Subject: Additional properties for connection.
> 
> hello, all!
> 
> Is it possible to specify some additional properties, that 
> should be used for creation the connection in OJB?
> 
> For example, I need to create connection something like this:
> 
> // Load the JDBC-ODBC bridge driver
>        Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ;
>  
>        // setup the properties 
>        java.util.Properties prop = new java.util.Properties();
>        prop.put("charSet", "Big5");
>        prop.put("user", username);
>        prop.put("password", password);
>  
>        // Connect to the database
>        con = DriverManager.getConnection(url, prop);
> 
> How can I specify in repository.xml some additional 
> properties (like charSet in prop object) for connection?
> Or it is impossible?
> 
> Best Regards,
> Alexey Kakunin
> Project Manager
> PIKOS GmbH
> Post Str. 24
> 53111 Bonn
> 
> Tel: +49 30 43 72 92-30
> Fax: +49 30 43 72 92-30
> 

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

Reply via email to