Hi,
I'm porting an application deployed in WebSphere ApplicationServer to jboss. In this context I have to generate a lookupname to a SessionBean dynamically. The SessionBean is deployed with JNDIName "earname/Beanname/local".
For WebSphere the following call is implemented:
String appName = (String)FacesContext.getCurrentInstance().getExternalContext().getApplicationMap().get("com.ibm.websphere.servlet.enterprise.application.name");