+

Search Tips   |   Advanced Search

Obtain the Model SPI

We can obtain the home object for the outbound HTTP connection configuration model using JNDI lookup.

Here is a sample code snippet:

import com.ibm.portal.outbound.config.*;
...
 javax.naming.Context ctx = new javax.naming.InitialContext();
OutboundConnectionModelHome home = (OutboundConnectionModelHome)  ctx.lookup("portal:service/model/OutboundConnectionModel");
OutboundConnectionModel model = home.getOutboundConnectionModelProvider().
    GetOutboundConnectionModel();
The code that calls the SPI must run in the context of the portal server.


Parent Configure outbound HTTP connections using the Model Controller SPI

Next topic: Obtain the Controller SPI

Related concepts:

Model SPI overview