SYSTEM AND METHOD FOR ENTERPRISE JAVABEANS CONTAINER
A system to implement functionality for running Enterprise JavaBeans. The functionality is provided by a set of components. The components include a life cycle manager, a client views manager, a proxy invocation handler, an invocation chain manager, and an invocation context.
1 . A system to run Enterprise JavaBeans (“EJB”), comprising:
a life cycle manager to manage the lifecycle of bean instances;
a client views manager to manage the life cycle of client views provided to bean clients;
a proxy invocation handler coupled to a client view factory to propagate a client request from a client view to a bean instance;
an invocation chains manager to execute the client request responsive to receiving the client request from the proxy invocation handler; and
an invocation context to manage the lifecycle of an interceptor chain responsive to the interceptor chain being executed by the invocation chains manager.
2 . The system of claim 1 , wherein the client views manager comprises:
a set of client view factory instances to create and destroy client view instances.
3 . The system of claim 1 , further comprising:
a timeout manager to manage timeout invocations.
4 . An apparatus to provide a runtime environment for an Enterprise JavaBean (“EJB”), the apparatus comprising:
an invocation chains manager to invoke an invocation chain responsive to a request;
an enterprise bean context to maintain a set of resources associated with the EJB;
an instance life cycle manager coupled to the enterprise bean context to manage an instance of the EJB and resources associated with the instance of the EJB; and
a component interface manager to manage factory objects associated with the instance of the EJB.
5 . The apparatus of claim 4 , wherein the factory objects comprise:
a remote access factory object; and
a local access factory object.
6 . A method to run Enterprise Java Beans (“EJB”) applications, comprising:
creating a set of interceptors, each interceptor encapsulating logic to service a request for a bean or a bean life cycle event;
grouping interceptors in interceptor chains;
requesting an interceptor chain responsive to receiving a request for the bean;
associating the interceptor chain with an invocation context; and
executing the interceptor chain to service the request.
7 . The method of claim 6 , further comprising obtaining a reference to a client view of the bean.
8 . The method of claim 6 , wherein requesting the interceptor chain comprises:
invoking a proxy invocation handler to pass the request to an invocation chain manager;
estimating if the received request is for a business logic operation or a lifecycle operation; and
identifying an interceptor chain to service the request based on the estimation of the type of the request.
9 . A machine readable medium having instructions therein that when executed by the machine, cause the machine to:
create a set of interceptors, each interceptor encapsulating logic to service a request for a bean or a bean life cycle event;
group interceptors in interceptor chains;
request an interceptor chain responsive to receiving a request for the bean; and
execute the interceptor chain to service the request.
10 . The machine readable medium of claim 9 , further comprising instructions that cause the machine to obtain a reference to a client view of the bean.
11 . The machine readable medium of claim 9 , wherein instructions causing the machine to request an interceptor chain, cause the machine to:
invoke a proxy invocation handler to pass the request to an invocation chain manager;
estimate if the received request is for a business logic operation or a lifecycle operation; and
identify an interceptor chain to service the request based on the estimation of the type of the request.