Next staff I made 2 datasources of glassfish !!!! Where the first is a fixed database !!! Here is the image:
Thisdatasourceisworkingcorrectly!!!
MysecondIdonotpasstheDatabasepropertybecausethispropertycomesfrommyfirstdatasource,ie,Igetthepathandipoftheserverfromthefirstdatasource!!
Here'sapicture:
SoIpassownershipontomyConnectionclasswhenIcreatetheEMF
Here'sapicture:
The problem is that it does not take ownership of the database and gives the following error: Caused by: java.sql.SQLException: Database was not specified. Can not provide connections.
Can anyone help me?