We are using WebSphere 5.1 for our web applications. We want to install two separate EAR files on a Single Application Server. These EARs have common EJBs, so we have to apply "prefix" at deployment time , so that they get unique JNDI names after deployment. We will also use MULTIPLE Class Loader policy, so that these EARs have separate class loaders.
Question i have is, what is the best practice to get the "prefix" used at deployment time to lookup EJBs. We have a Java Object that hides the Session Beans and performs all the Lookups using another helper class.