Configuration Persisisntece.xml with datasource Glassfish

1

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?

    
asked by anonymous 28.04.2016 / 22:50

0 answers