Endpoint interface
Encyclopedia
An endpoint interface, also known as a service endpoint interface (SEI), is a term used in Java Platform, Enterprise Edition
Java Platform, Enterprise Edition
Java Platform, Enterprise Edition or Java EE is widely used platform for server programming in the Java programming language. The Java platform differs from the Java Standard Edition Platform in that it adds libraries which provide functionality to deploy fault-tolerant, distributed, multi-tier...

 when exposing Enterprise JavaBean
Enterprise JavaBean
Enterprise JavaBeans is a managed, server-side component architecture for modular construction of enterprise applications.The EJB specification is one of several Java APIs in the Java EE specification. EJB is a server-side model that encapsulates the business logic of an application...

s as a Web service
Web service
A Web service is a method of communication between two electronic devices over the web.The W3C defines a "Web service" as "a software system designed to support interoperable machine-to-machine interaction over a network". It has an interface described in a machine-processable format...

 (see also Service Implementation Bean
Service Implementation Bean
A Service Implementation Bean , is a term used in Java Platform, Enterprise Edition, for a Java object implementing a web service. It can be either a POJO or a Stateless Session EJB. The Java interface of an SIB is called a Service Endpoint Interface .-External links:*...

 (SIB)). It is annotated with @WebService and is a component interface, which declares all the abstract methods that are exposed to the client. As it extends the java.rmi.Remote interface, all methods must throw the RemoteException. A Web service client accesses a stateless session bean through the bean's Web service endpoint interface. Like a remote interface, a Web service endpoint interface defines the business methods of the bean.

In contrast to a remote interface, a Web service endpoint interface is not accompanied by a home interface, which defines the bean's life-cycle methods. The only methods of the bean that may be invoked by a Web service client are the business methods that are defined in the Web service endpoint interface.

The methods of an endpoint interface for a Web service are implemented in a session bean class that is stateless.

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK