followed a bunch of examples, put persistence.xml in META-INF folder.
?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="alertnet2" transaction-type="RESOURCE_LOCAL"
provider>org.hibernate.ejb.HibernatePersistence</provider
jta-data-source>jdbc/mySQL</jta-data-source
class>com.ha.alertnet.user.PUserStx</class
properties
property name="hibernate.connection.url"
value="jdbc:mysql://10.10.10.115:3306/alertnet2"
property name="hibernate.connection.driver_class"
value="com.mysql.jdbc.Driver"/
property name="hibernate.connection.username" value="xxx"/>
<property name="jboss.entity.manager.jndi.name"
value="java:/PublicUserSession"/
/properties
/persistence-unit
/persistence
This is in the META-INF folder of a war file, but I have read in one post the persistence
unit in war file is not (yet) supported in jboss4.x ??
Is this why I am getting jndi-naming NameNotFoundException.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977732#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...