org.jcoderz.commons.config
Class ConfigurationServiceClientFactory

java.lang.Object
  extended by org.jcoderz.commons.config.ConfigurationServiceClientFactory

public final class ConfigurationServiceClientFactory
extends Object

Client factory to create the ConfigurationService (ConfigurationServiceInterface) and the ConfigurationServiceAdmin (ConfigurationServiceAdminInterface). The factory can only be used in a standalone EJB client. Do not use this factory in a J2EE container context (EJB, Web, ...).

Author:
generated

Method Summary
static ConfigurationServiceAdminInterface createAdmin()
          Returns a remote instance of the ConfigurationServiceAdminInterface.
static ConfigurationServiceInterface createService()
          Returns a remote instance of the ConfigurationServiceInterface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createService

public static ConfigurationServiceInterface createService()
                                                   throws RemoteException,
                                                          CreateException,
                                                          NamingException
Returns a remote instance of the ConfigurationServiceInterface.

Returns:
a remote instance of the ConfigurationServiceInterface.
Throws:
RemoteException - communication-related exceptions that may occur during the execution of a remote method call.
CreateException - if the creation the EJB object failed.
NamingException - if the lookup of the EJB object failed.

createAdmin

public static ConfigurationServiceAdminInterface createAdmin()
                                                      throws RemoteException,
                                                             CreateException,
                                                             NamingException
Returns a remote instance of the ConfigurationServiceAdminInterface.

Returns:
a remote instance of the ConfigurationServiceAdminInterface.
Throws:
RemoteException - communication-related exceptions that may occur during the execution of a remote method call.
CreateException - if the creation the EJB object failed.
NamingException - if the lookup of the EJB object failed.


Copyright 2007 The jCoderZ Project.