Priya,
The lookup depends on the type of client. For a Web client (
servlet or
JSP) -- assuming the Web client and the EJB are part of the same J2EE application:
Replace
EjbName with the actual name of your EJB (as defined in the "ejb-jar.xml" descriptor file)
For a stand-alone
java class (that's not part of the J2EE application):
Note that the above is purely from memory. Please verify it.
Good Luck,
Avi.