|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Endpoint
An endpoint is capable of handling invocation on an EJB instance. An endpoint might be session aware, in which case an session has to be obtained from the session factory. This session can then be used to call upon the endpoint.
Method Summary | |
---|---|
SessionFactory |
getSessionFactory()
The SessionFactory associated with this Endpoint, if the Endpoint is session aware. |
Object |
invoke(Serializable session,
Class<?> invokedBusinessInterface,
Method method,
Object[] args)
Invoke a method on an EJB endpoint. |
boolean |
isSessionAware()
|
Method Detail |
---|
SessionFactory getSessionFactory() throws IllegalStateException
IllegalStateException
- if this Endpoint is not session awareObject invoke(Serializable session, Class<?> invokedBusinessInterface, Method method, Object[] args) throws Throwable
session
- the identification of the EJB instance to invoke the method upon
or null if the endpoint doesn't support sessions.invokedBusinessInterface
- the invokedBusinessInterface or null if not known.method
- the method to invoke on the EJB instance, note that if
invokedBusinessInterface is specified then the declaring class of the
Method
object must be an instance of
the specified Class
invokedBusinessInterface.args
- an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or null
if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer
or java.lang.Boolean
.
Method
method.
Throwable
- the exception to throw from the method
invocation on the EJB instance.boolean isSessionAware()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |