You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Falko Modler (JIRA)" <ji...@apache.org> on 2015/11/05 12:26:27 UTC
[jira] [Created] (DELTASPIKE-1018) Automatic RequestScope
activation for @MBean invocations
Falko Modler created DELTASPIKE-1018:
----------------------------------------
Summary: Automatic RequestScope activation for @MBean invocations
Key: DELTASPIKE-1018
URL: https://issues.apache.org/jira/browse/DELTASPIKE-1018
Project: DeltaSpike
Issue Type: Improvement
Components: Core
Affects Versions: 1.0.2
Reporter: Falko Modler
Priority: Minor
When a {{@JmxManaged}} method is called (via jconsole for instance) on a CDI-Bean which has been registered as a MBean via {{@MBean}} annotation, the RequestScope is not active.
It would be handy if RequestScope could be actived automatically, perhaps configurable via a new {{@MBean}} attribute and/or {{apache-deltaspike.properties}}.
Workaround: Implement and register an Interceptor which actives/deactivates the scope via {{ContextControl}} around the method invocation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)