|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class provides the means to remotely access Interchange server functionality from a client application. To get the instance registered by the Interchange server do something similar to the following: //get the RMI registry on the host where the Interchange //server is running registry = LocateRegistry.getRegistry(REGISTRY_HOST_ADDRESS, Registry.REGISTRY_PORT); //get the Interchange server object registered by the server server = (RemoteInterchangeServer)registry.lookup("InterchangeServer");
Method Summary | |
boolean |
isRunning()
Determines if Interchange Server is running. |
void |
removeDocumentListener(RemoteDocumentListener listener)
Remove a DocumentListener from the queue of listener's the Interchange Server is calling. |
void |
removeEventListener(InterchangeEventListener listener)
Remove an EventListener from the queue of listener's the Interchange Server is calling. |
java.lang.String |
sendDocument(IntegrationDocument document)
Send the document to the indicated recipient via the Interchange Server engine.The document contents will be backed up before Interchange packages and sends the document. |
java.lang.String |
sendDocument(IntegrationDocument document,
boolean backup)
Send the document to the indicated recipient via the Interchange Server engine |
java.lang.String |
sendDocument(IntegrationDocument document,
boolean backup,
boolean synchronousSend)
Send the document to the indicated recipient via the Interchange Server engine |
void |
setDocumentListener(RemoteDocumentListener listener)
Registers a listener to be notified upon the arrival of an inbound document. |
void |
setEventListener(InterchangeEventListener listener)
Registers an EventListener to be notified upon the generation of any event. |
Method Detail |
public java.lang.String sendDocument(IntegrationDocument document) throws java.rmi.RemoteException
document
- The documentjava.rmi.RemoteException
- public java.lang.String sendDocument(IntegrationDocument document, boolean backup) throws java.rmi.RemoteException
document
- The documentbackup
- True to backup the document contents to Interchange's backup directory
before packaging.
False otherwise. False will not backup the file, and documents that fail
to send will not be resent by Interchange.java.rmi.RemoteException
- public java.lang.String sendDocument(IntegrationDocument document, boolean backup, boolean synchronousSend) throws java.rmi.RemoteException
document
- The documentbackup
- True to backup the document contents to Interchange's backup directory
before packaging.
False otherwise. False will not backup the file, and documents that fail
to send will not be resent by Interchange.synchronousSend
- True to package and send the document before returning.
Only one connection and send attempt will be made. Any error will result
in a RemoteException being thrown.java.rmi.RemoteException
- public void setDocumentListener(RemoteDocumentListener listener) throws java.rmi.RemoteException
listener
- InterchangeDocumentListener to register.java.rmi.RemoteException
- public void setEventListener(InterchangeEventListener listener) throws java.rmi.RemoteException
listener
- InterchangeEvenetListener to register.java.rmi.RemoteException
- public void removeEventListener(InterchangeEventListener listener) throws java.rmi.RemoteException
listener
- EventListener to remove.java.rmi.RemoteException
- public void removeDocumentListener(RemoteDocumentListener listener) throws java.rmi.RemoteException
listener
- DocumentListener to remove.java.rmi.RemoteException
- public boolean isRunning() throws java.rmi.RemoteException
java.rmi.RemoteException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |