Lakshan G
Lakshan G

Reputation: 366

Is it possible to store SQL database in Glassfish Server?

Currently, I'm working with a web-service which runs in the Glassfish server but I've been using my localhost/phpmyadmin/ to store the databases. Is it possible to store the database in the Glassfish server itself?

Upvotes: 3

Views: 329

Answers (3)

Vahid Vakily
Vahid Vakily

Reputation: 306

You can use whatever RDBMS database you want as long as you provide the jdbc driver for the connection to glassfish server You should put the jdbc driver in the glassfish domains and create a jdbc pool for it

In addition , for sql server you should enable tcp port ( by default : 1433)

Upvotes: 1

benuri_alwis
benuri_alwis

Reputation: 42

Yes it is possible. Use Java JDBC pool and create a connection then add the local database.

Upvotes: 0

Lakindu Gunasekara
Lakindu Gunasekara

Reputation: 4271

Yes you can store the databases in the glassfish server it self in the admin console.

Upvotes: 1

Related Questions