[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3523) org.jboss.seam.persistence.Filter should be Serializable

Nikolay Elenkov (JIRA) jira-events at lists.jboss.org
Mon Oct 6 23:39:20 EDT 2008


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.1.0.CR1, 2.0.3.CR1
         Environment: RHEL Linux, JBoss 4.2.2 (two node cluster behind Apache), Seam 2.0.3.CR1, Oracle 10g
            Reporter: Nikolay Elenkov


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