[
https://issues.jboss.org/browse/AS7-2076?page=com.atlassian.jira.plugin.s...
]
Scott Marlow commented on AS7-2076:
-----------------------------------
switched to a new branch
https://github.com/scottmarlow/jboss-as/tree/cluster4
Currently, I'm hitting a classloading problem during deserialization. The TCCL is the
JPA module. I have the app module identifier and need to load the app module classloader
with it (don't know how yet). And then switch the TCCL to that.
Also need to add a new Hibernate property (hibernate.entity_manager_factory_name) for
HHH-6897 and use that same property in AS7. This will specify the EMF name, so it can be
looked up. The other part of the HHH-6897 change is defaulting the EMF name to the PU
name (which we will override with the fully application scoped PU name).
I need to investigate AS7-2703, to see if there is any work there for us.
serialization of extended persistence context
---------------------------------------------
Key: AS7-2076
URL:
https://issues.jboss.org/browse/AS7-2076
Project: Application Server 7
Issue Type: Task
Components: JPA / Hibernate
Affects Versions: 7.1.0.Alpha1
Reporter: Scott Marlow
Assignee: Scott Marlow
Priority: Blocker
Fix For: 7.1.0.Final
Currently, SFSBXPCMap directly references ExtendedEntityManager. ExtendedEntityManager
implements the extended persistence context (contains a direct reference of the underlying
persistence context.
To support serialization. SFSBXPCMap should instead reference the XPC via an uuid (or
something like that), that can be used to get the XPC (if SFSB is in activated state).
Note EJB 3.1 specification section 4.2.1 titled Instance Passivation and Conversational
State:
"
A container must not passivate a stateful session bean with an extended persistence
context unless the
following conditions are met:[9]
* All the entities in the persistence context are serializable.
* The EntityManager is serializable.
[9] The container is not permitted to destroy a stateful session bean instance because it
does not meet these requirements.
"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira