Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

Database Connection not working in my application

$
0
0

Hello everyone,

I am coming from jboss and there it was kind of easy to install the database connection for my enterprise application.

I followed the instructions from this site
http://dev.mysql.com/doc/refman/5.0/en/connector-j-usagenotes-glassfish-...

and everything seems to be ok. The ping is also working.

Then I created the persistence.xml inside my ejb project under META-INF
with this content:

<?xml version="1.0" encoding="UTF-8"?>

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">

jdbc/houseautomation

But when I start the server, nothing happens. On Jboss the tables will be created. I don't get any errors or exceptions but also nothing happens.

Did I forget something?

I am not quite sure about the name:

jdbc/houseautomation

Inside glassfish I named it also jdbc/houseautomation. Do I need to add a prefix like java: ? I tried that also without any luck.

Many greetings,
Hauke


Viewing all articles
Browse latest Browse all 1091

Trending Articles