Take the 2-minute tour ×

I want to declare a new JNDI variable in the JBoss 4.0.5 server. Can someone please explain how this can be done?

waiting for your replies.


share|improve this question
add comment

3 Answers

Found these two links that can help...

create a file called filename-service.xml under $CATALINA_BASE$/deploy directory with contents as indicated in these links


check a jboss jira, JBPAPP-2809 for correction in xmlns:jndi

share|improve this answer
add comment

I am facing this probelm too today. Looks like to add a simple jndi entry on the app server, in JBoss one will have to create a new file $CATALINA_BASE/conf/context.xml and invoke a MBean to add the variable and its value.

In server like websphere you can pass new values in jndi.properties, which jboss 5.0.0 upwards does not like.

Very Bad that there is absolutely NO DOCUMENTATION in jboss/docs that indicate anything on this topic.

share|improve this answer
add comment

Have a look here and specifically here. You need to add an entry in the ejb-jar.xml file of your application.

share|improve this answer
Hi, could you please let me know where is this context.xml is placed? because, in the link you gave, it is specified that the context.xml present in $CATALINA_BASE/conf/context.xml but, I' not able to find this file in my Jboss. (it's inside default\deploy\jbossweb-tomcat55.sar folder) –  Vraa Feb 6 '09 at 11:32
Ignore the previous answer. –  kgiannakakis Feb 6 '09 at 12:11
add comment

Your Answer

