Alexey Ousov schrieb am 18.11.2008 um 16:19:23 (+0700):
> JNDI configuration in > Tomcat 5.5 [...]

> <Resource name="jdbc/ODEdatabaseConnection" auth="Container" 
> scope="Shareable"
>  factory="org.apache.naming.factory.BeanFactory"
>  type="org.firebirdsql.pool.FBConnectionPoolDataSource"
>  userName="***" password="***"
>  database="M:\Lib\__Data\firebird\TE-FULL.gdb" pooling="false"/>
> 
> Everything is fine, except I need to pass another one property to
> FBConnectionPoolDataSource, and unfortunately this property is named
> "setType(String)", but I cannot have two attributes named "type" in
> one element. While using old syntax with <ResourceParams.../> it was
> possible. Is it possible to pass "type" property with new syntax?

First, I'm not sure the class FBConnectionPoolDataSource is intended to
be used directly. At least, it doesn't seem to be part of the documented
API.

Second, the following works for me using Tomcat 6.0.18 and JayBird
2.1.6:

In "C:\Programme\Firebird\Firebird_1_5\aliases.conf":

  test = C:\data\Firebird\test.fdb

In "context.xml":

  <Resource name="jdbc/firebird/test"
   auth="Container"
   type="javax.sql.DataSource"
   driverClassName="org.firebirdsql.jdbc.FBDriver"
   username="bla" password="blub"
   url="jdbc:firebirdsql:127.0.0.1:test" />

You can also put the connection parameters in the URL. like this:

  <Resource name="jdbc/firebird/test"
   auth="Container"
   type="javax.sql.DataSource"
   driverClassName="org.firebirdsql.jdbc.FBDriver"
   url="jdbc:firebirdsql:localhost:test?userName=bla&amp;password=blub"/>

You should be able to add any number of parameters you want to the URL,
including the "type" parameter. Note that when writing the URL in the
XML, you must escape the ampersand as "&amp;".

The following URL might also help:

http://www.atlassian.com/software/jira/docs/v3.13/databases/firebird.html

Third, the following should be the best place to ask:

http://tech.groups.yahoo.com/group/Firebird-Java/

I hope this helps.

Michael Ludwig

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to