[jboss-user] [JNDI/Naming/Network] - name space bindings in jboss

kakani do-not-reply at jboss.com
Wed Jan 28 08:10:58 EST 2009


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.

		<constructor-arg type="java.lang.String">
			
		</constructor-arg>


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
Yughandhar


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205229#4205229

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205229



More information about the jboss-user mailing list