To integrate with the application server Spring framework, the Java service you create must provide separate interface and implementation classes.
The following example shows a basic interface class and an implementation class.
package com.vmware.myService; public interface MyService { String echo (String message); } public class MyServiceImpl implements MyService { public String echo (String message) { return message; } }