FileDocCategorySizeDatePackage
JaxRpcOrderService.javaAPI DocExample1523Sat Jan 03 00:50:00 GMT 2004org.springframework.samples.jpetstore.service.server

JaxRpcOrderService

public class JaxRpcOrderService extends org.springframework.remoting.jaxrpc.ServletEndpointSupport implements org.springframework.samples.jpetstore.service.RemoteOrderService, org.springframework.samples.jpetstore.domain.logic.OrderService
JAX-RPC compliant RemoteOrderService implementation that simply delegates to the OrderService implementation in the root web application context.

This wrapper class is necessary because JAX-RPC requires working with RMI interfaces. If an existing service needs to be exported, a wrapper that extends ServletEndpointSupport for simple application context access is the simplest JAX-RPC compliant way.

This is the class registered with the server-side JAX-RPC implementation. In the case of Axis, this happens in "server-config.wsdd" respectively via deployment calls. The Web Service tool manages the lifecycle of instances of this class: A Spring application context can just be accessed here.

author
Juergen Hoeller
since
26.12.2003

Fields Summary
private org.springframework.samples.jpetstore.domain.logic.OrderService
orderService
Constructors Summary
Methods Summary
public org.springframework.samples.jpetstore.domain.OrdergetOrder(int orderId)

		return this.orderService.getOrder(orderId);
	
protected voidonInit()

		this.orderService = (OrderService) getWebApplicationContext().getBean("petStore");