Creating a CORBA query is very similar to creating XML queries. Since the output of a CORBA request is mapped to a tree, exactly the same as with an XML request, defining a CORBA query is almost identical to the process for XML queries. The only difference is that each CORBA query has an additional request parameter specification (for overriding the parameter specifications in the data source).
EJB queries are very similar to CORBA queries, but the request parameters are converted to Java objects for EJB invocation. The output values of an EJB home finder method are then converted to a data tree using similar technology. Once the data tree is created from the Java objects, the same tree path selection and table mapping can be applied to the result.
First, create a simple CORBA query using the ‘getAllAccounts’ request. The request does not expect any parameters.
When a CORBA object is developed, it is best to anticipate the parameters that will be used to retrieve information from the server. Although it is very easy to perform filtering in the query engine by post-processing, it is more efficient to implement the common filtering in the CORBA server itself. Most CORBA requests require some parameters in the invocation. For simple parameters, the easiest way to pass in the actual values is to define a variable for each parameter node.
Copyright © 2024, InetSoft Technology Corp.