Package org.apache.wsif.wsdl.extensions.jms

Examples of org.apache.wsif.wsdl.extensions.jms.JMSAddress


        setPartSerializerName(partSerName);
        setDefinition(def);
        setPort(port);
        wsifTypeMap = typeMap;

        JMSAddress ja =
            (JMSAddress) getExtElem(port,
                JMSAddress.class,
                port.getExtensibilityElements());
        SOAPAddress sa =
            (SOAPAddress) getExtElem(port,
                SOAPAddress.class,
                port.getExtensibilityElements());

        if (sa != null && ja != null)
            throw new WSIFException(
                "Both soap:address and jms:address cannot be specified for port "
                    + port.getName());

        if (sa == null && ja == null)
            throw new WSIFException(
                "Either soap:address or jms:address must be specified for port "
                    + port.getName());

        if (ja != null) {
            // Port jms:address binding element
            jmsAddressPropVals = ja.getJMSPropertyValues();
            st = new SOAPJMSConnection(ja, port.getName());
        } else {
            // Port soap:address bindng element
            st = new SOAPHTTPConnection();
            // call.getSOAPTransport() is null...
View Full Code Here


        operationInstances = new HashMap();
       
        // The transient call reference does not need to be re-established here since it will
        // be taken care of when getCall is next invoked. However, the SOAPTransport needs to
        // be set again
        JMSAddress ja =
            (JMSAddress) getExtElem(port,
                JMSAddress.class,
                port.getExtensibilityElements());
        SOAPAddress sa =
            (SOAPAddress) getExtElem(port,
                SOAPAddress.class,
                port.getExtensibilityElements());

        if (sa != null && ja != null)
            throw new WSIFException(
                "Both soap:address and jms:address cannot be specified for port "
                    + port.getName());

        if (sa == null && ja == null)
            throw new WSIFException(
                "Either soap:address or jms:address must be specified for port "
                    + port.getName());

        if (ja != null) {
            // Port jms:address binding element
            jmsAddressPropVals = ja.getJMSPropertyValues();
            st = new SOAPJMSConnection(ja, port.getName());
        } else {
            // Port soap:address bindng element
            st = new SOAPHTTPConnection();
        }       
View Full Code Here

      Trc.ignoredException(ex);
    }

    // propertyValues from jms:address
    try {
      JMSAddress ja = fieldJmsPort.getObjectReference();
      if (ja != null) {
        setJMSPropertyValues(ja.getJMSPropertyValues());
      }
    } catch (WSIFException ex) {
      Trc.ignoredException(ex);
    }
View Full Code Here

TOP

Related Classes of org.apache.wsif.wsdl.extensions.jms.JMSAddress

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.