User: starksm
Date: 02/04/09 11:06:03
Modified: src/main/org/jboss/mq/server Tag: Branch_2_4 JMSServer.java
Log:
Integrate connection ping patch
Revision Changes Path
No revision
No revision
1.4.2.4 +23 -1 jbossmq/src/main/org/jboss/mq/server/JMSServer.java
Index: JMSServer.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/server/JMSServer.java,v
retrieving revision 1.4.2.3
retrieving revision 1.4.2.4
diff -u -r1.4.2.3 -r1.4.2.4
--- JMSServer.java 26 Mar 2002 06:53:49 -0000 1.4.2.3
+++ JMSServer.java 9 Apr 2002 18:06:03 -0000 1.4.2.4
@@ -37,7 +37,7 @@
* @author Hiram Chirino ([EMAIL PROTECTED])
* @author David Maplesden ([EMAIL PROTECTED])
* @created August 16, 2001
- * @version $Revision: 1.4.2.3 $
+ * @version $Revision: 1.4.2.4 $
*/
public class JMSServer
{
@@ -579,5 +579,27 @@
public static JMSServer getInstance()
{
return theInstance;
+ }
+
+ /**
+ * #Description of the Method
+ *
+ * @param dc Description of Parameter
+ * @param clientTime Description of Parameter
+ * @exception JMSException Description of Exception
+ */
+ public synchronized void ping(ConnectionToken dc, long clientTime)
+ throws JMSException
+ {
+ try
+ {
+ if( log.isTraceEnabled() )
+ log.trace("PING");
+ dc.clientIL.pong(System.currentTimeMillis());
+ }
+ catch (Exception e)
+ {
+ throw new SpyJMSException("Could not pong", e);
+ }
}
}
_______________________________________________________________
Sponsored by:
Looking for hip toys and fun scwag. There is no better place
then the good friends at ThinkGeek. http://www.ThinkGeek.com/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development