[
https://issues.jboss.org/browse/JBESB-3724?page=com.atlassian.jira.plugin...
]
Tom Cunningham resolved JBESB-3724.
-----------------------------------
Resolution: Done
Interceptors can now be configured - the user should implement
org.jboss.soa.esb.listeners.message.PipelinInterceptor and configured the interceptors
with the interception points within jbossesb-properties.xml.
I've added interception points at service instantiation, service start, service end,
and service failure (see the properties below).
The PipelineInterceptor is passed a message and a ConfigTree. Please note that in the
case of the instantiation interceptor, no message has been passed in to the pipeline yet,
so a null message is passed back to the interceptor.
<properties name="interceptors">
<property name="org.jboss.soa.esb.pipeline.failure.interceptors"
value=""org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
<property name="org.jboss.soa.esb.pipeline.instantiate.interceptors"
value="org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
<property name="org.jboss.soa.esb.pipeline.start.interceptors"
value="org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
<property name="org.jboss.soa.esb.pipeline.end.interceptors"
value="org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
</properties>
Global Action Pipeline Interceptor
----------------------------------
Key: JBESB-3724
URL:
https://issues.jboss.org/browse/JBESB-3724
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Configuration
Affects Versions: 4.10
Reporter: Brad Davis
Fix For: 4.11
We would like to have the capability to intercept prior to the action pipeline the
Message, globally. This will lay the foundation for being able to hook in global
interceptors for global exception handling, business activity monitoring, and service
analytics.
When the interceptor is executed for the service, it would be helpful to send in not just
the Message, but information on the current service (name, etc) as well. This may include
which adapter the message is arriving on, what the service name and category is, etc. We
have tried in the past to create something like this for a client using AOP, but
couldn't achieve it this way, as JBoss AOP has some serious limitations in the
Enterprise offerings.
It would be also great if the interceptor had the capability to read the full
configuration of the service to know what listeners are provided. This could be used in
the future to log inputs for services to a service registry.
In addition to the hooks for this in the Action Pipeline code, we would also need to have
a globally defined configuration for interceptors.
The background behind this request is that often times, clients need to do analytics over
service request / response times, or need to globally define rules for Exception Handling,
or need to intercept input and output messages for auditing. We are hoping that this
feature would facilitate all of these by allowing Red Hat to start shipping generic
implementations for these things incrementally, and also enabling customers to craft their
own to meet specific business needs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira