I even copied the Calculate.java which is the interface into my web application but it never worked.
Object ref = jndiContext.lookup("CalculateBean/remote");
Please can anyone help me out with this........thanx in advance
do you have an EAR file containing EJB jar and WAR file? If yes, the global JNDI name of the EJB should bei "EARName/CalculateBean/remote".
Don't include the "class" files of your EJB in the web app. Your approach of using the "Java EE Module dependencies" is the correct one.