You are looking at documentation for an older release. Not what you want? See the current release documentation.
Initial Context Binder is responsible for binding references at
runtime, persisting in file and automatically rebinding. The Java temp directory
is used to persist references in the
bind-references.xml file by default.
In case it is necessary to define a special file, it can be done by adding parameter to the
Service provide methods for binding reference:
public void bind(String bindName, String className, String factory, String factoryLocation, Map<String, String> refAddr) throws NamingException, FileNotFoundException, XMLStreamExcept
bindName - Name of binding
className - The fully-qualified name of the class of the object to which this Reference refers.
factory - The name of the factory class for creating an instance of the object to which this Reference refers.
factoryLocation - The location of the factory class.
refAddr - Object's properties map.
public void bind(String bindName, Reference ref) throws NamingException, FileNotFoundException, XMLStreamExcept
Returns reference associated with the defined name:
public Reference getReference(String bindName)
Unbind the Reference with the defined name:
public void unbind(String bindName) throws NamingException, FileNotFoundException, XMLStreamException