Continuing from above.
After launching the above persistence.xml, my domain.xml gets updated and the connection-pool looks likes this:
[i] <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" [b]datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" [/b]fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="mysql-pool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="user" value="root"/>
<property name="url" value="jdbc:mysql://localhost:3306/smallcompany"/>
<property name="password" value="root"/>
</jdbc-connection-pool>
[/i]
I changed my query into a native one:
Query q = em.createNativeQuery("select * from project");
I am getting the 'em', it is not null.
[b]the error I get now is this:[/b]
'at $Proxy127.getProjects(Unknown Source) ... 32 more '
seems that my 'logic/Project.class' , which is in my JAR, is
not deployed in the correct way
putting in my server.log and the jar-file which I deploy.
If someone brave out there could help to get this going, I would be glad.
regards, i
[Message sent by forum member 'inkimar' (inkimar)]
http://forums.java.net/jive/thread.jspa?messageID=241085