geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Friede <>
Subject how to specify security realm in openejb-jar.xml
Date Mon, 22 May 2006 09:46:34 GMT

i try to secure my EJB's and then access them from a standalone 
java-client using the following connection properties

props.setProperty("java.naming.provider.url", "");
props.setProperty("", "system");
props.setProperty("", "manager");

specified the role in ejb-jar.xml


 <method-permission >
      <method >

and then mapped the role in openejb-jar.xml

name="Anonymous" />
        <security:role role-name="AdminRole">

Still i receive a "java.rmi.AccessException: access denied 
( Manager create,Home,)".

In the chapter EJB-Security (page 299) of his book (PDF) Aaron Mulder 
wrote that there is a "security-realm-name" element, but this is not 
included in the XSD and therefore deployment fails.

Is there another way to specify the security realm (to authenticate 
users against) in the file openejb-jar.xml, as in geronimo-web.xml?

Thanks for your help, Joerg Friede

View raw message