>  <persistence-unit name="CasPersistence"
> transaction-type="RESOURCE_LOCAL">

Typically you need to use a JTA data source and JTA-managed
transactions when deploying CAS in a JEE container.  Following is a
sample persistence.xml from one of our JEE apps we deploy in JBoss,
which shows how to configure a JTA data source.

<persistence 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";
   version="1.0">
  <persistence-unit name="vtregistry" transaction-type="JTA">
    <jta-data-source>java:/XAOracleDS</jta-data-source>
    <properties>
      <property name="jboss.entity.manager.factory.jndi.name"
                value="ejb/ed/EntityManagerFactory"/>
      <property name="jboss.entity.manager.jndi.name"
                value="ejb/ed/EntityManager"/>
    </properties>
  </persistence-unit>
</persistence>

M

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to