Skip navigation.

Application Developer's Guide

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

Invoking Queries in BEA WebLogic Portal Applications

BEA WebLogic PortalTM users can invoke the BEA Liquid Data for WebLogic Query API from WebLogic Portal. Calls to the Liquid Data query API are transparent to Portal users. This chapter includes the following sections:

For general information about developing portals, see the WebLogic Portal documentation.

 


Invoking Liquid Data Queries as EJB Clients

WebLogic Portal needs to be configured to find the Liquid Data query EJB (com.bea.ldi.server.QueryHome), a stateless session bean. For more information, see Invoking Queries in EJB Clients.

 


Invoking Liquid Data Queries as JSP Clients

WebLogic Portal can invoke Liquid Data queries using the Liquid Data Query API and the Liquid Data tag library. Invocations of Liquid Data queries are transparent to Portal users. For more information, see Invoking Queries in JSP Clients.

To invoke Liquid Data queries, you first need to deploy Liquid Data and WebLogic Portal according to the instructions in "Deploying with WebLogic Portal" in Deployment Tasks in Deploying Liquid Data. Once deployed, you can access the Liquid Data query API from a portlet.jsp file using the JSP tag library. For example, the following JSP code invokes a query named isq on port 7001 of a server named myserver:

Listing 7-1 Sample JSP Code Invoking the Liquid Data Query API

<!-- Declare the LD taglib library -->
<%@ taglib uri="LDSTLD" prefix="lds" %>
<!-- Execute the stored procedure "isq" at server "myserver" -->
<lds:query name="isq" server="t3://myserver:7001">
</lds:query>

 

Skip navigation bar  Back to Top Previous Next