Package org.switchyard

Examples of org.switchyard.SwitchYardException


            final ClojureScriptModel scriptModel = _implModel.getScriptModel();
            _var = scriptModel != null
                    ? (Var) clojure.lang.Compiler.load(new StringReader(scriptModel.getScript()))
                    : (Var) clojure.lang.Compiler.load(loadInputStream(_implModel.getScriptFile()));
        } catch (final Exception e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here


            if (name != null) {
                name = name.replace("#", "");
            }
            return name;
        } catch (URISyntaxException e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

    protected void doStart() {
        _metadata.getMessageEndpoint().initialize();
        try {
            _metadata.getResourceAdapter().endpointActivation(this, _metadata.getActivationSpec());
        } catch (ResourceException e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

                    } else {
                        final Throwable cause;
                        if (fault instanceof Throwable) {
                            cause = (Throwable)fault;
                        } else {
                            cause = new SwitchYardException(fmsg);
                            cause.fillInStackTrace();
                        }
                        WorkItemHandlerRuntimeException wihre = new WorkItemHandlerRuntimeException(cause, fmsg);
                        wihre.setStackTrace(cause.getStackTrace());
                        wihre.setInformation(SERVICE_NAME, serviceName != null ? serviceName.toString() : null);
View Full Code Here

        // Still haven't found it?  Houston, we have a problem.
        if (operationName == null) {
            final StringBuilder msg = new StringBuilder();
            msg.append(SwitchYardCamelComponentMessages.MESSAGES.unableToDetermineOperation());
            msg.append(serviceRef.getInterface().getOperations());
            throw new SwitchYardException(msg.toString());
        }
        return operationName;
    }
View Full Code Here

        try {
            super.start();
            setState(State.STARTED);
        } catch (Exception ex) {
            setState(State.NONE);
            throw new SwitchYardException(ex);
        }
    }
View Full Code Here

        try {
            super.stop();
            setState(State.NONE);
        } catch (Exception ex) {
            setState(State.STARTED);
            throw new SwitchYardException(ex);
        }
    }
View Full Code Here

                if (testMixIn instanceof TransactionMixInParticipant) {
                    try {
                        _logger.debug("Trying to locate JTA environment using " + testMixIn);
                        _jtaEnvironmentBean = ((TransactionMixInParticipant) testMixIn).locateEnvironmentBean();
                    } catch (Throwable e) {
                        throw new SwitchYardException("Exception during locating arjuna environment bean", e);
                    }
                }
            }
        }

        try {
            if (_jtaEnvironmentBean == null) {
                System.setProperty("ObjectStoreEnvironmentBean.objectStoreDir", _storeDir);
                System.setProperty("com.arjuna.ats.arjuna.objectstore.objectStoreDir", _storeDir);
                _jtaEnvironmentBean = jtaPropertyManager.getJTAEnvironmentBean();
                _jtaEnvironmentBean.setTransactionManagerClassName(com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple.class.getName());
                _jtaEnvironmentBean.setUserTransactionClassName(com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple.class.getName());
                _jtaEnvironmentBean.setTransactionSynchronizationRegistryClassName(com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple.class.getName());

                InitialContext initialContext = new InitialContext();
                initialContext.bind("java:jboss/TransactionManager", _jtaEnvironmentBean.getTransactionManager());
                initialContext.bind("java:jboss/UserTransaction", _jtaEnvironmentBean.getUserTransaction());
                initialContext.bind("java:jboss/TransactionSynchronizationRegistry", _jtaEnvironmentBean.getTransactionSynchronizationRegistry());
            }
        } catch (NamingException e) {
            throw new SwitchYardException("Unable to bind transaction manager in JNDI", e);
        }
    }
View Full Code Here

    @After
    public void tearDown() {
        try {
            _connection.close();
        } catch (Exception e) {
            throw new SwitchYardException(e);
        }
    }
View Full Code Here

               
                // Remove, in case marked for undeployment as part
                // of replacing an existing deployed jar
                _undeployed.remove(_serviceName);
            } catch (Exception e) {
                throw new SwitchYardException(e);
            }
        }

        SwitchYardPropertyFunction.setPropertyResolver(_processName, _model.getModelConfiguration().getPropertyResolver());
        _serviceRefToCompositeMap.put(_serviceName, compositeName);
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.