[
https://jira.jboss.org/jira/browse/JBNAME-12?page=com.atlassian.jira.plug...
]
Scott M Stark resolved JBNAME-12.
---------------------------------
Resolution: Done
The org.jboss.naming.BindingsInitializer has been created and the following
org.jnp.test.NamingMCUnitTest deployment illustrates its use:
<?xml version="1.0" encoding="UTF-8"?>
<deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_2_0.xsd"
xmlns="urn:jboss:bean-deployer:2.0">
<bean name="InitialContextFactory"
class="org.jboss.naming.InitialContextFactoryBean">
<property name="env">
<map class="java.util.Properties"
keyClass="java.lang.String" valueClass="java.lang.String">
<entry>
<key>java.naming.factory.initial</key>
<value>org.jnp.interfaces.LocalOnlyContextFactory</value>
</entry>
<entry>
<key>java.naming.factory.url</key>
<value>org.jboss.naming:org.jnp.interfaces</value>
</entry>
</map>
</property>
<depends>testSingletonNamingServer</depends>
</bean>
<bean name="JndiBindings"
class="org.jboss.naming.BindingsInitializer">
<property name="ctx">
<inject bean="InitialContextFactory"
property="ctx"/>
</property>
<property name="bindings">
<map keyClass="java.lang.String">
<entry>
<key>ints/1</key>
<value class="java.lang.Integer">1</value>
</entry>
<entry>
<key>strings/1</key>
<value class="java.lang.String">String1</value>
</entry>
<entry>
<key>bigint/1</key>
<value
class="java.math.BigInteger">123456789</value>
</entry>
<entry>
<key>env-props</key>
<value>
<map class="java.util.Properties"
keyClass="java.lang.String" valueClass="java.lang.String">
<entry>
<key>java.naming.factory.initial</key>
<value>org.jnp.interfaces.LocalOnlyContextFactory</value>
</entry>
<entry>
<key>java.naming.factory.url</key>
<value>org.jboss.naming:org.jnp.interfaces</value>
</entry>
</map>
</value>
</entry>
</map>
</property>
</bean>
<bean name="testSingletonNamingServer"
class="org.jnp.server.SingletonNamingServer">
</bean>
</deployment>
Create an BindingsInitializer bean
----------------------------------
Key: JBNAME-12
URL:
https://jira.jboss.org/jira/browse/JBNAME-12
Project: JBoss Naming
Issue Type: Sub-task
Components: naming
Affects Versions: 5.0.0.CR2
Reporter: Scott M Stark
Assignee: Scott M Stark
Fix For: 5.0.0.GA
We need an bean that can be used to populate a jndi environment of an mc deployment
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira