users@glassfish.java.net

Re: persistence.xml file

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 16 Jul 2007 16:30:27 +0530

Your persistence.xml file looks OK. /provider/ does not change with type
of database. The default value should work for you.What error are you
getting? Supply the error message along with the exception stack trace.

-- Sahoo

glassfish_at_javadesktop.org wrote:
> hi
> I am developing simple EJB application.
> Application Server;Sun Java application server
> Database:MS SQL Server2000 i am using.
>
> following is the code snippet for persistence.xml,
>
> <?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="EJBCustomerPU" transaction-type="JTA">
> <jta-data-source>cust</jta-data-source>
> <properties>
> </properties>
> </persistence-unit>
> </persistence>
>
> at the time of deploying i am getting error,
>
> i want to know is there any changes i need to do in persistence.xml file
>
> what <provider></provider> shld be used for MS SQL Server database
>
> please help me in this
> [Message sent by forum member 'shruthifcg' (shruthifcg)]
>
> http://forums.java.net/jive/thread.jspa?messageID=226733
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>