Skip to main content

Connection Pool for Pervasive V11

7 replies [Last post]
alan_314
Offline
Joined: 2006-11-08
Points: 0

Hi,

I'am trying to create a connection pool to a Pervasive v11 database on Glassfish v3.1.1 so far without much success. Can anyone point to some documentation regarding Resource Type, Datasource Classname and the required properties.

The only reference I can find in the forums is http://forums.java.net/jive/thread.jspa?messageID=213369 which returns a page not found

Regards

Alan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rjdkolb
Offline
Joined: 2006-07-20
Points: 0

Hi Alan

On 18 October 2012 20:36, wrote:

> Hi, I'am trying to create a connection pool to a Pervasive v11 database on
> Glassfish v3.1.1 so far without much success. Can anyone point to some
> documentation regarding Resource Type, Datasource Classname and the
> required
> properties. The only reference I can find in the forums is
> http://forums.java.net/jive/**thread.jspa?messageID=213369which returns a page
> not found Regards Alan
>

1) Can you connect to the Pervasive database using plain old JDBC ?

I see the driver is a type 4 driver. So you don't need operating specific
libraries.
http://www.pervasivedb.com/Documents/readme_jdbc_v10.htm
http://www.pervasivedb.com/support/Pages/PSQLSDK-Archives.aspx

2) What errors are you getting ?

regards
Richard

alan_314
Offline
Joined: 2006-11-08
Points: 0

Hi Richard

In answer to questions.

1. Yes I can connect via the plain JDBC
2. The error I was getting was an unknown host exception.
On doing some more investigation, I found the pervasive drivers didn't use the 'URL' property as is the case for MySQL. So I added some additional properties :-
serverName
portNumber
databaseName

And now I have my connection pool working.

For reference I used
Resource Type: javax.sql.DataSource
Datasource Classname: com.pervasive.jdbc.v2.DataSource

Thanks
Alan

rjdkolb
Offline
Joined: 2006-07-20
Points: 0

Hi Alan

That's great news.
Can you please give the exact settings.

I can send it to the right person (I think) that can put it in the
Glassfish documentation.

I think Anissa Lam was interested in this back in the FishCAT days.
She was interested in the admin console and connection pools if I recall
correctly.

regards
Richard.

On 1 November 2012 20:10, wrote:

> Hi Richard In answer to questions. 1. Yes I can connect via the plain JDBC
> 2.
> The error I was getting was an unknown host exception. On doing some more
> investigation, I found the pervasive drives didn't use the 'URL' property
> as
> is the case for MySQL. So I added some additional properties :- serverName
> portNumber databaseName And now I have my connection pool working. For
> reference I used Resource Type: javax.sql.DataSource Datasource Classname:
> com.pervasive.jdbc.v2.**DataSource Thanks Alan
>
>
> --
>
> [Message sent by forum member 'alan_314']
>
> View Post: http://forums.java.net/node/**891571
>
>
>

alan_314
Offline
Joined: 2006-11-08
Points: 0

Hi Richard,

Sorry for the delay but here are the settings,

Resource Type: javax.sql.DataSource
Datasource Classname: com.pervasive.jdbc.v2.DataSource

Additional Properties
driverClass: com.pervasive.jdbc.v2.Driver
portNumber: 1583
databaseName: live_db
serverName: server04
user: glassfish
password: whatever

I hope this helps

Regards

Alan

rjdkolb
Offline
Joined: 2006-07-20
Points: 0

Hi Alan

Thanks very much

regards
Richard

On 14 November 2012 20:17, wrote:

> Hi Richard, Sorry for the delay but here are the settings, Resource Type:
> javax.sql.DataSource Datasource Classname: com.pervasive.jdbc.v2.**
> DataSource
> Additional Properties driverClass: com.pervasive.jdbc.v2.Driver portNumber:
> 1583 databaseName: live_db serverName: server04 user: glassfish password:
> whatever I hope this helps Regards Alan
>
>
> --
>
> [Message sent by forum member 'alan_314']
>
> View Post: http://forums.java.net/node/**891571
>
>
>

alan_314
Offline
Joined: 2006-11-08
Points: 0

Anyone?

alan_314
Offline
Joined: 2006-11-08
Points: 0

Any Suggestions?

bump..