19.14. Indirect Service Invocation Example
This invocation uses an
OrderService
example:
public interface OrderService { OrderAck submitOrder(Order order); } public class Order implements Serializable { private String orderId; private String itemId; private int quantity = 1; public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public String getItemId() { return itemId; } public void setItemId(String itemId) { this.itemId = itemId; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } }