]
Shane Bryzak closed JBSEAM-3523.
--------------------------------
Fix Version/s: 2.1.0.GA
Resolution: Done
Assignee: Shane Bryzak
Fixed.
org.jboss.seam.persistence.Filter should be Serializable
---------------------------------------------------------
Key: JBSEAM-3523
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3523
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.3.CR1, 2.1.0.CR1
Environment: RHEL Linux, JBoss 4.2.2 (two node cluster behind Apache), Seam
2.0.3.CR1, Oracle 10g
Reporter: Nikolay Elenkov
Assignee: Shane Bryzak
Fix For: 2.1.0.GA
When I install a Hibernate filter, configured via components.xml in a
<distributable/> webapp, I get a
NotSerializableException: org.jboss.seam.persistence.Filter
when session is replicated.
The Filter class should be Serializable to be usable in a cluster environment.
I have something like this:
components.xml:
<component name="entityManager" auto-create="true"
precedence="20"
class="MyCustomPersistenceContext">
<property
name="persistenceUnitJndiName">java:/foobar/EntityManagerFactory</property>
<property name="filters">
<value>#{activeFoo}</value>
</property
</component>
<persistence:filter name="activeFoo" auto-create="true">
<persistence:name>activeFooFilter</persistence:name>
</persistence:filter>
Entity:
@Entity
public class Bar implements Serializable {
@OneToMany
@Filter(name = "activeFooFilter", condition = "deleted = 0")
public Set<Foo> getFoos() {
return foos;
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: