cgl.narada.service.client
Class SessionService

java.lang.Object
  extended by cgl.narada.service.client.SessionService

public class SessionService
extends Object

A special class which provides the entry point to initiate communications


Constructor Summary
SessionService()
           
 
Method Summary
static ClientService getClientService(int entityId)
          Creates a new client service or gets a reference to an existing one
static ClientService getClientService(int entityId, ServiceBulletin bulletin)
          Creates a new client service or gets a reference to an existing one
static ClientService getClientService(int entityId, String configFileLocation)
          Creates a new client service or gets a reference to an existing one.
static void setServiceConfigurationLocation(String serviceConfigFileLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionService

public SessionService()
Method Detail

setServiceConfigurationLocation

public static void setServiceConfigurationLocation(String serviceConfigFileLocation)

getClientService

public static ClientService getClientService(int entityId)
                                      throws ServiceException
Creates a new client service or gets a reference to an existing one

Throws:
ServiceException

getClientService

public static ClientService getClientService(int entityId,
                                             String configFileLocation)
                                      throws ServiceException
Creates a new client service or gets a reference to an existing one. This method also allows a client to specify its configuration file location during this retrieval/creation of the client service.

Parameters:
entityId - The entity identifier of the client
configFileLocation - The location of the configuration file
Returns:
The client service instance
Throws:
ServiceException - if there are problems with the service request, such as the specification of an invalid entityId or configFileLocation.

getClientService

public static ClientService getClientService(int entityId,
                                             ServiceBulletin bulletin)
                                      throws ServiceException
Creates a new client service or gets a reference to an existing one

Throws:
ServiceException


For comments and suggestions please send e-mail to The NaradaBrokering Project