Package javax.jbi.messaging

Examples of javax.jbi.messaging.MessagingException


                }
          }
          return me;
        }
        catch (InterruptedException e) {
            throw new MessagingException("accept failed", e);
        }
    }
View Full Code Here


                messageExchangeImpl.getPacket().setAborted(true);
                result =  false;
            }
        } catch (InterruptedException e) {
            exchangesById.remove(messageExchange.getExchangeId());
            throw new MessagingException(e);
        }
        finally{
            exchangesById.remove(messageExchange.getExchangeId());
        }
        return result;
View Full Code Here

                    } else {
                        suspendTx(me);
                        queue.put(me);
                    }
                } catch (InterruptedException e) {
                    throw new MessagingException(e);
                }
            }
        }
    }
View Full Code Here

              throw new IllegalStateException("the transaction context set in the messageExchange is not bound to the current thread");
            }
          }
            }
      } catch (Exception e) {
        throw new MessagingException(e);
      }
    }
View Full Code Here

                    }
            tm.resume(oldTx);
          }
            }
      } catch (Exception e) {
        throw new MessagingException(e);
      }
    }
View Full Code Here

                }
              }
            }
          }
      } catch (Exception e) {
        throw new MessagingException(e);
      }
    }
View Full Code Here

                        msg.setJMSReplyTo(cluster.getLocalNode().getDestination());
                        cluster.send(cluster.getDestination(), msg);
                    }
                    catch (JMSException e) {
                        log.error("Could not send cluster message", e);
                        throw new MessagingException(e);
                    }
                }
                else {
                    throw new MessagingException("No remote component with id (" + id
                            + ") exists - Couldn't route ExchangePacket " + me);
                }
            }
        }
        else {
            throw new MessagingException("No component with id (" + id + ") - Couldn't route MessageExchange " + me);
        }
    }
View Full Code Here

                Queue queue=inboundSession.createQueue(destination);
                ObjectMessage msg=inboundSession.createObjectMessage(me);
                queueProducer.send(queue,msg);
            }catch(JMSException e){
                log.error("Failed to send exchange: "+me+" internal JMS Network",e);
                throw new MessagingException(e);
            }
        }else{
            throw new MessagingException("No component with id ("+id+") - Couldn't route MessageExchange "+me);
        }
    }
View Full Code Here

            transformer.toResult(message.getContent(), result);
            XmlObject object = handler.getObject();
            return evaluateXPath(object, xpath, options);
        }
        catch (TransformerException e) {
            throw new MessagingException(e);
        }
        catch (XmlException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

            ActivationSpec activationSpec = exchange.getActivationSpec();
            if (activationSpec != null) {
                throwException = activationSpec.isFailIfNoDestinationEndpoint();
            }
            if (throwException) {
                throw new MessagingException("Could not find route for exchange: " + exchange + " for service: " + exchange.getService() + " and interface: "
                        + exchange.getInterfaceName());
            } else if (exchange.getMirror().getSyncState() == MessageExchangeImpl.SYNC_STATE_SYNC_SENT) {
                exchange.handleAccept();
                ComponentContextImpl ctx = (ComponentContextImpl) getSubscriptionManager().getContext();
                exchange.setDestinationId(ctx.getComponentNameSpace());
View Full Code Here

TOP

Related Classes of javax.jbi.messaging.MessagingException

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.