|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.client.net.SharedORB
Shared ORB
instance.
Fields inherited from interface org.exolab.jms.net.orb.ORB |
PROVIDER_URI, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL |
Method Summary | |
void |
addCallerListener(java.lang.String uri,
org.exolab.jms.net.connector.CallerListener listener)
Register a caller event listener. |
void |
addRoute(java.lang.String uri,
java.lang.String toURI)
Add a route for exported objects. |
org.exolab.jms.net.proxy.Proxy |
exportObject(java.lang.Object object)
Export an object on the default URI. |
org.exolab.jms.net.proxy.Proxy |
exportObject(java.lang.Object object,
java.rmi.server.ObjID objID)
Export an object with a well known identifier on the default URI. |
org.exolab.jms.net.proxy.Proxy |
exportObject(java.lang.Object object,
java.rmi.server.ObjID objID,
java.lang.String uri)
Export an object with a well known identifier on a specific URI. |
org.exolab.jms.net.proxy.Proxy |
exportObject(java.lang.Object object,
java.lang.String uri)
Export an object on a specific URI. |
org.exolab.jms.net.proxy.Proxy |
exportObjectTo(java.lang.Object object)
Export an object to the current remote caller. |
org.exolab.jms.net.proxy.Proxy |
exportObjectTo(java.lang.Object object,
java.lang.String uri)
Export an object to a specific URI. |
org.exolab.jms.net.proxy.Proxy |
exportObjectTo(java.lang.Object object,
java.lang.String uri,
java.lang.String principal,
java.lang.String credentials)
Export an object to a specific URI. |
org.exolab.jms.net.connector.Caller |
getCaller()
Returns the current caller. |
static org.exolab.jms.net.orb.ORB |
getInstance()
Returns the singleton ORB instance. |
org.exolab.jms.net.registry.LocalRegistry |
getRegistry()
Returns a reference to the registry service. |
org.exolab.jms.net.registry.Registry |
getRegistry(java.util.Map properties)
Returns a reference to a remote registry service. |
void |
removeCallerListener(java.lang.String uri,
org.exolab.jms.net.connector.CallerListener listener)
Deregister a caller event listener. |
void |
shutdown()
Shuts down the ORB. |
void |
unexportObject(java.lang.Object object)
Unexport an object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void addRoute(java.lang.String uri, java.lang.String toURI) throws java.rmi.RemoteException
addRoute
in interface org.exolab.jms.net.orb.ORB
uri
- the URI to routetoURI
- the URI to route tojava.rmi.RemoteException
- for any errorpublic org.exolab.jms.net.registry.LocalRegistry getRegistry() throws java.rmi.RemoteException
getRegistry
in interface org.exolab.jms.net.orb.ORB
java.rmi.RemoteException
- if the service cannot be exportedpublic org.exolab.jms.net.registry.Registry getRegistry(java.util.Map properties) throws java.rmi.RemoteException
getRegistry
in interface org.exolab.jms.net.orb.ORB
properties
- the connection properties. May be null
.java.rmi.RemoteException
- for any errorpublic org.exolab.jms.net.proxy.Proxy exportObject(java.lang.Object object) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
exportObject
in interface org.exolab.jms.net.orb.ORB
object
- the object to exportjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic org.exolab.jms.net.proxy.Proxy exportObject(java.lang.Object object, java.lang.String uri) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
exportObject
in interface org.exolab.jms.net.orb.ORB
object
- the object to exporturi
- the URI via which connections to the object are made. If
null
, the default URI is used.java.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic org.exolab.jms.net.proxy.Proxy exportObject(java.lang.Object object, java.rmi.server.ObjID objID) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
exportObject
in interface org.exolab.jms.net.orb.ORB
object
- the object to exportobjID
- the well known object identifierjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic org.exolab.jms.net.proxy.Proxy exportObject(java.lang.Object object, java.rmi.server.ObjID objID, java.lang.String uri) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
exportObject
in interface org.exolab.jms.net.orb.ORB
object
- the object to exportobjID
- the well known object identifieruri
- the URI via which connections to the object are madejava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic org.exolab.jms.net.proxy.Proxy exportObjectTo(java.lang.Object object) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
exportObjectTo
in interface org.exolab.jms.net.orb.ORB
object
- the object to exportjava.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic org.exolab.jms.net.proxy.Proxy exportObjectTo(java.lang.Object object, java.lang.String uri) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
exportObjectTo
in interface org.exolab.jms.net.orb.ORB
object
- the object to exporturi
- the target URI from which connections to the object are
made.java.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic org.exolab.jms.net.proxy.Proxy exportObjectTo(java.lang.Object object, java.lang.String uri, java.lang.String principal, java.lang.String credentials) throws java.rmi.server.ExportException, java.rmi.StubNotFoundException
exportObjectTo
in interface org.exolab.jms.net.orb.ORB
object
- the object to exporturi
- the target URI from which connections to the object
are made.principal
- the security principal. May be null
credentials
- the security credentials. May be null
java.rmi.server.ExportException
- if the object cannot be exportedjava.rmi.StubNotFoundException
- if the proxy class cannot be foundpublic void unexportObject(java.lang.Object object) throws java.rmi.NoSuchObjectException
unexportObject
in interface org.exolab.jms.net.orb.ORB
object
- the object to exportjava.rmi.NoSuchObjectException
- if the object isn't exportedpublic org.exolab.jms.net.connector.Caller getCaller() throws java.rmi.RemoteException
getCaller
in interface org.exolab.jms.net.orb.ORB
null
if no call is in
progressjava.rmi.RemoteException
- for any errorpublic void addCallerListener(java.lang.String uri, org.exolab.jms.net.connector.CallerListener listener) throws java.rmi.RemoteException
addCallerListener
in interface org.exolab.jms.net.orb.ORB
uri
- the remote URI to listen onlistener
- the listener to notifyjava.rmi.RemoteException
- for any errorpublic void removeCallerListener(java.lang.String uri, org.exolab.jms.net.connector.CallerListener listener) throws java.rmi.RemoteException
removeCallerListener
in interface org.exolab.jms.net.orb.ORB
uri
- the remote URI the listener is listening for events onlistener
- the listener to removejava.rmi.RemoteException
- for any errorpublic void shutdown() throws java.rmi.RemoteException
shutdown
in interface org.exolab.jms.net.orb.ORB
java.rmi.RemoteException
- for any errorpublic static org.exolab.jms.net.orb.ORB getInstance() throws java.rmi.RemoteException
java.rmi.RemoteException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |