[jboss-dev-forums] [Design of EJB 3.0] - Re: trunk Ejb3Deployment is incompatible with jbossas trunk
scott.stark@jboss.org
do-not-reply at jboss.com
Thu Jun 5 20:01:02 EDT 2008
The PersistenceUnitParsingDeployer has been moved into the jbossas/ejb3 module as JBoss5PersistenceUnitParsingDeployer:
| package org.jboss.ejb3.deployers;
|
| import org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer;
| import org.jboss.metadata.jpa.spec.PersistenceMetaData;
|
| /**
| * Find and parse persistence.xml.
| *
| * In a jar:
| * META-INF/persistence.xml
| *
| * In a war (JPA 6.2):
| * WEB-INF/classes/META-INF/persistence.xml
| *
| * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
| * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
| * @version $Revision: 72433 $
| */
| public class JBoss5PersistenceUnitParsingDeployer extends SchemaResolverDeployer<PersistenceMetaData>
| {
| public JBoss5PersistenceUnitParsingDeployer()
| {
| super(PersistenceMetaData.class);
| setName("persistence.xml");
| setRegisterWithJBossXB(true);
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156150#4156150
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156150
More information about the jboss-dev-forums
mailing list