Creation or Update of Relay Server Outbound Enabler

Creates a new outbound enabler configuration if it does not exist; otherwise updates the existing one.

Syntax

void saveOutboundEnabler(OutboundEnablerVO outboundEnabler) throws com.sybase.sup.admin.exception.SUPAdminException

Parameters

  • outboundEnabler – the outbound enabler configuration to be created or updated.

Returns

If successful, creates or updates the specified outbound enabler configuration. If unsuccessful, returns SUPAdminException .

Examples

  • Update an outbound enabler configuration
    Iterator<OutboundEnablerVO> iter = supServerConf
    		.getOutboundEnablers().iterator();
    if (!iter.hasNext())
    	return;
    
    //update a outbound enabler configuration
    OutboundEnablerVO oe1 = iter.next();
    oe1.setUnwiredServerHost("<new host>");
    supServerConf.saveOutboundEnabler(oe1);
    
  • Create an outbound enabler configuration
    //create a outbound enabler configuration
    OutboundEnablerVO oe2 = new OutboundEnablerVO();
    OutboundEnablerVOBuilder bld = new OutboundEnablerVOBuilder(oe2);
    //copy setting from a existing one
    bld.copy(oe1);
    oe2.getServerNode().
    	setName("<a different host name from the one copied>");
    supServerConf.saveOutboundEnabler(oe2);