ColdFusion 9.0 Resources |
setCFCListenersSee alsoConstructor, getGatewayID, setCFCPath, Providing Gateway class service and information routines in the Developing ColdFusion Applications Parameters
UsageWhen ColdFusion starts a gateway instance, it calls this method with the names in the instance’s listener list in the ColdFusion Administrator. ColdFusion can also call this method if the ColdFusion Administrator listener list changes while the gateway is running. ExampleThe following example is the ColdFusion SocketGateway class setCFCListeners method: public void setCFCListeners(String[] listeners) { ArrayList aListeners = new ArrayList(); for(int i = 0; i<listeners.length; i++) { aListeners.add(listeners[i]); } // Try not to pull the rug out from underneath a running message synchronized (cfcListeners) { cfcListeners = aListeners; } } |