[weld-issues] [JBoss JIRA] Commented: (WELD-80) Passivation of stateful session beans results in a loss of reference to injected object

2011-03-23 Thread Pete Muir (JIRA)

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

Pete Muir commented on WELD-80:
---

Should still "just work" I think without any spec language, but would be worth 
testing...

Did you take a look at our test, can you enhance it to show your issue? Or add 
another one? If you set the timeouts very low (there are annotations for the 
passivation timeout) and use a thread.sleep it should work (albeit it is very 
fragile).

> Passivation of stateful session beans results in a loss of reference to 
> injected object
> ---
>
> Key: WELD-80
> URL: https://issues.jboss.org/browse/WELD-80
> Project: Weld
>  Issue Type: Bug
>  Components: Scopes & Contexts
> Environment: JBoss AS 5.1
>Reporter: John Ament
> Fix For: TBC
>
> Attachments: statefulpassivate.zip
>
>
> See forum post

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues


[weld-issues] [JBoss JIRA] Commented: (WELD-80) Passivation of stateful session beans results in a loss of reference to injected object

2011-03-22 Thread John Ament (JIRA)

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

John Ament commented on WELD-80:


Pete, maybe this is the discrepancy.  What if the EJB has no CDI beans in it, 
and is injected to the bean via @EJB?

> Passivation of stateful session beans results in a loss of reference to 
> injected object
> ---
>
> Key: WELD-80
> URL: https://issues.jboss.org/browse/WELD-80
> Project: Weld
>  Issue Type: Bug
>  Components: Scopes & Contexts
> Environment: JBoss AS 5.1
>Reporter: John Ament
> Fix For: TBC
>
> Attachments: statefulpassivate.zip
>
>
> See forum post

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues


[weld-issues] [JBoss JIRA] Commented: (WELD-80) Passivation of stateful session beans results in a loss of reference to injected object

2011-03-22 Thread Pete Muir (JIRA)

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

Pete Muir commented on WELD-80:
---

I don't think there is any spec issue here, a passivated EJB with CDI services 
should just work. All the spec could add would be "it should work". What were 
you thinking of explicitly?

> Passivation of stateful session beans results in a loss of reference to 
> injected object
> ---
>
> Key: WELD-80
> URL: https://issues.jboss.org/browse/WELD-80
> Project: Weld
>  Issue Type: Bug
>  Components: Scopes & Contexts
> Environment: JBoss AS 5.1
>Reporter: John Ament
> Fix For: TBC
>
> Attachments: statefulpassivate.zip
>
>
> See forum post

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues


[weld-issues] [JBoss JIRA] Commented: (WELD-80) Passivation of stateful session beans results in a loss of reference to injected object

2011-03-21 Thread John Ament (JIRA)

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

John Ament commented on WELD-80:


I'll need to review the test a bit more, but I am able to reproduce this in AS 
6.

In the ejb3 aop xml file, set the timeout low (the default is 5 minutes, that's 
enough).
Set the session timeout in web.xml high (60 minutes).

In a session scoped bean, create a reference to a local SFSB.  make an initial 
request, then wait 5-10 minutes.  The EJB will passivate, then on next 
invocation of the session scoped bean attempt to access the SFSB.  This may be 
more of a spec issue though, the more I think about it.  CDI scope and EJB 
passivation need to be linked.

> Passivation of stateful session beans results in a loss of reference to 
> injected object
> ---
>
> Key: WELD-80
> URL: https://issues.jboss.org/browse/WELD-80
> Project: Weld
>  Issue Type: Bug
>  Components: Scopes & Contexts
> Environment: JBoss AS 5.1
>Reporter: John Ament
> Fix For: TBC
>
> Attachments: statefulpassivate.zip
>
>
> See forum post

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues


[weld-issues] [JBoss JIRA] Commented: (WELD-80) Passivation of stateful session beans results in a loss of reference to injected object

2011-03-21 Thread Pete Muir (JIRA)

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

Pete Muir commented on WELD-80:
---

John, we think with AS6 Final this should be much improved. Could you give it a 
spin and let us know what issues you hit?

> Passivation of stateful session beans results in a loss of reference to 
> injected object
> ---
>
> Key: WELD-80
> URL: https://issues.jboss.org/browse/WELD-80
> Project: Weld
>  Issue Type: Bug
>  Components: Scopes & Contexts
> Environment: JBoss AS 5.1
>Reporter: John Ament
> Fix For: TBC
>
> Attachments: statefulpassivate.zip
>
>
> See forum post

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues


[weld-issues] [JBoss JIRA] Commented: (WELD-80) Passivation of stateful session beans results in a loss of reference to injected object

2011-03-21 Thread Pete Muir (JIRA)

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

Pete Muir commented on WELD-80:
---

Test is 
org.jboss.weld.tests.enterprise.EnterpriseBeanTest.testPassivationOfEjbs(HelloAction)

> Passivation of stateful session beans results in a loss of reference to 
> injected object
> ---
>
> Key: WELD-80
> URL: https://issues.jboss.org/browse/WELD-80
> Project: Weld
>  Issue Type: Bug
>  Components: Scopes & Contexts
> Environment: JBoss AS 5.1
>Reporter: John Ament
> Fix For: TBC
>
> Attachments: statefulpassivate.zip
>
>
> See forum post

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues