You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2015/06/04 02:35:38 UTC
[jira] [Comment Edited] (OWB-1081) check Reception.IF_EXISTS in
case of an inactive context
[ https://issues.apache.org/jira/browse/OWB-1081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14571898#comment-14571898 ]
Gerhard Petracek edited comment on OWB-1081 at 6/4/15 12:34 AM:
----------------------------------------------------------------
in ObserverMethodImpl#notify
{code}
Context context;
try
{
context = manager.getContext(component.getScope());
}
catch (ContextNotActiveException cnae)
{
if (!ifExist) //only this check is new
{
// this may happen if we try to e.g. send an event to a @ConversationScoped bean from a ServletListener
logger.log(Level.INFO, OWBLogConst.INFO_0010, bean);
}
return;
}
{code}
was (Author: gpetracek):
in ObserverMethodImpl#notify
{code}
Context context;
try
{
context = manager.getContext(component.getScope());
}
catch (ContextNotActiveException cnae)
{
if (!ifExist) //only this check is new
{
// this may happen if we try to e.g. send an event to a @ConversationScoped bean from a ServletListener
logger.log(Level.INFO, OWBLogConst.INFO_0010, bean);
}
return;
}
{code}
> check Reception.IF_EXISTS in case of an inactive context
> --------------------------------------------------------
>
> Key: OWB-1081
> URL: https://issues.apache.org/jira/browse/OWB-1081
> Project: OpenWebBeans
> Issue Type: Improvement
> Components: Events
> Affects Versions: 1.6.0
> Reporter: Gerhard Petracek
> Assignee: Mark Struberg
> Fix For: 1.6.1
>
> Attachments: OWB-1081.patch
>
>
> if Reception.IF_EXISTS is used, observers with inactive contexts should be ignored completely. currently info INFO_0010 gets logged.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)