Examples of WSIFJMSDestination


Examples of org.apache.wsif.util.jms.WSIFJMSDestination

        Trc.entry(this, messageContext);
        try {
            // Determine if this is an async operation
            boolean asyncMode =
                messageContext.isPropertyTrue(WSIFJmsTransport.ASYNCOPERATION);
            WSIFJMSDestination dest =
                (WSIFJMSDestination) messageContext.getProperty(WSIFJmsTransport.DESTINATION);

            Long transportSyncTimeoutValue =
                (Long)messageContext.getProperty(WSIFJmsTransport.SYNC_TIMEOUT);
            long syncTimeout =
               transportSyncTimeoutValue==null
                  ? SYNC_TIMEOUT
                  : transportSyncTimeoutValue.longValue();

            Message message = messageContext.getRequestMessage();
           
            // The next line has the desired side effect of setting
            // up MIME attachements correctly. MIME attachments using
            // AxisJms still don't work, because it falls over later.
            message.getContentType(messageContext.getSOAPConstants());
           
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            message.writeTo(baos);
            String contents = baos.toString();

            if (asyncMode) {
                performAsyncSend(messageContext, dest, contents);
            } else {
                String id = dest.send(contents, null);
                String response = dest.receiveString(id, syncTimeout);
                Message responseMessage = new Message(response);
                messageContext.setResponseMessage(responseMessage);
            }
        } catch (IOException ioe) {
          Trc.exception(ioe);
View Full Code Here

Examples of org.apache.wsif.util.jms.WSIFJMSDestination

   * @return WSIFJMSDestination
   */
  public WSIFJMSDestination getJmsDestination() throws WSIFException {
    if (jmsDest==null) {
           jmsDest =
              new WSIFJMSDestination(
                 WSIFJMSFinder.newFinder(
                    getObjectReference(),
                    fieldPortModel.getName()),
              getObjectReference().getJmsProvDestName(),
              WSIFProperties.getSyncTimeout());
View Full Code Here

Examples of org.apache.wsif.util.jms.WSIFJMSDestination

    if (transport == null) {
      String s = soapBinding.getTransportURI();
      if (HTTP_TRANSPORT_URI.equals(s)) {
        transport = new HTTPTransport();
      } else if (JMS_TRANSPORT_URI.equals(s)) {
        WSIFJMSDestination jmsDestination =
          new WSIFJMSDestination(
            WSIFJMSFinder.newFinder(jmsAddress, port.getName()),
            jmsAddress.getJmsProvDestName(),
            WSIFProperties.getSyncTimeout());
        transport = new WSIFJmsTransport(jmsDestination);
      }
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.