Hi Bill. Thanx a lot for your answer.
anonymous wrote : How did you find out about this release? I haven't announced it yet. I found it on a pre-release download server of sourceforge.net. Normally, I don't use pre-releases in this way, asking for things which are not completely finished! (I beg your pardon.) But I have to present a software architecture concept, I've been working out, within the next two weeks at my department. And this one depends heavily on EJB3 and JBossAS. After I read about the things which will change in EJB3 final, I had to verify my concept, including a coding example, against the new specification. anonymous wrote : The answer to your question is here: | http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD | http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/entityconfig.html#referencing I've studied the docs mentioned above and I've corrected my persistence.xml but this does not help, I cannot get an EntityManager via JNDI lookup. <?xml version="1.0" encoding="UTF-8"?> | | <persistence> | <!-- Definition of a persistence unit --> | <persistence-unit name="LibraryDB1"> | <!-- Data Source name --> | <jta-data-source>java:/LibraryDB1</jta-data-source> | | <!-- Entity classes --> | <jar-file>../library.jar</jar-file> | | <properties> | <!-- JNDI entry to get the Entity Manager Factory via lookup --> | <property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManagerFactory" /> | <!-- JNDI entry to get the Entity Manager via lookup --> | <property name="jboss.entity.manager.jndi.name" value="java:/EntityManager" /> | | <!-- Database dialect to be used --> | <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> | <!-- Use update to keep already stored data --> | <property name="hibernate.hbm2ddl.auto" value="update" /> | </properties> | </persistence-unit> | </persistence> The following three JAR/WAR files are used: library.jar containing the entity classes Author and Article and the session bean class LibraryBean. library.war containing a servlet for web access. LibraryDB1.jar containing the persistence.xml mentioned above. When deploying LibraryDB1.jar the following error occurs: 10:24:56,216 FATAL [PersistenceXmlLoader] LibraryDB1 JTA For more details look inside my previous post. I have no idea what's wrong! Holger View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920609#3920609 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920609 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
