Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Cache driver as JDBC Connection Pool #29

Open
sysmat opened this issue Jul 10, 2019 · 2 comments
Open

Using Cache driver as JDBC Connection Pool #29

sysmat opened this issue Jul 10, 2019 · 2 comments

Comments

@sysmat
Copy link

sysmat commented Jul 10, 2019

Is it possible to configure in glassfish?

How to add properties to mysql driver and how to add properties for cache driver?

Regards, Tomaž

@sysmat
Copy link
Author

sysmat commented Jul 10, 2019

  • I put cache jar to glassfish lib folder
  • this is my glassfish configuration:
Resource Type:  javax.sql.XADataSource
Datasource Classname:  com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
cache.driver.class: com.mysql.jdbc.Driver
cache.driver.url: jdbc:mysql://localhost:3306/test
user: test
password: test
serverName: localhost
databaseName: test

I don't know how to tell cache to use file or memory cache?
I don't know how to check if cache is actually working?

@sysmat
Copy link
Author

sysmat commented Jul 10, 2019

in issue #24 (Using Cache driver as Datasource) it is not clear url and URL, are this two different properties?

cache.driver.URL - is controlling cache file or memory
cache.driver.url - is connection to database

I don't understand how to connect mysql driver and cache driver

Regards, Tomaž

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant