Package org.jencks

Examples of org.jencks.JCAConnector.destroy()


        stop();
        // Destroy connectors
        while (!connectorMap.isEmpty()) {
          JCAConnector connector = (JCAConnector) connectorMap.remove(connectorMap.keySet().iterator().next());
          try {
            connector.destroy();
          } catch (Exception e) {
            log.warn("error closing jca connector", e);
          }
        }
        try {
View Full Code Here


              connector.afterPropertiesSet();
                connectorMap.put(componentName, connector);
            } else if (event.getStatus() == ComponentPacketEvent.DEACTIVATED){
              JCAConnector connector = (JCAConnector) connectorMap.remove(componentName);
                if (connector != null){
                  connector.destroy();
                }
            }
            // broadcast change to the network
            log.info("broadcast to internal JMS network: " + event);
            jmsTemplate.send(broadcastTopic, new MessageCreator() {
View Full Code Here

        broker.getContainer().removeListener(componentListener);
        // Destroy connectors
        while (!connectorMap.isEmpty()) {
          JCAConnector connector = (JCAConnector) connectorMap.remove(connectorMap.keySet().iterator().next());
          try {
            connector.destroy();
          } catch (Exception e) {
            log.debug("Error closing jca connector", e);
          }
        }
        try {
View Full Code Here

    public void onInternalEndpointUnregistered(EndpointEvent event, boolean broadcast) {
        try{
            String key = EndpointSupport.getKey(event.getEndpoint());
            JCAConnector connector=(JCAConnector) connectorMap.remove(key);
            if(connector!=null){
                connector.destroy();
            }
            // broadcast change to the network
            if (broadcast) {
                log.debug(broker.getContainer().getName() + ": broadcasting info for " + event);
                sendJmsMessage(broadcastTopic, event, false, false);
View Full Code Here

    public void onComponentStopped(ComponentEvent event) {
        try {
            String key = event.getComponent().getName();
            JCAConnector connector = (JCAConnector) connectorMap.remove(key);
            if (connector != null){
                connector.destroy();
            }
        } catch (Exception e) {
            log.error("Cannot destroy consumer for component " + event.getComponent().getName(), e);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.