Commit 4501ea62 authored by Andre Freyssinet's avatar Andre Freyssinet
Browse files

Adds an INFO message in log with Joram version.

Adds a JMX attribute.
parent 4eb76a89
/* /*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging * JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies * Copyright (C) 2009 - 2021 ScalAgent Distributed Technologies
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -91,6 +91,10 @@ public class LocalConnections implements LocalConnectionsMBean { ...@@ -91,6 +91,10 @@ public class LocalConnections implements LocalConnectionsMBean {
public String getMBeanName() { public String getMBeanName() {
return MBEAN_NAME; return MBEAN_NAME;
} }
public String getVersion() {
return ConnectionManager.version;
}
public int getFailedLoginCount() { public int getFailedLoginCount() {
return failedLoginCount; return failedLoginCount;
......
/* /*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging * JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies * Copyright (C) 2009 - 2021 ScalAgent Distributed Technologies
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -25,7 +25,11 @@ package org.objectweb.joram.mom.proxies; ...@@ -25,7 +25,11 @@ package org.objectweb.joram.mom.proxies;
* Adds JMX monitoring for a connection manager. * Adds JMX monitoring for a connection manager.
*/ */
public interface ConnectionManagerMBean { public interface ConnectionManagerMBean {
/**
* Gets the name of the MBean.
*/
public String getVersion();
/** /**
* Closes all opened connections. * Closes all opened connections.
*/ */
......
/* /*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging * JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 2020 ScalAgent Distributed Technologies * Copyright (C) 2001 - 2021 ScalAgent Distributed Technologies
* Copyright (C) 1996 - 2000 Dyade * Copyright (C) 1996 - 2000 Dyade
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
...@@ -168,6 +168,10 @@ public class TcpProxyService implements TcpProxyServiceMBean { ...@@ -168,6 +168,10 @@ public class TcpProxyService implements TcpProxyServiceMBean {
return serverSocket; return serverSocket;
} }
public String getVersion() {
return ConnectionManager.version;
}
/** /**
* Initializes the TCP entry point by creating a server socket listening * Initializes the TCP entry point by creating a server socket listening
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment