Package org.wso2.carbon.event.core.exception

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


               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

                    }
                }
            }

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

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

                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

                userRegistry.put(fullPath, topicIndexResource);
            }

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


    }
View Full Code Here

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

        return isAdmin;
    }
View Full Code Here

    protected TopicConnectionFactory getTopicConnectionFactory(InitialContext initialContext)
                                              throws EventBrokerException {
        try {
            return  (TopicConnectionFactory) initialContext.lookup(CF_NAME);
        } catch (NamingException e) {
            throw new EventBrokerException("Can not look up the connection factory ", e);
        }
    }
View Full Code Here

                        matchingSubscriptions.add(subscription);
                    }
                }
            }
        } catch (RegistryException e) {
            throw new EventBrokerException("Can not get the Registry ", e);
        }

        return matchingSubscriptions;
    }
View Full Code Here

            Resource root = userRegistry.get(this.topicStoragePath);
            TopicNode rootTopic = new TopicNode("/", "/");
            buildTopicTree(rootTopic, (Collection) root, userRegistry);
            return rootTopic;
        } catch (RegistryException e) {
            throw new EventBrokerException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.event.core.exception.EventBrokerException

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.