| java.lang.Object jndi.WSIFJndiHelper
WSIFJndiHelper | public class WSIFJndiHelper (Code) | | A JNDI helper class for binding and unbinding
services and stubs
author: Owen Burroughs |
Method Summary | |
public static void | bindService(String wsdl, String sNS, String sName, String ptNS, String ptName, String jndiName) Given the elements of a WSIFServiceRef, create and bind the
service using JNDI under the specified name. | public static void | bindService(WSIFServiceRef ref, String jndiName) Given a WSIFServiceRef, create and bind the
service using JNDI under the specified name. | public static void | bindStub(String wsdl, String sNS, String sName, String ptNS, String ptName, String portName, String cls, String jndiName) Given the elements of a WSIFServiceStubRef, create and bind the
stub using JNDI under the specified name. | public static void | bindStub(WSIFServiceStubRef ref, String jndiName) Given a WSIFServiceStubRef, create and bind the
stub using JNDI under the specified name. | public static Context | getInitialContext() | public static void | recursiveBind(String name, Object obj) A helper method to recursively bind an object using JNDI. | public static void | recursiveUnbind(String name) A helper method to unbind an object using JNDI. | public static void | setInitialContext(Context c) | public static void | unbindServiceOrStub(String name) A helper method to unbind a service or stub using JNDI. |
bindService | public static void bindService(String wsdl, String sNS, String sName, String ptNS, String ptName, String jndiName) throws NamingException(Code) | | Given the elements of a WSIFServiceRef, create and bind the
service using JNDI under the specified name.
Parameters: wsdl - The location of the wsdl file Parameters: sNS - The namespace for the service as specified in the wsdl Parameters: sName - The name of the service required, as specified in the wsdl Parameters: ptNS - The namespace of the port type required, as specified in the wsdl Parameters: ptName - The name of the port type required, as specified in the wsdl Parameters: jndiName - The full JNDI name under which the service will be bound exception: A - NamingException thrown if an error occured when working with JNDI |
bindService | public static void bindService(WSIFServiceRef ref, String jndiName) throws NamingException(Code) | | Given a WSIFServiceRef, create and bind the
service using JNDI under the specified name.
Parameters: ref - A WSIFServiceRef object reference for the service Parameters: jndiName - The full JNDI name under which the service will be bound exception: A - NamingException thrown if an error occured when working with JNDI |
bindStub | public static void bindStub(String wsdl, String sNS, String sName, String ptNS, String ptName, String portName, String cls, String jndiName) throws NamingException(Code) | | Given the elements of a WSIFServiceStubRef, create and bind the
stub using JNDI under the specified name.
Parameters: wsdl - The location of the wsdl file Parameters: sNS - The namespace for the service as specified in the wsdl Parameters: sName - The name of the service required, as specified in the wsdl Parameters: ptNS - The namespace of the port type required, as specified in the wsdl Parameters: ptName - The name of the port type required, as specified in the wsdl Parameters: portName - The name of the preferred port to use Parameters: cls - The fully qualified name of the interface class for the stub Parameters: jndiName - The full JNDI name under which the service will be bound exception: A - NamingException thrown if an error occured when working with JNDI |
bindStub | public static void bindStub(WSIFServiceStubRef ref, String jndiName) throws NamingException(Code) | | Given a WSIFServiceStubRef, create and bind the
stub using JNDI under the specified name.
Parameters: ref - A WSIFServiceRef object reference for the service Parameters: jndiName - The full JNDI name under which the service will be bound exception: A - NamingException thrown if an error occured when working with JNDI |
recursiveBind | public static void recursiveBind(String name, Object obj) throws NamingException(Code) | | A helper method to recursively bind an object using JNDI. Any subcontexts
required that do not currently exist will be created.
Parameters: name - The full JNDI name under which the object will be bound. Parameters: obj - The object to bind exception: A - NamingException thrown if an error occured when working with JNDI |
recursiveUnbind | public static void recursiveUnbind(String name) throws NamingException(Code) | | A helper method to unbind an object using JNDI. Any subcontexts left
empty by the unbinding will be destoyed.
Parameters: name - The full JNDI name of object to be unbound. exception: A - NamingException thrown if an error occured when working with JNDI |
setInitialContext | public static void setInitialContext(Context c)(Code) | | Sets the InitialContext to be used
Parameters: ctx - The InitialContext |
unbindServiceOrStub | public static void unbindServiceOrStub(String name) throws NamingException(Code) | | A helper method to unbind a service or stub using JNDI. Any subcontexts left
empty by the unbinding will be destoyed.
Parameters: name - The full JNDI name of service or stub to be unbound. exception: A - NamingException thrown if an error occured when working with JNDI |
|
|