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

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


            Object ee = it.next();
            if (ee instanceof JMSProperty) {
                JMSProperty prop = (JMSProperty) ee;
                props.put(prop.getPart(), prop.getName());
            } else if (ee instanceof JMSPropertyValue) {
                JMSPropertyValue propVal = (JMSPropertyValue) ee;
   
                String name = propVal.getName();
                if (name == null || name.length() == 0)
                    throw new WSIFException("jms:propertyValue found without a name");
   
                QName type = propVal.getType();
                if (type == null)
                    throw new WSIFException(
                        "jms:propertyValue " + name + " did not have a type");
                if (type.getNamespaceURI() == null || type.getLocalPart() == null)
                    throw new WSIFException(
                        "jms:propertyValue " + name + " has a badly formed type");
   
                String value = propVal.getValue();
                if (value == null || value.length() == 0)
                    throw new WSIFException(
                        "jms:propertyValue " + name + " did not have a value");
   
                TypeMapping tm = (TypeMapping) (simpleTypeReg.get(type));
View Full Code Here


  private void setJMSPropertyValues(List propertyValues)
    throws WSIFException {
    if (propertyValues != null) {
      WSIFJMSDestination jmsDest = fieldJmsPort.getJmsDestination();
      for (Iterator i = propertyValues.iterator(); i.hasNext();) {
        JMSPropertyValue pv = (JMSPropertyValue) i.next();
        if (pv != null) {
          Object o = getObjectValue(pv.getType(), pv.getValue());
          if (!timeoutProperty(pv.getName(), o)) {
            jmsDest.setProperty(pv.getName(), o);
          }
        }
      }
    }
  }
View Full Code Here

    // Need to separate out between header values and property values 
    Iterator iter = attr.keySet().iterator();
    while (iter.hasNext()) {
      String attName = (String) iter.next();

      JMSPropertyValue value = (JMSPropertyValue) attr.get(attName);

      if (value != null) {
        Object o = getObjectValue(value.getType(), value.getValue());
        if (!timeoutProperty(attName, o)) {
                    WSIFJMSDestination jmsDest = fieldJmsPort.getJmsDestination();
          jmsDest.setProperty(attName, o);
        }
      }
View Full Code Here

TOP

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

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.