[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3523) org.jboss.seam.persistence.Filter should be Serializable
Shane Bryzak (JIRA)
jira-events at lists.jboss.org
Tue Oct 7 04:40:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list