Version 1

    Creating Bindings in JNDI

    The JBossNS 5.0.0.GA release contains a org.jboss.naming.BindingsInitializer POJO that allows one to bind entries into the JNDI server javax.naming.Context specified via its ctx property. The BindingsInitializer properties are:

    • ctx - the javax.naming.Context into which the bindings are rooted
    • bindings - a Map<String, ?> of the name to binding values to create in the ctx. Nested contexts can be specified by a name containing '/' separator characters. Any missing context along the path will be created.


    See the JBossNS POJOs page for an example of its usage in a jboss-beans.xml deployment.