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.