You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Erin Mulder (JIRA)" <de...@geronimo.apache.org> on 2006/04/29 23:59:38 UTC

[jira] Updated: (GERONIMO-1529) Console should display Geronimo Version

     [ http://issues.apache.org/jira/browse/GERONIMO-1529?page=all ]

Erin Mulder updated GERONIMO-1529:
----------------------------------

    Attachment: 1529-display-geronimo-version.patch

Here's a patch (1529-display-geronimo-version.patch) that displays the Geronimo version in the startup sequence and on the server info page.

> Console should display Geronimo Version
> ---------------------------------------
>
>          Key: GERONIMO-1529
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1529
>      Project: Geronimo
>         Type: Improvement
>     Security: public(Regular issues) 
>   Components: console, Logging
>     Versions: 1.0, 1.0-M5, 1.0-M4, 1.0-M3, 1.0-M2, 1.0-M1, 1.1, 1.2, 1.x
>     Reporter: Matthias Schmidt
>     Priority: Minor
>  Attachments: 1529-display-geronimo-version.patch, showVersion.patch
>
> One should be able to figure out geronimo's Version by:
> a) looking in the Console, perhaps under "Server Info"
> b) looking in the Logfiles.
> for a) one can do the following:
> --- applications/console-standard/src/java/org/apache/geronimo/console/infomanager/ServerInfoPortlet.java       2006-01-23 14:57:59.000000000 +0100
> +++ applications/console-standard/src/java/org/apache/geronimo/console/infomanager/ServerInfoPortlet.java.CHANGE        2006-01-23 15:02:27.000000000 +0100
> @@ -34,6 +34,7 @@
>  import org.apache.geronimo.console.BasePortlet;
>  import org.apache.geronimo.console.util.PortletManager;
>  import org.apache.geronimo.management.geronimo.JVM;
> +import org.apache.geronimo.console.GeronimoVersion;
>  /**
>   * Calculates various information about the server to display in the server
> @@ -71,6 +72,8 @@
>          Date bootDate = jvm.getKernelBootTime();
>          svrProps.put("Kernel Boot Time", bootDate);
> +        svrProps.put("Geronimo Version", new GeronimoVersion().GERONIMO_VERSION);
> +
>          renderRequest.setAttribute("svrProps", svrProps);
>          jvmProps.put("Java Version", jvm.getJavaVersion());
> --- applications/console-standard/src/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp 2006-01-11 17:34:52.000000000 +0100
> +++ applications/console-standard/src/webapp/WEB-INF/view/infomanager/svrInfoNormal.jsp.CHANGE  2006-01-23 15:06:42.000000000 +0100
> @@ -5,6 +5,7 @@
>  <script type='text/javascript' src='/console-standard/dwr/engine.js'></script>
>  <script type='text/javascript' src='/console-standard/dwr/util.js'></script>
> +
>  <portlet:defineObjects/>
>  <table width="100%">
> @@ -19,6 +20,10 @@
>      <td class="MediumBackground">Kernel Up Time</td>
>      <td class="MediumBackground"><div id="<portlet:namespace/>UpTime">Not Yet Available</div></td>
>    </tr>
> +  <tr>
> +    <td class="LightBackground" width="20%" nowrap>Geronimo Version</td>
> +    <td class="LightBackground" width="80%">${svrProps['Geronimo Version']}</td>
> +  </tr>
>  </table>
>  <br>
>  <!--

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira