Try lookup "java:app/AppName", you will get the name of the EAR without the suffix .ear.
Reply to this message by going to Community
Start a new discussion in JBoss AS 7 Development at Community