Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.remote
Interface RemoteService

All Superinterfaces:
  Remote

All Known Implementing Classes:
  BaseRemoteService, HessianService, HttpRemoteService

    public interface RemoteService

extends Remote

Interface of a Cayenne remote service.

Since:
  1.2
See Also:
  `HessianServlet`

Method Summary
`RemoteSession` | `establishSession()` Establishes a dedicated session with Cayenne DataChannel, returning session id.
`RemoteSession` | `establishSharedSession(String name)` Creates a new session with the specified or joins an existing one.
`Object` | `processMessage(ClientMessage message)` Processes message on a remote server, returning the result of such processing.

Method Detail

### establishSession

    RemoteSession establishSession()
                                   throws RemoteException

  Establishes a dedicated session with Cayenne DataChannel, returning session id.

  Throws:
    `RemoteException`

### establishSharedSession

    RemoteSession establishSharedSession(String name)
                                         throws RemoteException

  Creates a new session with the specified or joins an existing one. This method is used to bootstrap collaborating clients of a single "group chat".

  Throws:
    `RemoteException`

### processMessage

    Object processMessage(ClientMessage message)
                          throws RemoteException,
                                 Throwable

  Processes message on a remote server, returning the result of such processing.

  Throws:
    `RemoteException`
    `Throwable`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001–2014 Apache Cayenne. All rights reserved.