org.apache.wsif.providers.jca
Class WSIFUtils_JCA

java.lang.Object
  extended by org.apache.wsif.util.WSIFUtils
      extended by org.apache.wsif.providers.jca.WSIFUtils_JCA

public class WSIFUtils_JCA
extends WSIFUtils

A utility class with methods simplifying the JNDI lookup of a ConnectionFactory.

Author:
Piotr Przybylski

Constructor Summary
WSIFUtils_JCA()
           
 
Method Summary
static java.lang.String getJNDILookupName(javax.wsdl.Service service, javax.wsdl.Port port)
          Returns the default lookup name created from the Service namespace, Service name and Port name.
static ConnectionFactory lookupConnectionFactory(java.lang.String res_ref_name, java.lang.String res_type)
          Returns a Connection Factory from the JNDI context.
 
Methods inherited from class org.apache.wsif.util.WSIFUtils
addDefinedItems, createSimpleTypesMap, getAllItems, getBindingOperation, getBindingOperation, getDefinitionFromContent, getDefinitionFromLocation, getExtensionRegistry, getFormatHandler, getFormatHandlerName, getFormatStylePackage, getJavaClassNameFromXMLName, getJavaClassNameFromXMLName, getJavaNameFromXMLName, getJavaNameFromXMLName, getNamedItem, getPackageNameFromNamespaceURI, getPackageNameFromXMLName, getSimpleTypesMap, getWrappedDocLiteralPart, getXSDNamespaceFromPackageName, initializeProviders, isJNDIAvailable, isWrappedDocLiteral, readWSDL, readWSDL, readWSDL, readWSDL, readWSDL, readWSDL, readWSDL, readWSDL, readWSDLThroughAuthProxy, selectPortType, selectService, unWrapPart, wildcardCompare, writeWSDL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFUtils_JCA

public WSIFUtils_JCA()
Method Detail

getJNDILookupName

public static java.lang.String getJNDILookupName(javax.wsdl.Service service,
                                                 javax.wsdl.Port port)
Returns the default lookup name created from the Service namespace, Service name and Port name. The default lookup name is used if there is no explicit lookup name value specified in the Resource Adapter address extensibility element.

Parameters:
service -
port -
Returns:
String

lookupConnectionFactory

public static ConnectionFactory lookupConnectionFactory(java.lang.String res_ref_name,
                                                        java.lang.String res_type)
Returns a Connection Factory from the JNDI context. The order of search is to use the component's local naming context (java:comp/env/) first, then the global naming context. If the lookup fails or the lookup result does not match res_type, null is returned.

Parameters:
res_ref_name -
res_type -
Returns:
ConnectionFactory


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.