Have you configured the realm-name in sun-ejb-jar.xml as well? If the realm name specified in not specified in sun-application.xml, it is obtained from sun-ejb-jar.xml. If the realm name is not specified in both the descriptors, it is defaulted to the file realm.
Also, while accessing the EJB's from the standalone client, are you specifying the configured realmName ?
[Message sent by forum member 'nitkal' (nithya.subramanian_at_sun.com)]
http://forums.java.net/jive/thread.jspa?messageID=387576