Package org.switchyard

Examples of org.switchyard.SwitchYardException


            StringBuilder sb = new StringBuilder(CommonKnowledgeMessages.MESSAGES.problemBuildingKnowledge());
            for (Message message : results.getMessages(Message.Level.ERROR)) {
                sb.append(LINE_SEPARATOR);
                sb.append(message.toString().trim());
            }
            throw new SwitchYardException(sb.toString());
        }
        /* kieBuilder.buildAll() above already adds the kieModule (with our releaseId) to the kieRepository.
        KieModule kieModule = kieBuilder.getKieModule();
        kieServices.getRepository().addKieModule(kieModule);
        */
 
View Full Code Here


        _serviceName = serviceName;

        try {
            _camelContext.addRouteDefinition(createRouteDefinition());
        } catch (final Exception e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

                _connection = connectionFactory.createConnection(_user, _passwd);
                _connection.start();
            }
            return _connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
        } catch (JMSException e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

                InboundBridge txInboundBridge = InboundBridgeManager.getInboundBridge();
                txInboundBridge.start();
                return true;
            }
        } catch (Throwable t) {
            throw new SwitchYardException(t);
        }
    }
View Full Code Here

            final com.arjuna.mw.wst11.TransactionManager wsatManager = TransactionManagerFactory.transactionManager();
            if (wsatManager != null) {
                wsatManager.suspend();
            }
        } catch (final Throwable th) {
            throw new SwitchYardException(th);
        }
    }
View Full Code Here

            if (routes == null) {
                CamelComponentMessages.MESSAGES.noRoutesFoundInXMLFile(xmlPath);
            }
            return routes;
        } catch (SAXException e) {
            throw new SwitchYardException(e);
        } catch (ParserConfigurationException e) {
            throw new SwitchYardException(e);
        } catch (JAXBException e) {
            throw new SwitchYardException(e);
        } catch (IOException e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

            final SwitchYardConsumer consumer = endpoint.getConsumer();
            consumer.setComponentName(config.getComponent().getQName());
            consumer.setNamespace(serviceName.getNamespaceURI());
            return consumer;
        } catch (final Exception e) {
            throw new SwitchYardException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            ConnectionFactory factory = (ConnectionFactory) new InitialContext().lookup(_connectionFactoryJNDIName);
            _recordFactory = factory.getRecordFactory();
        } catch (Exception e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

            exchange = inOutHandler.waitForOut(_waitTimeout);
            MappedRecord returnRecord = _recordFactory.createMappedRecord(_recordName);
            returnRecord.setRecordShortDescription(_description);
            return _composer.decompose(exchange, new MappedRecordBindingData(returnRecord)).getRecord();
        } catch (Exception e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

                if (connection != null) {
                    connection.close();
                }
            }
        } catch (Exception e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.switchyard.SwitchYardException

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.