Package org.objectweb.celtix

Examples of org.objectweb.celtix.BusException


                ResourceResolver rr = clz.newInstance();
                resolvers.add(rr);
            }
        } catch (Exception ex) {
            throw new BusException(ex);
        }
    }
View Full Code Here


        bus = b;
        try {
            factory = WSDLFactory.newInstance();
            registry = factory.newPopulatedExtensionRegistry();
        } catch (WSDLException e) {
            throw new BusException(e);
        }
        definitionsMap = new WeakHashMap<Object, Definition>();
        // null check for the unit test
        if (bus != null) {
            bus.sendEvent(new ComponentCreatedEvent(this));
View Full Code Here

            factory.init(bus);
            for (String namespace : namespaces) {
                registerTransportFactory(namespace, factory);
            }
        } catch (ClassNotFoundException e) {
            throw new BusException(e);
        } catch (InstantiationException e) {
            throw new BusException(e);
        } catch (IllegalAccessException e) {
            throw new BusException(e);
        }
    }
View Full Code Here

            for (String namespace : namespaceURIs) {
                registerBinding(namespace, factory);
            }
        } catch (ClassNotFoundException cnfe) {
            throw new BusException(cnfe);
        } catch (InstantiationException ie) {
            throw new BusException(ie);
        } catch (IllegalAccessException iae) {
            throw new BusException(iae);
        }
    }
View Full Code Here

        // apply all changes to configuration and metadata and (re-)activate
        try {
            String address = getAddressFromContext(serverContext);
            if (!isContextBindingCompatible(address)) {
                throw new IllegalArgumentException(
                    new BusException(new Message("BINDING_INCOMPATIBLE_CONTEXT_EXC", LOG)));
            }
            publish(address);
        } catch (Exception ex) {
            throw new WebServiceException(ex);
        }  
View Full Code Here

            bindingId = SOAPBinding.SOAP11HTTP_BINDING;
        }
       
        BindingFactory factory = bus.getBindingManager().getBindingFactory(bindingId);
        if (null == factory) {
            throw new BusException(new Message("BINDING_FACTORY_MISSING_EXC", LOG, bindingId));
        }
        ServerBinding bindingImpl = factory.createServerBinding(reference, this);
        assert null != bindingImpl;
        return bindingImpl;
View Full Code Here

        cache = eventCache;
    }

    public void addListener(BusEventListener l, BusEventFilter filter) throws BusException {
        if (l == null) {
            throw new BusException(new Message("Listener can't be null", LOG));
        }

        synchronized (listenerList) {
            listenerList.add(new BusEventListenerInfo(l, filter));
        }
View Full Code Here

                }
            }          
        }

        if (!found) {
            throw new BusException(
                      new Message("Error while removing listener. Specified listener is not found.",
                                  LOG));
        }
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.BusException

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.