[
https://issues.jboss.org/browse/JBAS-9278?page=com.atlassian.jira.plugin....
]
Scott Marlow commented on JBAS-9278:
------------------------------------
Cloned SerializableValidatorFactory and created
http://opensource.atlassian.com/projects/hibernate/browse/HV-460 requesting the Hibernate
validator project include a serializable validator factory.
The ExtendedEntityManager is serializable now. The easiest way to test, is running the
testsuite/integration after adding the following method to ExtendedEntityManager:
public void persist(Object entity) {
super.persist(entity);
try {
java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream();
java.io.ObjectOutput out = new java.io.ObjectOutputStream(bos);
out.writeObject(this);
byte[] yourBytes = bos.toByteArray();
} catch (Exception e) {
e.printStackTrace();
}
}
JPA support for Clustering
--------------------------
Key: JBAS-9278
URL:
https://issues.jboss.org/browse/JBAS-9278
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: JPA / Hibernate
Reporter: Scott Marlow
Assignee: Scott Marlow
Fix For: 7.0.0.CR1
As a quick test, I attempted to serialize an instance of EntendedEntityManager and the
first casualty was a NotSerializableException on
org.jboss.as.ee.beanvalidation.LazyValidatorFactory
http://pastie.org/1795594
After making the above serializable, then got:
NotSerializableException: org.hibernate.validator.engine.ValidatorFactoryImpl
Perhaps we need something like org.jboss.jca.core.bv.SerializableValidatorFactory
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira