Examples of EventBrokerException


Examples of org.wso2.carbon.event.core.exception.EventBrokerException

            TopicConnection topicConnection = topicConnectionFactory.createTopicConnection();
            topicConnection.start();
            return topicConnection;
        } catch (NamingException e) {
            throw new EventBrokerException("Can not create the initial context", e);
        } catch (JMSException e) {
            throw new EventBrokerException("Can not create topic connection", e);
        } catch (Exception e){
            throw new EventBrokerException("Can not create topic connection", e);
        } finally {
            if (initialContext != null){
                try {
                    initialContext.close();
                } catch (NamingException e) {
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

            topicSubscriber.setMessageListener(jmsMessageListener);

            this.subscriptionIDSessionDetailsMap.put(subscription.getId(),
                    new JMSSubscriptionDetails(topicSubscriber, topicSession, topicConnection));
        } catch (JMSException e) {
            throw new EventBrokerException("Can not subscribe to topic " + subscription.getTopicName() + " " + e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

            topicPublisher.close();
            topicSession.close();
            topicConnection.stop();
            topicConnection.close();
        } catch (JMSException e) {
            throw new EventBrokerException("Can not publish to topic " + topicName + " " + e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

        try {
            if (jmsSubscriptionDetails != null){
               jmsSubscriptionDetails.renewSubscription(subscription);
            }
        } catch (JMSException e) {
            throw new EventBrokerException("Can not renew the subscription ", e);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

               topicIndexResource.addProperty(subscription.getId(), subscription.getTopicName());               
            }
            userRegistry.put(fullPath, topicIndexResource);

        } catch (RegistryException e) {
            throw new EventBrokerException("Can not save to registry ", e);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

                    }
                }
            }

        } catch (RegistryException e) {
            throw new EventBrokerException("Can not access the registry ", e);
        }
        return subscriptions;
    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

                return subscription;
            } else {
                return null;
            }
        } catch (RegistryException e) {
            throw new EventBrokerException("Can not access the registry ", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

                for (String key : properties.keySet()) {
                    subscriptionResource.setProperty(key, properties.get(key));
                }
                userRegistry.put(subscriptionPath, subscriptionResource);
            } else {
                throw new EventBrokerException("Can not find the resouce to the subscription with" +
                        " id " + subscription.getId());
            }
        } catch (RegistryException e) {
            throw new EventBrokerException("Can not access the registry ", e);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

                userRegistry.put(fullPath, topicIndexResource);
            }

        } catch (RegistryException e) {
            throw new EventBrokerException("Can not access the registry ", e);
        }


    }
View Full Code Here

Examples of org.wso2.carbon.event.core.exception.EventBrokerException

                    isAdmin = true;
                    break;
                }
            }
        } catch (UserStoreException e) {
            throw new EventBrokerException("Failed to get list of user roles", e);
        }

        return isAdmin;
    }
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.