Project

General

Profile

« Previous | Next » 

Revision 56b500f1

Added by Andreas Kohlbecker almost 13 years ago

showing the version string in the server management

View differences:

src/main/webapp/manage/index.jsp
18 18
	.append(barWidth).append(";background-color:").append(cssColorMax).append("\">")
19 19
	.append("<div style=\"background-color:" + cssColorUsed + "; width:" + percent + "%\">&nbsp;</div></div></span>");
20 20
}
21

  
22
// the servelt context must use the class loader of the Bootloader class otherwise 
23
// getting the status will not work in mulithreading environments !!!
24
Bootloader bootloader = Bootloader.getBootloader();
25

  
21 26
%>
22 27

  
23 28
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
......
44 49
      
45 50
      <div id="primary-menu-wrapper" class="clearfix">
46 51
        <div id="primary-menu">
52
            <div id="version"><%= bootloader.readCdmRemoteVersion() %></div>
47 53
        </div><!-- /primary_menu -->
48 54
      </div><!-- /primary-menu-wrapper -->
49 55

  
......
73 79
										<table>
74 80
											<tr><th>Path</th><th> </th><th>Database Url</th><th>Status</th><th>OAI-PMH Provider</th></tr>
75 81
                                            <%
76
                                           // the servelt context must use the class loader of the Bootloader class otherwise 
77
                                           // getting the status will not work in mulithreading environments !!!
78
                                           Bootloader bootloader = Bootloader.getBootloader();
79 82
                                           java.util.Set<CdmInstanceProperties> configAndStatus = bootloader.getConfigAndStatus();
80 83
                                           if(configAndStatus != null){
81 84
                                        	   int i = 0;

Also available in: Unified diff