]
Scott Marlow updated AS7-3022:
------------------------------
Comment: was deleted
(was: Might be a good idea to add the new DataSource methods that come with JDK7 so that
the wrapper will compile on jdk7.)
need to wrap org.jboss.jca.adapters.jdbc.WrapperDataSource with a
serializable DataSource
-----------------------------------------------------------------------------------------
Key: AS7-3022
URL:
https://issues.jboss.org/browse/AS7-3022
Project: Application Server 7
Issue Type: Sub-task
Components: JPA / Hibernate
Reporter: Scott Marlow
Assignee: Scott Marlow
Priority: Blocker
Fix For: 7.1.0.Final
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: