What kind of application it is and how do you pack and start it?
Actually my progress is changed a little.
I did not change jndi properties under /jboss/server/default/conf.I copied file under my source code PROJECT/src and
add url provider line to file.now I am able to run code only as such.
But I did not understand that why application is not able to
search jndi.properties under java_home. If I copy file to under my java home, I am not also able to run application.
what is the correct way.I also tried to run application as jar file, copied jndi.properties same directory, it did not work also.
I normally include the jndi.properties in the JMV -cp path settings or pack it with the client's jar file.
For clients with configuration files I also use the application configuration file and read the properties from here.