Constructor and Description |
---|
CardRemoteObject()
Creates a new
CardRemoteObject and automatically exports
it. |
public CardRemoteObject()
CardRemoteObject
and automatically exports
it. When exported, the object is enabled for remote access from outside
the card until unexported. Only when the object is enabled for remote
access can it be returned as the initial reference during selection or
returned by a remote method. In addition, remote methods can be invoked
only on objects enabled for remote access.public static void export(Remote obj) throws SecurityException
obj
- the remotely accessible objectSecurityException
- if the specified obj parameter is not owned by the caller
contextSystemException
- with the following reason codes:
SystemException.NO_RESOURCE
if too many
exported remote objects. All implementations must support a
minimum of 16 exported remote objects.
public static void unexport(Remote obj) throws SecurityException
Note:
obj
- the remotely accessible objectSecurityException
- if the specified obj parameter is not owned by the caller
contextCopyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms