eXo Platform 3.0

- Prev
- Next

## Chapter 53. Initial Context Binder service

Initial Context Binder is responsible for binding references at runtime, persisting in file and automatically rebinding after restart. Java temp directory is used to persist references in bind-references.xml file.

### Note

Available since Kernel 2.2.1-GA

## API

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

## Configuration

A configuration example

    <component>
       <key>org.exoplatform.services.naming.InitialContextBinder</key>
       <type>org.exoplatform.services.naming.InitialContextBinder</type>
    </component>

- Prev
- Up
- Home
- Next