Now from Tomcat I am tring to access this bean. For this I created a servlet whose code is given below.
But I am getting the following error in the tomcat server screen
"javax.naming.NameNotFoundException: greetJndi not bound"
I am not getting this is the configuration eror or the directory structure of jar that I deploied in JBoss is wrong.
Any one can help to resolve the problem?