[
https://jira.jboss.org/jira/browse/JBMESSAGING-1620?page=com.atlassian.ji...
]
Jay Howell resolved JBMESSAGING-1620.
-------------------------------------
Resolution: Done
Wrapped the connections with connectionadvised right before the close so that we can get
the notifications when the connections are closed.
Be able to intercept the onclose of a client.
---------------------------------------------
Key: JBMESSAGING-1620
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1620
Project: JBoss Messaging
Issue Type: Feature Request
Affects Versions: 1.4.0.SP3.CP07
Reporter: Jay Howell
Assignee: Jay Howell
Fix For: 1.4.0.SP3.CP08
There is a need to be able to have the close aspect called when connections are closed.
This is done through the connection advised set forth in the aop-messaging-server.xml
file. The example would look like...
<bind pointcut="execution(*
org.jboss.jms.server.endpoint.advised.ConnectionAdvised->close(..))">
<interceptor-ref name="com.acme.close.interceptor"/>
</bind>
<bind pointcut="execution(*
org.jboss.jms.server.endpoint.advised.ConnectionAdvised->closing(..))">
<interceptor-ref name="com.acme.close.interceptor"/>
</bind>
Currently this is not posible because the connections that are closed aren't wrapped
in a ConnectionAdvised.
This was never promised as a feature of JBM, but it is useful for some to know when a
client connection is closed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira