0 Replies Latest reply on Mar 5, 2008 9:55 AM by Annegret Sternagel

    How to get applicationname (name of the ear) from FacesConte

    Annegret Sternagel Newbie


      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");

      How can I get the applicationname (name of the ear) in jboss ?

      I'm using jboss-5.0.0.Beta4.

      Any ideas welcome.