[jira] Commented: (OWB-447) unnecessary contextual/non-contextual distinction in OpenWebBeansEJBIntercpetor

2010-09-21 Thread Eric Covener (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913269#action_12913269
 ] 

Eric Covener commented on OWB-447:
--

I don't know how I managed it,  but I marked this resolved on 9/7 but it's 
really resolved today with r999653 -- sorry

> unnecessary contextual/non-contextual distinction in 
> OpenWebBeansEJBIntercpetor
> ---
>
> Key: OWB-447
> URL: https://issues.apache.org/jira/browse/OWB-447
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Enterprise Web Beans
>Affects Versions: 1.0.0-alpha-2
>Reporter: Eric Covener
>Assignee: Eric Covener
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> The separation between contextual and non-contextual is wrong/harmful and 
> unnecessary.  
> * We should be managing a CreationalContext for the lifetime of the 
> interceptor instance and using that for dependent instanes
> * We should not rely on the thread-locals beyond @PostConstruct 
> * Method invocations on non-contextual EJB's must be decoratable

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OWB-447) unnecessary contextual/non-contextual distinction in OpenWebBeansEJBIntercpetor

2010-09-07 Thread Gurkan Erdogdu (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907101#action_12907101
 ] 

Gurkan Erdogdu commented on OWB-447:


This sounds reasonable

> unnecessary contextual/non-contextual distinction in 
> OpenWebBeansEJBIntercpetor
> ---
>
> Key: OWB-447
> URL: https://issues.apache.org/jira/browse/OWB-447
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Enterprise Web Beans
>Affects Versions: 1.0.0-alpha-2
>Reporter: Eric Covener
>Assignee: Eric Covener
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> The separation between contextual and non-contextual is wrong/harmful and 
> unnecessary.  
> * We should be managing a CreationalContext for the lifetime of the 
> interceptor instance and using that for dependent instanes
> * We should not rely on the thread-locals beyond @PostConstruct 
> * Method invocations on non-contextual EJB's must be decoratable

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OWB-447) unnecessary contextual/non-contextual distinction in OpenWebBeansEJBIntercpetor

2010-09-07 Thread Eric Covener (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907018#action_12907018
 ] 

Eric Covener commented on OWB-447:
--

re: referencing thread-locals beyond @PostConstrut, we already need to do 
_something_ different since the threadlocal CC will be lost during 
serialization.  

One option then is to spill this into a local variable in @PostConstruct, but 
going down this path it becomes clear to me that the better scheme is to create 
a CC in @PostConstruct and use it for all intereptors/decorators.  This 
exploits the fact that the EJB container calls @PostConstrut/@PreDestroy quite 
carefully depending on the lifecyle of the underlying EJB.

> unnecessary contextual/non-contextual distinction in 
> OpenWebBeansEJBIntercpetor
> ---
>
> Key: OWB-447
> URL: https://issues.apache.org/jira/browse/OWB-447
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Enterprise Web Beans
>Affects Versions: 1.0.0-alpha-2
>Reporter: Eric Covener
>Assignee: Eric Covener
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> The separation between contextual and non-contextual is wrong/harmful and 
> unnecessary.  
> * We should be managing a CreationalContext for the lifetime of the 
> interceptor instance and using that for dependent instanes
> * We should not rely on the thread-locals beyond @PostConstruct 
> * Method invocations on non-contextual EJB's must be decoratable

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OWB-447) unnecessary contextual/non-contextual distinction in OpenWebBeansEJBIntercpetor

2010-09-07 Thread Eric Covener (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906766#action_12906766
 ] 

Eric Covener commented on OWB-447:
--

>>>Method invocations on non-contextual EJB's must be decoratable 
>>Where this requirement is specified? AFAIK, decroations are available for 
>>CDI-299 beans, not for non-contextuals

the clauses in 7.2 add up to decoratable EJB business method calls even when 
not made through a contextual reference.

