Package org.apache.servicemix.nmr.api

Examples of org.apache.servicemix.nmr.api.ServiceMixException


        return destination;
    }
   
    public void putDestination(String epName, NMRDestination destination) throws ServiceMixException {
        if (destinationMap.containsKey(epName)) {
            throw new ServiceMixException("JBIDestination for Endpoint "
                                   + epName + " already be created");
        } else {
            destinationMap.put(epName, destination);
        }
    }
View Full Code Here


            inMessage.setDestination(this);
            getMessageObserver().onMessage(inMessage);

        } catch (Exception ex) {
            getLogger().log(Level.SEVERE, new org.apache.cxf.common.i18n.Message("ERROR.PREPARE.MESSAGE", getLogger()).toString(), ex);
            throw new ServiceMixException(ex);
        }
    }
View Full Code Here

            inMessage.setDestination(this);
            getMessageObserver().onMessage(inMessage);

        } catch (Exception ex) {
            getLogger().log(Level.SEVERE, new org.apache.cxf.common.i18n.Message("ERROR.PREPARE.MESSAGE", getLogger()).toString(), ex);
            throw new ServiceMixException(ex);
        }
    }
View Full Code Here

        } catch (Exception ex) {
            getLogger().log(Level.SEVERE,
                            new org.apache.cxf.common.i18n.Message("ERROR.PREPARE.MESSAGE", getLogger())
                                .toString(), ex);
            throw new ServiceMixException(ex);
        }
    }
View Full Code Here

        return destination;
    }
   
    public void putDestination(String epName, NMRDestination destination) throws ServiceMixException {
        if (destinationMap.containsKey(epName)) {
            throw new ServiceMixException("NMRDestination for Endpoint "
                                   + epName + " already be created");
        } else {
            destinationMap.put(epName, destination);
        }
    }
View Full Code Here

            exchange.setProperty(ServiceEndpoint.class, this);
        }
        try {
            queue.offer(exchange, Long.MAX_VALUE, TimeUnit.NANOSECONDS);
        } catch (InterruptedException e) {
            throw new ServiceMixException(e);
        }
    }
View Full Code Here

                    }
                });
                this.references.put(ref, true);
                return ref;
            } catch (org.osgi.framework.InvalidSyntaxException e) {
                throw new ServiceMixException("Invalid filter syntax: " + e.getMessage());
            }
        } catch (NoClassDefFoundError e) {
            throw new UnsupportedOperationException(e);
        }
    }
View Full Code Here

                    if (internalDispatch(exchange, endpoint, true)) {
                        return;
                    }
                }
                if (!match) {
                    throw new ServiceMixException("Could not dispatch exchange. No matching endpoints.");
                } else if (!securityMatch) {
                    throw new ServiceMixException("User not authenticated or not authorized to access any matching endpoint.");
                } else {
                    throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
                }
            } else {
                if (!internalDispatch(exchange, exchange.getDestination(), false)) {
                    throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
                }
            }
        } else {
            if (!internalDispatch(exchange, exchange.getSource(), false)) {
                throw new ServiceMixException("Could not dispatch exchange. No flow can handle it.");
            }
        }
    }
View Full Code Here

            inMessage.setDestination(this);
            getMessageObserver().onMessage(inMessage);

        } catch (Exception ex) {
            getLogger().log(Level.SEVERE, new org.apache.cxf.common.i18n.Message("ERROR.PREPARE.MESSAGE", getLogger()).toString(), ex);
            throw new ServiceMixException(ex);
        }
    }
View Full Code Here

        return destination;
    }
   
    public void putDestination(String epName, NMRDestination destination) throws ServiceMixException {
        if (destinationMap.containsKey(epName)) {
            throw new ServiceMixException("JBIDestination for Endpoint "
                                   + epName + " already be created");
        } else {
            destinationMap.put(epName, destination);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.nmr.api.ServiceMixException

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.