You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Michel Van Hoof (JIRA)" <ji...@apache.org> on 2009/07/01 19:00:06 UTC

[jira] Created: (AMQNET-172) Extend IConnection with connection information

Extend IConnection with connection information
----------------------------------------------

                 Key: AMQNET-172
                 URL: https://issues.apache.org/activemq/browse/AMQNET-172
             Project: ActiveMQ .Net
          Issue Type: Improvement
          Components: ActiveMQ Client
         Environment: Any
            Reporter: Michel Van Hoof
            Assignee: Jim Gomes
            Priority: Minor


I think it would be "nice" to have some properties on the IConnection interface to get a status from the connection since while in most cases, you can get this through an exception, there is no realy way to know when your consumer is connected/disconnected from the broker when using the failover protocol

I have tryed to access the FailOverTransport.IsConnected property but apparently, there is no way to to this when using the IConnectionFactory

I don't know if it is possible to trigger an event on connect/disconnect from the broker and create an "isconnected" property ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work logged: (AMQNET-172) Extend IConnection with connection information

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-172?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#action_36876 ]

Timothy Bish logged work on AMQNET-172:
---------------------------------------

                Author: Timothy Bish
            Created on: 14/Oct/09 01:25 PM
            Start Date: 14/Oct/09 01:24 PM
    Worklog Time Spent: 2 hours 
      Work Description: Added the Connection interrupted / resumed events to the IConnection interface and implemented the notifications in the Connection class for NMS.ActiveMQ

Issue Time Tracking
-------------------

            Time Spent: 2 hours
    Remaining Estimate: 0 minutes

> Extend IConnection with connection information
> ----------------------------------------------
>
>                 Key: AMQNET-172
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-172
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>         Environment: Any
>            Reporter: Michel Van Hoof
>            Assignee: Timothy Bish
>             Fix For: 1.2.0
>
>          Time Spent: 2 hours
>  Remaining Estimate: 0 minutes
>
> I think it would be "nice" to have some properties on the IConnection interface to get a status from the connection since while in most cases, you can get this through an exception, there is no realy way to know when your consumer is connected/disconnected from the broker when using the failover protocol
> I have tryed to access the FailOverTransport.IsConnected property but apparently, there is no way to to this when using the IConnectionFactory
> I don't know if it is possible to trigger an event on connect/disconnect from the broker and create an "isconnected" property ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQNET-172) Extend IConnection with connection information

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQNET-172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54649#action_54649 ] 

Timothy Bish commented on AMQNET-172:
-------------------------------------

I added the ability for the Transports in NMS.ActiveMQ to propagate TransportInterrupted and TransportResumed events awhile back.  This allows the ActiveMQ Connection class to be notified by the FailoverTransport when a transport fails and when a new connection has been established.  

What we need to decide is whether to add events just to NMS.ActiveMQ's Connection class for passing this along to clients or whether we want this to be part of the NMS API.  I don't know if any of the other providers support anything quite like this so it could be something that's unique to the AMQ client.  

We could add delegates for this to AMQ's Connection as follows:

	public delegate void ConnectionInterruptedListener();
	public delegate void ConnectionResumedListener();

and then expose events for each:

	public event ConnectionInterruptedListener InterruptedListener;
	public event ConnectionResumedListener ResumedListener;

The Connection class already listens for the Transport notifications in its OnTransportInterrupted and OnTransportResumed methods so we just need to pass this along to listeners from there.



> Extend IConnection with connection information
> ----------------------------------------------
>
>                 Key: AMQNET-172
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-172
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>         Environment: Any
>            Reporter: Michel Van Hoof
>            Assignee: Jim Gomes
>             Fix For: 1.2.0
>
>
> I think it would be "nice" to have some properties on the IConnection interface to get a status from the connection since while in most cases, you can get this through an exception, there is no realy way to know when your consumer is connected/disconnected from the broker when using the failover protocol
> I have tryed to access the FailOverTransport.IsConnected property but apparently, there is no way to to this when using the IConnectionFactory
> I don't know if it is possible to trigger an event on connect/disconnect from the broker and create an "isconnected" property ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (AMQNET-172) Extend IConnection with connection information

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish reassigned AMQNET-172:
-----------------------------------

    Assignee: Timothy Bish  (was: Jim Gomes)

