[jboss-jira] [JBoss JIRA] (WFLY-6383) Entities using Extended PersistentContext are not managed

Rakesh K. Cherukuri (JIRA) issues at jboss.org
Thu Mar 17 09:54:00 EDT 2016


    [ https://issues.jboss.org/browse/WFLY-6383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178486#comment-13178486 ] 

Rakesh K. Cherukuri commented on WFLY-6383:
-------------------------------------------

UPDATE:
Just to rule out the possibility, tried with same code but with following

No @SessionScoped
No @Inject (replaced with JDNI lookup inside servlet doGet())
Added @Remove method in the bean
Have servlet doGet() invoke @Remove once it is done with calling other 2 methods
Result : Same issue. Entity is not managed after first service call

> Entities using Extended PersistentContext are not managed
> ---------------------------------------------------------
>
>                 Key: WFLY-6383
>                 URL: https://issues.jboss.org/browse/WFLY-6383
>             Project: WildFly
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 10.0.0.Final
>         Environment: WildFLy 10.0.0.Final
> Mac
>            Reporter: Rakesh K. Cherukuri
>              Labels: Extended, JPA, Persistence, PersistenceContext
>         Attachments: AtInjectedStatefulEjbClient.java, CdiStatefulEmployeeBean.java
>
>
> Entities using Extended PersistentContext are not managed in a Stateful bean.
> Attached are the bean class and the client servlet class



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list