Patent ID: 7617504

Claim:
A method of accessing an Enterprise Java Bean (EJB) by a non-Java application within a computing environment, comprising: a) making a call, by the non-Java application, to a client library, wherein the call includes input parameters, and wherein the client library is a linkable library that is dynamically linked to the non-Java application; b) invoking a function within the client library to construct an HTTP request corresponding to the input parameters of the call made from the non-Java application, wherein numeric primitive data types of the non-Java application in the calling input parameters are converted into a corresponding text representation in the HTTP request; c) passing the HTTP request from the client library to an EjbServlet; d) invoking a method on an EJB by the EjbServlet based upon the HTTP request; e) returning information from the invoked method from the EJB to the EjbServlet; f) decoding the returned information from the invoked method into an HTTP response string by the EjbServlet; g) transmitting the HTTP response from the EjbServlet to the client library; and h) parsing converting the HTTP response by the client library into return information compatible with the non-Java application and then passing the return information compatible with the non-Java application from the client library to the non-Java application, wherein text-represented numeric values extracted from the HTTP response are converted into a corresponding numeric primitive data type of the non-Java application; and i) allocating buffers by the non-Java application to hold calling input parameters sent to the client library and the return information compatible with the non-Java application received from the client library, wherein the return information compatible with the non-Java application is placed into two buffers, and wherein the two buffers comprise a data buffer and a format buffer, wherein the data buffer comprises an information text string comprising a text representation of the return information compatible with the non-Java application from the invoked method, the format buffer comprises a format text string generated by the EjbServlet comprising format information about the return information compatible with the non-Java application, and the format text string comprises tags that comprise a name field, a start position field, and a length field used to locate data values in the information text string.