[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1787) Injecting a Hibernate session with @PersistenceContext causes ClassCastException with the Seam Interceptor

Pete Muir (JIRA) jira-events at lists.jboss.org
Sun Dec 2 12:25:09 EST 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1787?page=all ]

Pete Muir closed JBSEAM-1787.
-----------------------------


> Injecting a Hibernate session with @PersistenceContext causes ClassCastException with the Seam Interceptor
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-1787
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1787
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: EJB3
>    Affects Versions: 2.0.0.BETA1
>            Reporter: Alex Grönholm
>         Assigned To: Pete Muir
>            Priority: Minor
>             Fix For: 2.0.0.CR1
>
>
> SessionBeanInterceptor assumes that the field annotated with @PersistenceContext is of type EntityManager.
> However, some containers, most notably JBoss AS, support injection of delegates such as Hibernate sessions.
> While I don't have the faintest idea why the interceptor needs to proxy persistence contexts, but at the very least it should check the type with instanceOf before casting it to EntityManager.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the seam-issues mailing list