empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r755438 - in /incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire: samples/cxf/wssample/client/ samples/cxf/wssample/common/ struts2/websample/web/ struts2/websample/web/actions/ struts...
Date Tue, 17 Mar 2009 22:57:13 GMT
Author: doebele
Date: Tue Mar 17 22:57:13 2009
New Revision: 755438

URL: http://svn.apache.org/viewvc?rev=755438&view=rev
Log:
EMPIREDB-36

Added:
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeServiceClient.java
  (contents, props changed)
      - copied, changed from r755409, incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeManagementProxy.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeService.java
  (contents, props changed)
      - copied, changed from r755409, incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeManagementInterface.java
Removed:
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeManagementProxy.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeManagementInterface.java
Modified:
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleApplication.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleContext.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleRequest.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeDetailAction.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeListAction.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actiontypes/SampleAction.java
    incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/ws/records/EmployeeRecord.java

Copied: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeServiceClient.java
(from r755409, incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeManagementProxy.java)
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeServiceClient.java?p2=incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeServiceClient.java&p1=incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeManagementProxy.java&r1=755409&r2=755438&rev=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeManagementProxy.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeServiceClient.java
Tue Mar 17 22:57:13 2009
@@ -28,50 +28,43 @@
 import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
 import org.apache.empire.samples.cxf.wssample.common.Department;
 import org.apache.empire.samples.cxf.wssample.common.Employee;
-import org.apache.empire.samples.cxf.wssample.common.EmployeeManagementInterface;
+import org.apache.empire.samples.cxf.wssample.common.EmployeeService;
 
 // The access to WebService.
