-
1. Re: name space bindings in jboss
kakani Jan 28, 2009 8:19 AM (in response to kakani)context : migrating the application from websphere to jboss application server
Problem :
web sphere allows name space binding using the admin console as shown below
1. Select Environment > Naming > Name Space Bindings
2. Select 'Server : server1'
3. Click 'Apply'
4. Click 'New'
5. Binding type 'String', Next
6. Binding Identifier 'myproperty Url'
7. Name in Name Space 'myPropertyUrl'
8. String Value file:///C:/dev/abc/abc_sources/abc/src/test/resources/abc.properties Next
9. Finish
10. Save
i am accessing this property value in spring application context file as shown in the below snippet.<bean id="propertyFile" class="org.springframework.core.io.UrlResource"> <constructor-arg type="java.lang.String"> <ref bean="propertyUrl" /> </constructor-arg> </bean>
after migration , jboss is throwing the below mentioned exception with out the mypropertyUrl configuration.
javax.naming.NameNotFoundException: myPropertyUrl not bound
javax.naming.NameNotFoundException: myPropertyUrl not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
........................
..........................
......
how can i get rid of this exception in Jboss ?
how can i configure the mypropertyUrl as a jndi key in jboss ?
please let me know if you need any further information about the issue.
Thanks & Regards
Yughandhar -
2. Re: name space bindings in jboss
kakani Jan 28, 2009 8:39 AM (in response to kakani)context : migrating the application from websphere to jboss application server
Problem :
web sphere allows name space binding using the admin console as shown below
1. Select Environment > Naming > Name Space Bindings
2. Select 'Server : server1'
3. Click 'Apply'
4. Click 'New'
5. Binding type 'String', Next
6. Binding Identifier 'myproperty Url'
7. Name in Name Space 'myPropertyUrl'
8. String Value file:///C:/dev/abc/abc_sources/abc/src/test/resources/abc.properties Next
9. Finish
10. Save
i am accessing this property value in spring application context file as shown in the below snippet.<bean id="propertyUrl" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>myPropertyUrl</value> </property> </bean>
after migration , jboss is throwing the below mentioned exception with out the mypropertyUrl configuration.
javax.naming.NameNotFoundException: myPropertyUrl not bound
javax.naming.NameNotFoundException: myPropertyUrl not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
........................
..........................
......
how can i get rid of this exception in Jboss ?
how can i configure the mypropertyUrl as a jndi key in jboss ?
please let me know if you need any further information about the issue.
Thanks & Regards
Yughandhar