I am using EJB 3.1 in my application.
I want to send one EJB's JNDI look-up name in my application to another application so that it can use that at run time & communicate with my EJB. As the look-up name depends upon the name of the ear files deployed on the EJB container & the name of these ear files will be changing every time any changes are done in my application.
What is the procedure of finding out the look-up name of the any EJB programmatically.