electric.service.ejb
Class StatelessSessionBeanService

java.lang.Object
  extended byelectric.service.ejb.StatelessSessionBeanService
All Implemented Interfaces:
IContextHolder, IEXMLLoggingConstants, IGLUELoggingConstants, IHasClassLoader, ILoggingConstants, IReference, IService

public class StatelessSessionBeanService
extends java.lang.Object
implements IService, IReference, IHasClassLoader, IGLUELoggingConstants

StatelessSessionBeanService

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.glue.IGLUELoggingConstants
CLUSTER_DEBUG_EVENT, CLUSTER_EVENT, CONSOLE_DEBUG_EVENT, DEPLOY_EVENT, DETECTORS_EVENT, HTTP_EVENT, JMS_EVENT, REBINDING_EVENT, SECURITY_DEBUG_EVENT, SECURITY_DETAIL_EVENT, SERVLET_EVENT, SOAP_EVENT
 
Fields inherited from interface electric.xml.IEXMLLoggingConstants
MAPPING_EVENT, SCHEMA_EVENT
 
Fields inherited from interface electric.util.log.ILoggingConstants
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT
 
Constructor Summary
StatelessSessionBeanService(java.lang.String contextFactory, java.lang.String url, java.lang.String jndiName)
           
StatelessSessionBeanService(java.lang.String contextFactory, java.lang.String url, java.lang.String jndiName, java.lang.String homeClassName)
           
 
Method Summary
static void create(java.lang.String name, java.lang.String contextFactory, java.lang.String url, java.lang.String jndiName, java.lang.String homeClassName)
          Deprecated.  
static void create(java.lang.String name, java.lang.String contextFactory, java.lang.String url, java.lang.String jndiName, java.lang.String homeClassName, Context ctx)
          Deprecated.  
static void disable()
           
static void enable()
           
 java.lang.ClassLoader getClassLoader()
           
 Context getContext()
           
 java.lang.String getDescription()
          Return the service description.
protected  XURL[] getEndpoints()
           
protected  java.lang.Class getInterface()
           
 java.lang.String getNamespace()
          Return the namespace.
 IReference getReference()
          Return a reference to this service.
 WSDL getWSDL()
          Return WSDL for this service.
 Value invoke(java.lang.reflect.Method method, java.lang.Object[] args, Context context)
          Invoke the operation associated with a particular method, using the specified arguments.
 Value invoke(java.lang.String method, java.lang.Object[] args, java.lang.Class[] argTypes, Context context)
          Invoke the operation associated with a particular method, using the specified arguments and argument types.
 Value invoke(java.lang.String method, java.lang.String[] args, Context context)
          Invoke the operation associated with a particular method, using the specified arguments.
static boolean isEnabled()
           
 void setContext(Context context)
           
 void setDescription(java.lang.String description)
          Set the service description.
 void setNamespace(java.lang.String namespace)
          Set the namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessSessionBeanService

public StatelessSessionBeanService(java.lang.String contextFactory,
                                   java.lang.String url,
                                   java.lang.String jndiName)
                            throws java.lang.Exception
Parameters:
contextFactory -
url -
jndiName -
Throws:
java.lang.Exception

StatelessSessionBeanService

public StatelessSessionBeanService(java.lang.String contextFactory,
                                   java.lang.String url,
                                   java.lang.String jndiName,
                                   java.lang.String homeClassName)
                            throws java.lang.Exception
Parameters:
contextFactory -
url -
jndiName -
homeClassName -
Throws:
java.lang.Exception
Method Detail

getContext

public Context getContext()
Specified by:
getContext in interface IContextHolder

setContext

public void setContext(Context context)
Specified by:
setContext in interface IContextHolder
Parameters:
context -

getDescription

public java.lang.String getDescription()
Return the service description.


setDescription

public void setDescription(java.lang.String description)
Set the service description.

Parameters:
description -

getNamespace

public java.lang.String getNamespace()
Return the namespace.


setNamespace

public void setNamespace(java.lang.String namespace)
Set the namespace.

Parameters:
namespace -

invoke

public Value invoke(java.lang.reflect.Method method,
                    java.lang.Object[] args,
                    Context context)
             throws java.lang.Throwable
Invoke the operation associated with a particular method, using the specified arguments.

Specified by:
invoke in interface IReference
Parameters:
method - The method to invoke
args - The arguments.
context - The context.
Throws:
java.lang.Throwable - If an exception occurs.

invoke

public Value invoke(java.lang.String method,
                    java.lang.Object[] args,
                    java.lang.Class[] argTypes,
                    Context context)
             throws java.lang.Throwable
Invoke the operation associated with a particular method, using the specified arguments and argument types. If more than one operation matches the method name and argument types, a NoSuchMethodException is thrown.

Specified by:
invoke in interface IReference
Parameters:
method - The name of the method to invoke
args - The arguments.
argTypes - The type of the arguments,.
context - The context.
Throws:
java.lang.Throwable - If an exception occurs.

invoke

public Value invoke(java.lang.String method,
                    java.lang.String[] args,
                    Context context)
             throws java.lang.Throwable
Invoke the operation associated with a particular method, using the specified arguments. If more than one operation matches the method name and argument count, a NoSuchMethodException is thrown.

Specified by:
invoke in interface IReference
Parameters:
method - The name of the method to invoke
args - The arguments, expressed as strings.
context - The context.
Throws:
java.lang.Throwable - If an exception occurs.

getReference

public IReference getReference()
Return a reference to this service.

Specified by:
getReference in interface IService

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface IHasClassLoader
Returns:

getWSDL

public WSDL getWSDL()
Return WSDL for this service. The WSDL is cached for use by subsequent requests.

Specified by:
getWSDL in interface IService

enable

public static void enable()

isEnabled

public static boolean isEnabled()

disable

public static void disable()

create

public static void create(java.lang.String name,
                          java.lang.String contextFactory,
                          java.lang.String url,
                          java.lang.String jndiName,
                          java.lang.String homeClassName)
                   throws java.lang.Exception
Deprecated.  

Parameters:
name -
contextFactory -
url -
jndiName -
homeClassName -
Throws:
java.lang.Exception

create

public static void create(java.lang.String name,
                          java.lang.String contextFactory,
                          java.lang.String url,
                          java.lang.String jndiName,
                          java.lang.String homeClassName,
                          Context ctx)
                   throws java.lang.Exception
Deprecated.  

Parameters:
name -
contextFactory -
url -
jndiName -
homeClassName -
ctx -
Throws:
java.lang.Exception

getEndpoints

protected XURL[] getEndpoints()
                       throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getInterface

protected java.lang.Class getInterface()
                                throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException


copyright© 2001-2004 by webMethods All Rights Reserved.