ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r588087 - in /ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2: ODEServer.java service/ManagementService.java
Date Wed, 24 Oct 2007 23:57:14 GMT
Author: mriou
Date: Wed Oct 24 16:57:13 2007
New Revision: 588087

URL: http://svn.apache.org/viewvc?rev=588087&view=rev
Log:
ODE-202 Patch from Rich to allow access of PMAPI interfaces from ODEServer.

Modified:
    ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java
    ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/service/ManagementService.java

Modified: ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java?rev=588087&r1=588086&r2=588087&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java (original)
+++ ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java Wed
Oct 24 16:57:13 2007
@@ -43,6 +43,8 @@
 import org.apache.ode.bpel.iapi.Scheduler;
 import org.apache.ode.bpel.intercept.MessageExchangeInterceptor;
 import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl;
+import org.apache.ode.bpel.pmapi.InstanceManagement;
+import org.apache.ode.bpel.pmapi.ProcessManagement;
 import org.apache.ode.il.dbutil.Database;
 import org.apache.ode.scheduler.simple.JdbcDelegate;
 import org.apache.ode.scheduler.simple.SimpleScheduler;
@@ -104,7 +106,8 @@
 
     private BpelServerConnector _connector;
 
-
+    private ManagementService _mgtService;
+    
     public void init(ServletConfig config, AxisConfiguration axisConf) throws ServletException
{
         boolean success = false;
         try {
@@ -170,7 +173,9 @@
             File deploymentDir = new File(_workRoot, "processes");
             _poller = new DeploymentPoller(deploymentDir, this);
 
-            new ManagementService().enableService(_axisConfig, _server, _store, _appRoot.getAbsolutePath());
+            _mgtService = new ManagementService();
+            _mgtService.enableService(_axisConfig, _server, _store, _appRoot.getAbsolutePath());
+            
             new DeploymentWebService().enableService(_axisConfig, _server, _store, _poller,
_appRoot.getAbsolutePath(), _workRoot
                     .getAbsolutePath());
 
@@ -473,6 +478,14 @@
         return _server;
     }
 
+    public InstanceManagement getInstanceManagement() {
+    	return _mgtService.getInstanceMgmt();
+    }
+    
+    public ProcessManagement getProcessManagement() {
+    	return _mgtService.getProcessMgmt();
+    }
+    
     private void registerEventListeners() {
         String listenersStr = _odeConfig.getEventListeners();
         if (listenersStr != null) {

Modified: ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/service/ManagementService.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/service/ManagementService.java?rev=588087&r1=588086&r2=588087&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/service/ManagementService.java
(original)
+++ ode/branches/APACHE_ODE_1.1/axis2/src/main/java/org/apache/ode/axis2/service/ManagementService.java
Wed Oct 24 16:57:13 2007
@@ -290,4 +290,14 @@
         if (clazz.equals(String.class)) return str;
         return null;
     }
+    
+    public ProcessManagement getProcessMgmt()
+	{
+		return _processMgmt;
+	}
+
+	public InstanceManagement getInstanceMgmt()
+	{
+		return _instanceMgmt;
+	}
 }



Mime
View raw message