> Extend IConnection with connection information
> ----------------------------------------------
>
>                 Key: AMQNET-172
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-172
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>         Environment: Any
>            Reporter: Michel Van Hoof
>            Assignee: Timothy Bish
>             Fix For: 1.2.0
>
>
> I think it would be "nice" to have some properties on the IConnection interface to get a status from the connection since while in most cases, you can get this through an exception, there is no realy way to know when your consumer is connected/disconnected from the broker when using the failover protocol
> I have tryed to access the FailOverTransport.IsConnected property but apparently, there is no way to to this when using the IConnectionFactory
> I don't know if it is possible to trigger an event on connect/disconnect from the broker and create an "isconnected" property ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQNET-172) Extend IConnection with connection information

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQNET-172.
---------------------------------

    Resolution: Fixed

Notifications are now available in NMS API via the events, implemented in NMS.ActiveMQ.

> Extend IConnection with connection information
> ----------------------------------------------
>
>                 Key: AMQNET-172
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-172
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>         Environment: Any
>            Reporter: Michel Van Hoof
>            Assignee: Timothy Bish
>             Fix For: 1.2.0
>
>          Time Spent: 2 hours
>  Remaining Estimate: 0 minutes
>
> I think it would be "nice" to have some properties on the IConnection interface to get a status from the connection since while in most cases, you can get this through an exception, there is no realy way to know when your consumer is connected/disconnected from the broker when using the failover protocol
> I have tryed to access the FailOverTransport.IsConnected property but apparently, there is no way to to this when using the IConnectionFactory
> I don't know if it is possible to trigger an event on connect/disconnect from the broker and create an "isconnected" property ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQNET-172) Extend IConnection with connection information

Posted by "Michel Van Hoof (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michel Van Hoof updated AMQNET-172:
-----------------------------------

      Priority: Major  (was: Minor)
    Issue Type: New Feature  (was: Improvement)

I have upped the priority since at this point, this is a blocker on an infrastructure we are building. When you have clients that are not under your own control with a connection that is not under your control, you want to be able to determine if you can send data or should. Once you start sending data on a connection that is no longer active ( internet problems ?) and the machine get's rebooted by the local people, you will loose messages or have a hanging application (will keep on trying to send while connection is not there)

This could simply be avoided with the possibility to check the actual state of the underlying transport (isConnected , then yes.. try to send, if not, don't try)

> Extend IConnection with connection information
> ----------------------------------------------
>
>                 Key: AMQNET-172
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-172
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ Client
>         Environment: Any
>            Reporter: Michel Van Hoof
>            Assignee: Jim Gomes
>             Fix For: 1.2.0
>
>
> I think it would be "nice" to have some properties on the IConnection interface to get a status from the connection since while in most cases, you can get this through an exception, there is no realy way to know when your consumer is connected/disconnected from the broker when using the failover protocol
> I have tryed to access the FailOverTransport.IsConnected property but apparently, there is no way to to this when using the IConnectionFactory
> I don't know if it is possible to trigger an event on connect/disconnect from the broker and create an "isconnected" property ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQNET-172) Extend IConnection with connection information

Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Gomes updated AMQNET-172:
-----------------------------

    Fix Version/s: 1.2

> Extend IConnection with connection information
> ----------------------------------------------
>
>                 Key: AMQNET-172
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-172
>             Project: ActiveMQ .Net
>          Issue Type: Improvement
>          Components: ActiveMQ Client
>         Environment: Any
>            Reporter: Michel Van Hoof
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.2
>
>
> I think it would be "nice" to have some properties on the IConnection interface to get a status from the connection since while in most cases, you can get this through an exception, there is no realy way to know when your consumer is connected/disconnected from the broker when using the failover protocol
> I have tryed to access the FailOverTransport.IsConnected property but apparently, there is no way to to this when using the IConnectionFactory
> I don't know if it is possible to trigger an event on connect/disconnect from the broker and create an "isconnected" property ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.