-public class EmployeeManagementProxy
+public class EmployeeServiceClient
 {
-    private EmployeeManagementInterface proxy = null;
-    private String                      serviceAddress;
+    private EmployeeService service = null;
 
-    public EmployeeManagementProxy(String serviceAddress)
-    {
-        this.serviceAddress = serviceAddress;
-        init();
-    }
-
-    private void init()
+    public EmployeeServiceClient(String serviceAddress)
     {
         JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
         factory.getInInterceptors().add(new LoggingInInterceptor());
         factory.getOutInterceptors().add(new LoggingOutInterceptor());
-        factory.setServiceClass(EmployeeManagementInterface.class);
+        factory.setServiceClass(EmployeeService.class);
         factory.setAddress(serviceAddress);
-        this.proxy = (EmployeeManagementInterface) factory.create();
+        this.service = (EmployeeService) factory.create();
     }
 
     public Employee createEmmployee()
     {
-        return proxy.createEmmployee();
+        return service.createEmmployee();
     }
 
     public List<Department> getDepartments()
     {
-        return proxy.getDepartments();
+        return service.getDepartments();
     }
 
     public Employee getEmmployee(int id)
     {
-        return proxy.getEmmployee(id);
+        return service.getEmmployee(id);
     }
 
     public boolean saveEmployee(Employee e)
     {
         // Employee is here a INOUT parameter, and therfore has to be placed in a Holder.
         Holder<Employee> holder = new Holder<Employee>(e);
-        boolean retVal = proxy.saveEmmployee(holder);
+        boolean retVal = service.saveEmmployee(holder);
         // In order to retrieve changes made by the webservice we copy the content to our
local variable.
         e.set(holder.value);
         return retVal;
@@ -79,17 +72,16 @@
 
     public boolean deleteEmployee(int id)
     {
-        return proxy.deleteEmmployee(id);
+        return service.deleteEmmployee(id);
     }
 
     public List<Employee> searchEmployee(Integer id, String firstName, String lastName,
Integer department)
     {
-        return proxy.searchEmmployee(id, firstName, lastName, department);
+        return service.searchEmmployee(id, firstName, lastName, department);
     }
-
-    public String test()
+    
+    public boolean ping()
     {
-        return proxy.test();
+        return service.ping();
     }
-
 }

Propchange: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/client/EmployeeServiceClient.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Copied: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeService.java
(from r755409, incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeManagementInterface.java)
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeService.java?p2=incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeService.java&p1=incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeManagementInterface.java&r1=755409&r2=755438&rev=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeManagementInterface.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeService.java
Tue Mar 17 22:57:13 2009
@@ -31,9 +31,8 @@
 //specifies the the attribute wsdl:portType
 @WebService(name = "employeeManagement")
 
-public interface EmployeeManagementInterface
+public interface EmployeeService
 {
-
     @WebMethod(operationName = "searchEmmployee")
     @WebResult(name = "searchResponse")
     public List<Employee> searchEmmployee(@WebParam(name = "id", mode = Mode.IN) Integer
id,
@@ -57,11 +56,12 @@
     @WebResult(name = "deleteResponse")
     public boolean deleteEmmployee(@WebParam(name = "id", mode = Mode.IN) int id);
 
-    @WebMethod(operationName = "test")
-    @WebResult(name = "testResponse")
-    public String test();
-
     @WebMethod(operationName = "getDepartments")
     @WebResult(name = "allDepartments")
     public List<Department> getDepartments();
+    
+    @WebMethod(operationName = "ping")
+    @WebResult(name = "pingResponse")
+    public boolean ping();
+    
 }

Propchange: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/samples/cxf/wssample/common/EmployeeService.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleApplication.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleApplication.java?rev=755438&r1=755437&r2=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleApplication.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleApplication.java
Tue Mar 17 22:57:13 2009
@@ -22,7 +22,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.empire.samples.cxf.wssample.client.EmployeeManagementProxy;
+import org.apache.empire.samples.cxf.wssample.client.EmployeeServiceClient;
 import org.apache.empire.struts2.actionsupport.TextProviderActionSupport;
 import org.apache.empire.struts2.html.HtmlTagDictionary;
 import org.apache.empire.struts2.web.WebApplication;
@@ -43,7 +43,7 @@
 	private SampleBeanDomain beanDomain = new SampleBeanDomain();
 	private SampleConfig config = new SampleConfig();
 	
-	private EmployeeManagementProxy ws = new EmployeeManagementProxy(config
+	private EmployeeServiceClient ws = new EmployeeServiceClient(config
 			.getServiceAddress());
 
 	public void init(ServletContext servletContext) {
@@ -69,7 +69,7 @@
 
 			// Get a Webservice Connection
 			log.info("*** testing Webservice Connection ***");
-			ws = initWebServiceProxy();
+			ws = initEmployeeServiceClient();
 
 			// Disable Message caching
 			TextProviderActionSupport.setCachingEnabled(false);
@@ -89,20 +89,14 @@
 		return beanDomain;
 	}
 
-	public EmployeeManagementProxy getWebServiceProxy() {
+	public EmployeeServiceClient getEmployeeServiceClient() {
 		return ws;
 	}
 
-	public void releaseEmployeeProxy(EmployeeManagementProxy ws) {
-		// Return Connection to Connection Pool
-	}
-
-	private EmployeeManagementProxy initWebServiceProxy() {
+	private EmployeeServiceClient initEmployeeServiceClient() {
 		String addr = config.getServiceAddress();
 		try {
-			EmployeeManagementProxy emp = new EmployeeManagementProxy(addr);
-			String info = emp.test();
-			log.info(info);
+			EmployeeServiceClient emp = new EmployeeServiceClient(addr);
 			return emp;
 		} catch (Throwable e) {
 			log.error("Failed to connect directly to '" + addr + "'");

Modified: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleContext.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleContext.java?rev=755438&r1=755437&r2=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleContext.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleContext.java
Tue Mar 17 22:57:13 2009
@@ -18,7 +18,7 @@
  */
 package org.apache.empire.struts2.websample.web;
 
-import org.apache.empire.samples.cxf.wssample.client.EmployeeManagementProxy;
+import org.apache.empire.samples.cxf.wssample.client.EmployeeServiceClient;
 import org.apache.empire.struts2.websample.ws.SampleBeanDomain;
 
 public class SampleContext
@@ -27,7 +27,6 @@
     /*
      * This is just a very simple implementation of a "context" object.
      * You may add user specific information here.
-     * 
      */
     
     public SampleBeanDomain getBeanDomain()
@@ -35,8 +34,8 @@
         return SampleApplication.getInstance().getBeanDomain();
     }
 
-    public EmployeeManagementProxy getWebserviceProxy()
+    public EmployeeServiceClient getEmployeeServiceClient()
     {
-        return SampleApplication.getInstance().getWebServiceProxy();
+        return SampleApplication.getInstance().getEmployeeServiceClient();
     }
 }

Modified: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleRequest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleRequest.java?rev=755438&r1=755437&r2=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleRequest.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/SampleRequest.java
Tue Mar 17 22:57:13 2009
@@ -23,7 +23,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.empire.samples.cxf.wssample.client.EmployeeManagementProxy;
+import org.apache.empire.samples.cxf.wssample.client.EmployeeServiceClient;
 import org.apache.empire.struts2.web.EmpireStrutsDispatcher;
 import org.apache.empire.struts2.web.WebRequest;
 
@@ -36,7 +36,6 @@
     private HttpServletRequest  httpRequest;
     private HttpServletResponse httpResponse;
     private SampleSession       session;
-    private EmployeeManagementProxy          ws;  // Connection for this request
     
     public static SampleRequest getInstance()
     {
@@ -60,24 +59,6 @@
 
     public void exit(int exitCode)
     {
-    	//TODO: how to roll back on webservice?
-        // Cleanup
-        if (ws!=null)
-        {   // Commit or rollback connection depending on the exit code
-            if (exitCode>=0)
-            {   // 0 or positive exitCode indicates success
-                log.debug("Request ended sucessfully. Committing database changes.");
-                //getApplication().getDatabase().commit(connection);
-            }
-            else 
-            {   // negative exitCode indicates an error
-                log.warn("Request ended with errors. Database changes will be rolled back.");
-                //getApplication().getDatabase().rollback(connection);
-            }
-            // Release Connection
-            getApplication().releaseEmployeeProxy(ws);
-            ws= null;
-        }
         // Release objects
         this.httpRequest = null;
         this.httpResponse = null;
@@ -94,16 +75,6 @@
     {
         return session.getApplication();
     }
-
-    // Get Connection
-    public EmployeeManagementProxy getEmployeeManagementProxy()
-    {
-        // Get a Connection for the Connection Pool 
-        if (ws==null)
-        	ws= getApplication().getWebServiceProxy();
-        // return connection
-        return ws;
-    }
     
     public HttpServletRequest getHttpRequest()
     {

Modified: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeDetailAction.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeDetailAction.java?rev=755438&r1=755437&r2=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeDetailAction.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeDetailAction.java
Tue Mar 17 22:57:13 2009
@@ -18,7 +18,7 @@
  */
 package org.apache.empire.struts2.websample.web.actions;
 
-import org.apache.empire.samples.cxf.wssample.client.EmployeeManagementProxy;
+import org.apache.empire.samples.cxf.wssample.client.EmployeeServiceClient;
 import org.apache.empire.samples.cxf.wssample.common.Employee;
 import org.apache.empire.struts2.actionsupport.SessionPersistence;
 import org.apache.empire.struts2.websample.web.SampleApplication;
@@ -37,7 +37,7 @@
  */
 public class EmployeeDetailAction extends BeanDetailAction<Employee>
 {
-    private EmployeeManagementProxy proxy = SampleApplication.getInstance().getWebServiceProxy();
+    private EmployeeServiceClient proxy = SampleApplication.getInstance().getEmployeeServiceClient();
 
     // ------- Action Construction -------
 

Modified: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeListAction.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeListAction.java?rev=755438&r1=755437&r2=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeListAction.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actions/EmployeeListAction.java
Tue Mar 17 22:57:13 2009
@@ -148,7 +148,7 @@
         // check webservice availability!
         if (checkWebService())
         {
-            employeeBeanList = getWSProxy().searchEmployee(si.getEmployeeId(), si.getFirstName(),
si.getLastName(),
+            employeeBeanList = getEmployeeServiceClient().searchEmployee(si.getEmployeeId(),
si.getFirstName(), si.getLastName(),
                                                            si.getDepartmentId());
             return LIST;
         } else
@@ -158,7 +158,7 @@
 
     public Options getDepartments()
     {
-        if (!isWebServiceAV())
+        if (!isServiceAvailable())
             return new Options(); // Webservice is note not available ... so do nothing
 
         if (departments == null)

Modified: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actiontypes/SampleAction.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actiontypes/SampleAction.java?rev=755438&r1=755437&r2=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actiontypes/SampleAction.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/web/actiontypes/SampleAction.java
Tue Mar 17 22:57:13 2009
@@ -22,7 +22,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.empire.samples.cxf.wssample.client.EmployeeManagementProxy;
+import org.apache.empire.samples.cxf.wssample.client.EmployeeServiceClient;
 import org.apache.empire.struts2.action.WebAction;
 import org.apache.empire.struts2.websample.common.Errors;
 import org.apache.empire.struts2.websample.web.SampleApplication;
@@ -33,7 +33,7 @@
 {
     // Logger
     protected static Log log = LogFactory.getLog(SampleAction.class);
-    private EmployeeManagementProxy proxy = SampleApplication.getInstance().getWebServiceProxy();
+    private EmployeeServiceClient service = null;
 
     public SampleAction()
     {
@@ -63,44 +63,41 @@
     }
 
     // Application getters
-    public SampleApplication getApplication()
+    protected SampleApplication getApplication()
     {
         return getRequest().getApplication();
     }
 
-    public SampleSession getSession()
+    protected SampleSession getSession()
     {
         return getRequest().getSession();
     }
 
-    public boolean checkWebService()
+    protected boolean checkWebService()
     {
-        try
-        {
-            proxy.test();
+        if (isServiceAvailable())
             return true;
-        } catch (Exception e)
-        {
-            setActionError(Errors.WebServiceNotAvailable);
-            return false;
-        }
+        // Serv
+        setActionError(Errors.WebServiceNotAvailable);
+        return false;
     }
     
-    public boolean isWebServiceAV()
+    protected boolean isServiceAvailable()
     {
         try
         {
-            proxy.test();
-            return true;
+            return getEmployeeServiceClient().ping();
         } catch (Exception e)
         {
             return false;
         }
     }
     
-    public EmployeeManagementProxy getWSProxy()
+    protected EmployeeServiceClient getEmployeeServiceClient()
     {
-        return proxy;
+        if (service==null)
+            service= SampleApplication.getInstance().getEmployeeServiceClient();
+        return service;
     }
 
 }

Modified: incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/ws/records/EmployeeRecord.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/ws/records/EmployeeRecord.java?rev=755438&r1=755437&r2=755438&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/ws/records/EmployeeRecord.java
(original)
+++ incubator/empire-db/trunk/empire-db-examples/empire-db-example-struts2-cxf/src/main/java/org/apache/empire/struts2/websample/ws/records/EmployeeRecord.java
Tue Mar 17 22:57:13 2009
@@ -58,7 +58,7 @@
     public static Options getDepartments(SampleContext context)
     {
     	Options opts = new Options();
-    	List<Department> _deps = context.getWebserviceProxy().getDepartments();
+    	List<Department> _deps = context.getEmployeeServiceClient().getDepartments();
     	for(Department d: _deps)
     	{
     		opts.add(new OptionEntry(d.getDepartmentId(),d.getName()));



Mime
View raw message