Details
-
Sub-task
-
Resolution: Won't Do
-
Blocker
-
None
-
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"
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.