Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2076 serialization of extended persistence context
  3. AS7-3022

need to wrap org.jboss.jca.adapters.jdbc.WrapperDataSource with a serializable DataSource

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Won't Do
    • Blocker
    • 7.1.0.Final
    • None
    • JPA / Hibernate
    • None

    Description

      I'm trying to serialize a extended persistence context from a test case
      but
      org.jboss.jca.core.connectionmanager.AbstractConnectionManager.writeObject
      throws a "java.io.IOException: This method is not supported"

      See http://pastie.org/3012563

      The org.hibernate.ejb.EntityManagerImpl session, has a
      org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.

      The
      org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess,
      has a org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.

      The org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider,
      has a reference to a org.jboss.jca.adapters.jdbc.WrapperDataSource

      the WrapperDataSource has:

      • org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory
      • org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl
      • and other stuff that also might not be serializable.

      Attachments

        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: