For the problem I wrote in 1), really I needed to create manually the file
glassfish-resources.xml, because NB 7.0 RC1/RC2 didn't create one.
This is glassfish-resources.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application
Server 3.1 Resource Definitions//EN"
"
http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>
<jdbc-connection-pool res-type="javax.sql.DataSource"
name="java:app/jdbc/sitesat2-pool"
datasource-classname="org.firebirdsql.jdbc.FBWrappingDataSource">
<property name="serverName" value="localhost" />
<property name="portNumber" value="3050" />
<property name="User" value="SYSDBA" />
<property name="Password" value="masterkey" />
<property name="dataBaseName" value="/sistemas/satbd/SATIflecha.GDB"
/>
<!--<property name="URL"
value="jdbc:firebirdsql:localhost/3050:/sistemas/satbd/SATIflecha.GDB?lc_ctype=ISO8859_1"
/>
<property name="driverClass" value="org.firebirdsql.jdbc.FBDriver"
/>-->
<property name="lc_ctype" value="ISO8859_1" />
<property name="JDBC30DataSource" value="true" />
</jdbc-connection-pool>
<jdbc-resource enabled="true" jndi-name="java:app/jdbc/sitesat2-ds"
object-type="user" pool-name="java:app/jdbc/sitesat2-pool"/>
<jdbc-connection-pool res-type="javax.sql.DataSource"
name="java:app/jdbc/sitesat2log-pool"
datasource-classname="org.firebirdsql.jdbc.FBWrappingDataSource">
<property name="serverName" value="localhost" />
<property name="portNumber" value="3050" />
<property name="User" value="SYSDBA" />
<property name="Password" value="masterkey" />
<property name="dataBaseName" value="/sistemas/satbd/SATIlog.GDB" />
<!--<property name="URL"
value="jdbc:firebirdsql:localhost/3050:/sistemas/satbd/SATIlog.GDB?lc_ctype=ISO8859_1"
/>
<property name="driverClass" value="org.firebirdsql.jdbc.FBDriver"
/>-->
<property name="JDBC30DataSource" value="true" />
</jdbc-connection-pool>
<jdbc-resource enabled="true" jndi-name="java:app/jdbc/sitesat2log-ds"
object-type="user" pool-name="java:app/jdbc/sitesat2log-pool"/>
</resources>
And this is persistence.xml (changed for GF 3.1):
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="
http://java.sun.com/xml/ns/persistence"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="sitesat2PU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<!--<jta-data-source>sitesat2</jta-data-source>-->
<jta-data-source>java:app/jdbc/sitesat2-ds</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.archive.autodetection" value="class,
hbm"/>
<property name="hibernate.dialect"
value="org.hibernate.dialect.FirebirdDialect"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.format_sql" value="false"/>
<property name="hibernate.use_sql_comments" value="false"/>
</properties>
</persistence-unit>
<persistence-unit name="sitesat2logPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<!--<jta-data-source>sitesat2log</jta-data-source>-->
<jta-data-source>java:app/jdbc/sitesat2log-ds</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.archive.autodetection" value="class,
hbm"/>
<property name="hibernate.dialect"
value="org.hibernate.dialect.FirebirdDialect"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.use_sql_comments" value="false"/>
</properties>
</persistence-unit>
</persistence>
--
[Message sent by forum member 'edilmar']
View Post: http://forums.java.net/node/792893