Package org.apache.axis2.transport

Examples of org.apache.axis2.transport.TransportSender


            Map<String, TransportOutDescription> trpOuts
                    = configurationContext.getAxisConfiguration().getTransportsOut();

            for (TransportOutDescription trpOut : trpOuts.values()) {
                TransportSender trpSnd = trpOut.getSender();
                if (trpSnd instanceof ManagementSupport) {
                    try {
                        ((ManagementSupport) trpSnd).pause();
                    } catch (AxisFault axisFault) {
                        log.error(new StringBuilder("Error pausing transport sender: ")
View Full Code Here


            Map<String, TransportOutDescription> trpOuts
                    = configurationContext.getAxisConfiguration().getTransportsOut();

            for (TransportOutDescription trpOut : trpOuts.values()) {
                TransportSender trpSnd = trpOut.getSender();
                if (trpSnd instanceof ManagementSupport) {
                    try {
                        ((ManagementSupport) trpSnd).resume();
                    } catch (AxisFault axisFault) {
                        log.error(new StringBuilder("Error resuming transport sender for : ")
View Full Code Here

        int pendingThreads = 0;
        Map<String, TransportOutDescription> trpOuts
                = configurationContext.getAxisConfiguration().getTransportsOut();

        for (TransportOutDescription trpOut : trpOuts.values()) {
            TransportSender trpSnd = trpOut.getSender();

            if (trpSnd instanceof ManagementSupport) {
                int inUse = ((ManagementSupport) trpSnd).getActiveThreadCount();
                int inQue = ((ManagementSupport) trpSnd).getQueueSize();

                if ((inUse + inQue) > 0) {
                    if (log.isDebugEnabled()) {
                        log.debug(new StringBuilder("Transport Sender : ")
                                .append(trpSnd.getName()).append(" currently using : ")
                                .append(inUse).append(" threads with ").append(inQue)
                                .append(" requests already queued...").toString());
                    }
                    pendingThreads += (inUse + inQue);
                }
View Full Code Here

                Class sender;

                try {
                    sender = Loader.loadClass(clasName);

                    TransportSender transportSender = (TransportSender) sender.newInstance();

                    transportout.setSender(transportSender);

                    // process Parameters
                    // processing Parameters
View Full Code Here

       
        preSendTransaction.commit();
       
        //sending the message
        TransportOutDescription transportOutDescription = msgCtx.getTransportOut();
        TransportSender transportSender = transportOutDescription.getSender();
         
        boolean successfullySent = false;
        if (transportSender != null) {
          try {
           
            //TODO change this to cater for security.
            transportSender.invoke(msgCtx);
            successfullySent = true;
          } catch (AxisFault e) {
            // TODO Auto-generated catch block
              log.debug("Could not send message");
            log.debug(e.getStackTrace().toString());
View Full Code Here

    storageManager.storeMessageContext(storageKey,msg);
    retransmitterMgr.insert(appMsgEntry);
    msg.setProperty(Sandesha2Constants.QUALIFIED_FOR_SENDING,Sandesha2Constants.VALUE_FALSE);

    // changing the sender. This will set send to true.
    TransportSender sender = msg.getTransportOut().getSender();

    if (sender != null) {
      Sandesha2TransportOutDesc sandesha2TransportOutDesc = new Sandesha2TransportOutDesc ();
      msg.setProperty(Sandesha2Constants.MESSAGE_STORE_KEY, storageKey);
      msg.setProperty(Sandesha2Constants.ORIGINAL_TRANSPORT_OUT_DESC,
View Full Code Here

        TransportOutDescription transportOut = new TransportOutDescription(name);
        if (init) {
            try {
                Class clazz = TransportBuilderUtils.class.getClassLoader().loadClass(className);
                TransportSender sender = (TransportSender) clazz.newInstance();
                transportOut.setSender(sender);
            } catch (Exception e) {
                throw new DeploymentException("Error while initializing transport sender", e);
            }
        }
View Full Code Here

    private String transportSenderClassName;

    public TransportStatistics(String transportName) {
        ConfigHolder configHolder = ConfigHolder.getInstance();
        TransportListener transportListener = configHolder.getTransportListener(transportName);
        TransportSender transportSender = configHolder.getTransportSender(transportName);

        if (transportListener != null && transportListener instanceof ManagementSupport) {
            setTransportListenerActiveThreadCount(((ManagementSupport) transportListener).
                    getActiveThreadCount());
            setTransportListenerAvgSizeReceived(((ManagementSupport) transportListener).
View Full Code Here

                    getTransportListener(transportName);
            if (trpListener instanceof ManagementSupport)
                return ConfigHolder.getInstance().getTransportListenerClassName(transportName);
        }
        if (TransportStatisticsConstants.SENDER.equalsIgnoreCase(transportType)) {
            TransportSender trpSender = ConfigHolder.getInstance().getTransportSender(transportName);
            if (trpSender instanceof ManagementSupport)
                return ConfigHolder.getInstance().getTransportSenderClassName(transportName);
        }
        return "";
    }
View Full Code Here

                    getTransportListener(transportName);
            if (trpListener instanceof ManagementSupport)
                return ((ManagementSupport) trpListener).getActiveThreadCount();
        }
        if (TransportStatisticsConstants.SENDER.equalsIgnoreCase(transportType)) {
            TransportSender trpSender = ConfigHolder.getInstance().getTransportSender(transportName);
            if (trpSender instanceof ManagementSupport)
                return ((ManagementSupport) trpSender).getActiveThreadCount();
        }
        return 0;
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.transport.TransportSender

Copyright © 2018 www.massapicom. 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.