[
https://issues.apache.org/activemq/browse/AMQ-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Tully resolved AMQ-2062.
-----------------------------
Resolution: Fixed
to share an exception listener across all connections produced by a
ActiveMQConnectionFactory use:
{code}
ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(getConnectUri());
connectionFactory.setExceptionListener(new ExceptionListener() {
public void onException(JMSException arg0) {
// ...
}
});
{code}
> ActiveMQConnectionFactory should support a setExceptionListener option to
> allow an ExceptionListenere to be configured on all created connections
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQ-2062
> URL: https://issues.apache.org/activemq/browse/AMQ-2062
> Project: ActiveMQ
> Issue Type: Improvement
> Components: Broker
> Affects Versions: 5.2.0
> Environment: when using spring JmsTemplate, the underlying connection
> is not easily accessible. Having a ConnectionFactory exception listener
> allows a single instance to be configured on all connections. The only
> caveat is that unlike setting a listener on a connection, access to a shared
> exceotionListener will not be serialized when more than one connection is
> created by the connection factory,
> When using asyncSend, having an exception listener is important if the user
> wishes to be made aware of broker exception.
> Reporter: Gary Tully
> Assignee: Gary Tully
> Fix For: 5.3.0
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.