it.imolinfo.jbi4ejb.runtime.ejbproxy
Class StatelessEJBProxyFactory

java.lang.Object
  extended by it.imolinfo.jbi4ejb.runtime.ejbproxy.StatelessEJBProxyFactory

public final class StatelessEJBProxyFactory
extends java.lang.Object

A factory for creating StatelessEJBProxy objects.

Author:
Marco Piraccini

Method Summary
static StatelessEJBProxy createEJBProxy(java.io.File wsdl, ProviderServiceDescriptor serviceDescriptor, java.io.File tempDir, java.util.List<java.lang.String> jarFilesName)
          Creates the StatelessEJBProxy from the service description.
static StatelessEJBProxy getEJBFromCorbaname(java.lang.String wsdlPath, java.lang.String remoteInterfaceClassName, java.lang.String corbaName, java.util.Properties classesId, java.util.List<java.lang.String> jarFilesName, java.util.Properties orbParams)
          Gets the EJB from corbaname.
static StatelessEJBProxy getEJBFromCorbaname(java.lang.String wsdlPath, java.lang.String remoteInterfaceClassName, java.lang.String corbaName, java.util.Properties classesId, java.util.List<java.lang.String> jarFilesName, java.util.Properties orbParams, boolean dynamicClassLoading)
          Instantiates a new dynamic EJB client.
static StatelessEJBProxy getEJBFromCorbanameUsingRMIClassloader(java.lang.String wsdlPath, java.lang.String remoteInterfaceClassName, java.lang.String corbaName, java.util.Properties classesId, java.util.List<java.lang.String> jarFilesName, java.util.Properties orbParams)
          Gets the EJB from corbaname using RMI classloader.
static StatelessEJBProxy getEJBFromJNDIName(java.lang.String wsdlPath, java.lang.String remoteInterfaceClassName, java.lang.String jndiName, java.util.Properties jndiParams, java.util.Properties orbProperties, java.util.Properties classesId, java.util.List<java.lang.String> jarFilesName)
          Instantiates a new dynamic EJB proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createEJBProxy

public static StatelessEJBProxy createEJBProxy(java.io.File wsdl,
                                               ProviderServiceDescriptor serviceDescriptor,
                                               java.io.File tempDir,
                                               java.util.List<java.lang.String> jarFilesName)
                                        throws EJBDeployException
Creates the StatelessEJBProxy from the service description.

Parameters:
wsdl - the wsdl File
serviceDescriptor - the service descriotor
tempDir - the temp dir where to create the EJB proxy files
jarFilesName - the jars list
Returns:
the StatelessEJBProxy
Throws:
EJBDeployException - if some problem occurs in the ejb proxy creation

getEJBFromCorbaname

public static StatelessEJBProxy getEJBFromCorbaname(java.lang.String wsdlPath,
                                                    java.lang.String remoteInterfaceClassName,
                                                    java.lang.String corbaName,
                                                    java.util.Properties classesId,
                                                    java.util.List<java.lang.String> jarFilesName,
                                                    java.util.Properties orbParams)
                                             throws EJBWSDLGenerationException
Gets the EJB from corbaname.

Parameters:
wsdlPath - The path to the WSDL file
remoteInterfaceClassName - The remote interface class name
corbaName - The corba name
classesId - The classes UIDs
jarFilesName - The jar list to use to compile the classes
orbParams - The orb parameters
Returns:
the EJB from corbaname
Throws:
EJBWSDLGenerationException - if some proxy ejb generation occurs

getEJBFromCorbanameUsingRMIClassloader

public static StatelessEJBProxy getEJBFromCorbanameUsingRMIClassloader(java.lang.String wsdlPath,
                                                                       java.lang.String remoteInterfaceClassName,
                                                                       java.lang.String corbaName,
                                                                       java.util.Properties classesId,
                                                                       java.util.List<java.lang.String> jarFilesName,
                                                                       java.util.Properties orbParams)
                                                                throws EJBWSDLGenerationException
Gets the EJB from corbaname using RMI classloader.

Parameters:
wsdlPath - The path to the WSDL file
remoteInterfaceClassName - The remote interface class name
corbaName - The corba name
classesId - The classes UIDs
jarFilesName - The jar list to use to compile the classes
orbParams - The orb parameters
Returns:
the EJB from corbaname using RMI classloader
Throws:
EJBWSDLGenerationException - if some proxy ejb generation occurs

getEJBFromJNDIName

public static StatelessEJBProxy getEJBFromJNDIName(java.lang.String wsdlPath,
                                                   java.lang.String remoteInterfaceClassName,
                                                   java.lang.String jndiName,
                                                   java.util.Properties jndiParams,
                                                   java.util.Properties orbProperties,
                                                   java.util.Properties classesId,
                                                   java.util.List<java.lang.String> jarFilesName)
                                            throws EJBWSDLGenerationException
Instantiates a new dynamic EJB proxy.

Parameters:
wsdlPath - The complete WSDL path
remoteInterfaceClassName - The remote interface name
classesId - The Hashtable containing the clasess UIDS
jarFilesName - The jar list to use to compile the generated classes
jndiName - The jndi name
jndiParams - The jndi properties
orbProperties - The ORB properties
Returns:
the EJB proxy
Throws:
EJBWSDLGenerationException - If some problem occurs

getEJBFromCorbaname

public static StatelessEJBProxy getEJBFromCorbaname(java.lang.String wsdlPath,
                                                    java.lang.String remoteInterfaceClassName,
                                                    java.lang.String corbaName,
                                                    java.util.Properties classesId,
                                                    java.util.List<java.lang.String> jarFilesName,
                                                    java.util.Properties orbParams,
                                                    boolean dynamicClassLoading)
                                             throws EJBWSDLGenerationException
Instantiates a new dynamic EJB client.

Parameters:
wsdlPath - The complete WSDL path
remoteInterfaceClassName - The remote interface name
corbaName - The corba name to use
classesId - The Hashtable containing the clasess UIDS
jarFilesName - The jar list to use to compile the generated classes
orbParams - The ORB params
dynamicClassLoading - If true, try to dinamically load stubs and classes using the RMIClassLoader
Returns:
The EJB proxy
Throws:
EJBWSDLGenerationException - If some problem occurs


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.