2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
20 <%@ page import="org.apache.axis2.Constants"%>
21 <%@ page import="org.apache.axis2.context.ConfigurationContext"%>
22 <%@ page import="org.apache.axis2.context.ServiceContext"%>
23 <%@ page import="org.apache.axis2.context.ServiceGroupContext"%>
24 <%@ page import="java.util.Iterator"%>
25 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
26 <jsp:include page="include/adminheader.jsp"></jsp:include>
27 <h1>Running Context Hierarchy</h1>
29 ConfigurationContext configContext = (ConfigurationContext) request.getSession().getAttribute(
30 Constants.CONFIG_CONTEXT);
32 String[] serviceGroupIds = configContext.getServiceGroupContextIDs();
33 if (serviceGroupIds.length > 0) {
38 for (int i = 0; i < serviceGroupIds.length; i++) {
39 String groupContextID = serviceGroupIds[i];
40 ServiceGroupContext groupContext = configContext.getServiceGroupContext(groupContextID);
42 <li><%=groupContextID%><font color="blue"><a href="axis2-admin/viewServiceGroupConetxt?TYPE=VIEW&ID=<%=groupContextID%>">
43 View</a></font> <font color="red"><a href="axis2-admin/viewServiceGroupConetxt?TYPE=DELETE&ID=<%=groupContextID%>">
44 Remove</a> </font></li>
46 Iterator serviceContextItr = groupContext.getServiceContexts();
48 while (serviceContextItr.hasNext()) {
49 ServiceContext serviceContext = (ServiceContext)serviceContextItr.next();
50 String serviceConID = serviceContext.getAxisService().getName();
52 <li><%=serviceConID%><font color="blue"><a href="axis2-admin/viewServiceContext?TYPE=VIEW&ID=<%=serviceConID%>&PID=<%=groupContextID%>">
61 <p>No running contexts were found on the system.</p>
64 <jsp:include page="include/adminfooter.inc"></jsp:include>