Obtaining the Model SPI | HCL Digital Experience

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

About this task

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.