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

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

    annegret

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


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

      I'm using jboss-5.0.0.Beta4.

      Any ideas welcome.

      Annegret