Examples of JMSBindingException


Examples of org.apache.tuscany.sca.binding.jms.JMSBindingException

        try {
          responseJMSMsg.setStringProperty(JMSBindingConstants.DEFAULT_OPERATION_PROP_NAME, msg.getOperation().getName());
        } catch (JMSException e) {
          // Not sure what to do at this point.. it doesn't make sense to create a fault message.
          // Throwing a runtime exception for now. 
          throw new JMSBindingException(e);         
        }
       
        msg.setBody(responseJMSMsg);

        return msg;
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.JMSBindingException

    } // end constructor

    public Invoker createInvoker(Operation operation) {

        if (jmsBinding.getDestinationName() == null) {
                throw new JMSBindingException("No destination specified for reference " + reference.getName());
        } // end if

        if ( jmsBinding.getActivationSpecName() != null ) {
          throw new JMSBindingException("Activation spec can not be specified on an SCA reference binding.");
        }
        Invoker invoker = null;
        invoker = new RRBJMSBindingInvoker(operation, jmsResourceFactory, endpointReference);
      
        return invoker;
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.JMSBindingException

            MessageFactory messageFactory = modelFactories.getFactory(MessageFactory.class);
            MessageListener listener;
      try {
        listener = new JMSAsyncResponseInvoker(endpointReference, messageFactory, jmsResourceFactory);
      } catch (NamingException e) {
        throw new JMSBindingException("Unable to create JMSResponseInvoker", e);
      } // end try
       
        // Create the response queue handler
            UtilityExtensionPoint utilities = extensions.getExtensionPoint(UtilityExtensionPoint.class);
            WorkScheduler workScheduler = utilities.getUtility(WorkScheduler.class);
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        try {

            return message.getStringProperty(operationPropertyName);

        } catch (JMSException e) {
            throw new JMSBindingException("Exception retreiving operation name from message", e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        try {

            message.setStringProperty(operationPropertyName, operationName);

        } catch (JMSException e) {
            throw new JMSBindingException("Exception setting the operation name on message", e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            OMElement omElement = builder.getDocumentElement();

            return new Object[] {omElement};

        } catch (XMLStreamException e) {
            throw new JMSBindingException(e);
        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        try {

            return ((ObjectMessage)msg).getObject();

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            }

            return message;

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            ObjectMessage message = session.createObjectMessage(); // default
            message.setObject((Serializable)o);
            return message;

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        }

        if (operation != null) {
            return service.getRuntimeWire(jmsBinding).invoke(operation, (Object[])requestPayload);
        } else {
            throw new JMSBindingException("Can't find operation " + (operationName != null ? operationName
                : ON_MESSAGE_METHOD_NAME));
        }

    }
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.