It can be defined in jboss-app.xml, in the WEB-INF directory, like this:
<jboss-app> <app-name>myportletapp</app-name> </jboss-app>
I deployed a war in which I did not supply an <app-name> but there was an 'old' *-portal.xml in which I defined <portal-name>sso</portal-name>. The result was that my portlet was available as sso.MyPortlet. So it may be that your prior post is correct, but it appears that there is another way of deducing the application name.
What exactly is the purpose of application name and how is it determined?
still waiting for answer...just want to make sure this doesn't drop off the radar