> unnecessary contextual/non-contextual distinction in 
> OpenWebBeansEJBIntercpetor
> ---
>
> Key: OWB-447
> URL: https://issues.apache.org/jira/browse/OWB-447
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Enterprise Web Beans
>Affects Versions: 1.0.0-alpha-2
>Reporter: Eric Covener
>Assignee: Eric Covener
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> The separation between contextual and non-contextual is wrong/harmful and 
> unnecessary.  
> * We should be managing a CreationalContext for the lifetime of the 
> interceptor instance and using that for dependent instanes
> * We should not rely on the thread-locals beyond @PostConstruct 
> * Method invocations on non-contextual EJB's must be decoratable

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OWB-447) unnecessary contextual/non-contextual distinction in OpenWebBeansEJBIntercpetor

2010-09-06 Thread Gurkan Erdogdu (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906685#action_12906685
 ] 

Gurkan Erdogdu commented on OWB-447:


>>>* We should be managing a CreationalContext for the lifetime of the 
>>>interceptor instance and using that for dependent instanes 
Where you see the problem? We managed CeationalContext per instance that also 
contains interceptors and other dependents.

>>>We should not rely on the thread-locals beyond @PostConstruct ?
What is the problem  that you see?

> unnecessary contextual/non-contextual distinction in 
> OpenWebBeansEJBIntercpetor
> ---
>
> Key: OWB-447
> URL: https://issues.apache.org/jira/browse/OWB-447
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Enterprise Web Beans
>Affects Versions: 1.0.0-alpha-2
>Reporter: Eric Covener
>Assignee: Eric Covener
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> The separation between contextual and non-contextual is wrong/harmful and 
> unnecessary.  
> * We should be managing a CreationalContext for the lifetime of the 
> interceptor instance and using that for dependent instanes
> * We should not rely on the thread-locals beyond @PostConstruct 
> * Method invocations on non-contextual EJB's must be decoratable

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OWB-447) unnecessary contextual/non-contextual distinction in OpenWebBeansEJBIntercpetor

2010-09-06 Thread Gurkan Erdogdu (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906684#action_12906684
 ] 

Gurkan Erdogdu commented on OWB-447:


>>>Method invocations on non-contextual EJB's must be decoratable 
Where this requirement is specified? AFAIK, decroations are available for 
CDI-299 beans, not for non-contextuals

> unnecessary contextual/non-contextual distinction in 
> OpenWebBeansEJBIntercpetor
> ---
>
> Key: OWB-447
> URL: https://issues.apache.org/jira/browse/OWB-447
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Enterprise Web Beans
>Affects Versions: 1.0.0-alpha-2
>Reporter: Eric Covener
>Assignee: Eric Covener
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> The separation between contextual and non-contextual is wrong/harmful and 
> unnecessary.  
> * We should be managing a CreationalContext for the lifetime of the 
> interceptor instance and using that for dependent instanes
> * We should not rely on the thread-locals beyond @PostConstruct 
> * Method invocations on non-contextual EJB's must be decoratable

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OWB-447) unnecessary contextual/non-contextual distinction in OpenWebBeansEJBIntercpetor

2010-09-06 Thread Eric Covener (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906602#action_12906602
 ] 

Eric Covener commented on OWB-447:
--

we also need to avoid adding the underlying ejb instance 
(ejbcontext.getTarget()) as keys into dependent creational contexts.

> unnecessary contextual/non-contextual distinction in 
> OpenWebBeansEJBIntercpetor
> ---
>
> Key: OWB-447
> URL: https://issues.apache.org/jira/browse/OWB-447
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Enterprise Web Beans
>Affects Versions: 1.0.0-alpha-2
>Reporter: Eric Covener
>Assignee: Eric Covener
>   Original Estimate: 16h
>  Remaining Estimate: 16h
>
> The separation between contextual and non-contextual is wrong/harmful and 
> unnecessary.  
> * We should be managing a CreationalContext for the lifetime of the 
> interceptor instance and using that for dependent instanes
> * We should not rely on the thread-locals beyond @PostConstruct 
> * Method invocations on non-contextual EJB's must be decoratable

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.