Package org.exolab.jms.net.connector

Examples of org.exolab.jms.net.connector.Caller


            throws RemoteException {
        super(orb, null, true);
        if (connection == null) {
            throw new IllegalArgumentException("Argument 'connection' is null");
        }
        Caller caller = orb.getCaller();
        if (caller == null) {
            throw new ExportException("Can't determine remote caller");
        }
        _uri = caller.getRemoteURI().toString();
        orb.addCallerListener(_uri, this);
        _connection = connection;
    }
View Full Code Here


         * @param callback the callback to register
         */
        public synchronized void addCallback(Callback callback) {
            super.addCallback(callback);
            try {
                Caller caller = _orb.getCaller();
                _orb.addCallerListener(caller.getRemoteURI().toString(), this);
            } catch (RemoteException exception) {
                _exception = exception;
            }
        }
View Full Code Here

     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObjectTo(Object object) throws ExportException,
            StubNotFoundException {
        Caller caller = (Caller) _caller.get();
        if (caller == null) {
            throw new ExportException("Cannot export - no current caller");
        }
        return doExportTo(object, caller.getLocalURI());
    }
View Full Code Here

            Runnable invoker = new Runnable() {
                public void run() {
                    Response response;
                    try {
                        Request request = invocation.getRequest();
                        Caller caller = invocation.getCaller();
                        response = invoke(request, caller);
                    } catch (Throwable exception) {
                        response = new Response(exception);
                    }
                    invocation.setResponse(response);
View Full Code Here

TOP

Related Classes of org.exolab.jms.net.connector.Caller

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.