Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5764

add jpa global settings for VFS, extended persistence context inheritance type (deep versus shallow)

    XMLWordPrintable

Details

    Description

      The VFS option is set to false to enable FILE based URLS to be passed to the persistence provider at deployment time (see javax.persistence.spi.PersistenceUnitInfo). The default is true, which enables VFS based URLS to be used. Some persistence providers may need jboss.as.jpa.vfs to be false, for application deployments to be (successfully) scanned for entity classes. Also see doc about adding the "org.jboss.as.jpa.vfs" property to the persistence unit (which overrides the global default VFS setting).

      The extended persistence inheritance type, controls how JPA extended persistence context (XPC) inheritance is performed. XPC inheritance only occurs between stateful session beans used within the same EJB3 thread. This might be a stateful bean that injects other stateful beans (directly or via JNDI lookup).

      With DEEP extended persistence inheritance, the extended persistence context is always shared at the top most stateful bean level. Even if the top level bean does not have an extended persistence context, sub-beans (siblings) will share the extended persistence context (requiring fewer copies of entities to be loaded).

      With SHALLOW extended persistence inheritance, the extended persistence context is only shared between a stateful bean and its parent bean. This means that sibling stateful beans with the same parent bean, will have isolated persistence contexts (assuming the parent bean doesn't have an extended persistence context).

      Attachments

        Issue Links

          Activity

            People

              smarlow1@redhat.com Scott Marlow
              smarlow1@redhat.com Scott Marlow
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: