Code wrapping to simplify access to and use of enterprise JAVA beans
First Claim
1. A method of simplifying access to a software component, comprising the steps of:
- choosing said software component by a user from a first server on a computer network;
choosing a wrapper for said software component by said user based upon single or multiple usage of said software component;
mapping a home interface of said software component to a constructor of said wrapper such that the home interface and a remote interface of said software component are hidden from a client program; and
calling a remote interface method of said software component by the client program which in turns calls the remote interface of the software component.
1 Assignment
0 Petitions
Accused Products
Abstract
An improved method to access software components on a server network, such as enterprise beans according to the Enterprise JavaBeans architecture, by using a wrapper called an Access Bean. Access Beans hide the home and remote interface methods of an Enterprise JavaBeans server from a client program so that the task of consuming an enterprise bean is one of consuming a standard Java bean. The home interface method of the enterprise bean is mapped to appropriate constructors in the Access Bean; and the remote interface method of the enterprise bean is mapped to Java Beans methods which in turn call the corresponding business methods on the enterprise bean. More than one type of Access Bean permits caching of attributes of the enterprise bean and indexing the cache so that a plurality of instances of an enterprise bean can be efficiently supported.
-
Citations
35 Claims
-
1. A method of simplifying access to a software component, comprising the steps of:
-
choosing said software component by a user from a first server on a computer network;
choosing a wrapper for said software component by said user based upon single or multiple usage of said software component;
mapping a home interface of said software component to a constructor of said wrapper such that the home interface and a remote interface of said software component are hidden from a client program; and
calling a remote interface method of said software component by the client program which in turns calls the remote interface of the software component. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A method of consuming an enterprise bean from a client program, comprising the steps of:
-
instantiating an Access Bean having a home interface and remote interface of said enterprise bean by calling one of a plurality of constructors; and
calling a first of a plurality of methods of said Access Bean to instantiate said enterprise bean and a corresponding method of said enterprise bean; and
calling subsequent methods of said plurality of methods of said Access Bean to call corresponding methods of said enterprise bean.
-
-
18. A computer system for accessing a software component, comprising:
-
a first server having a CPU and a software component accessed through at least one home interface and at least one remote interface;
a second server having a CPU and client program to access said software component on said first server through a computer network;
a database used by said software component and said client program; and
a client program access code to map said at least one home interface method of said software component to a constructor in said client program access code and to map said at least one remote interface method of said software component to methods of said client program access code in an access bean. - View Dependent Claims (19, 20)
-
-
21. A computer readable medium encoded with a set of executable instructions to perform a method for accessing a software component, the method comprising:
-
locating a name server of said software component;
choosing said software component from said name server;
choosing a wrapper for said software component based upon single or multiple usage of said software component;
mapping a home interface of said software component to a null constructor of said wrapper within an access bean; and
mapping a remote interface method to a software component remote interface within the access bean. - View Dependent Claims (22, 23, 24, 25, 26)
-
-
27. A computer readable medium encoded with a set of executable instructions to perform a method for consuming an enterprise bean on a computer network, the method comprising:
-
instantiating an Access Bean having the home interface and remote interface of said enterprise bean by calling one of a plurality of constructors; and
calling a first of a plurality of methods of said Access Bean to instantiate an enterprise bean and a corresponding method of said enterprise bean; and
calling subsequent methods of said plurality of methods of said Access Bean to call corresponding methods of said enterprise bean.
-
-
28. An apparatus to access a software component, comprising:
-
a first server having said software component;
a second server having a means to access said software component;
means to instantiate said access means by calling one of a plurality of constructors in an access bean having both a home interface and remote interface for said software component;
means to call a first method of said access means to instantiate said software component; and
means to call at least one subsequent constructor of said access means which calls a corresponding method of said software component; and
means to call at least one subsequent method of said access means which calls a corresponding method of said software component. - View Dependent Claims (29, 30, 31, 32, 33, 34, 35)
-
Specification