Hi,

I'm taking the first steps into XDoclet and security (with JBoss), with
security domains in jboss-web.xml and jboss.xml.

I find that I cannot create my Local interfaces without adding the following
tags to my ejbCreate method
     * @ejb.create-method
     * @ejb.permission role-name="myGroup"   
otherwise I get an error:
    java.lang.SecurityException: No method permissions assigned to
method=create
If I add the tags then it works (which is nice).

But then I can't call any *other* methods in the Local interface unless I
add the same @ejb.permission tag specifically to them. 

However, this seems to fail completely in JBoss with the same exception (but
instead the name of the method, of course!).

I searched the archives and came up with the following JBoss/XDoclet
thread...the solution works!!!!
http://www.jboss.org/forums/thread.jsp?forum=49&thread=18587&message=3734955
&q=no+method+permissions+assigned#3734955
In summary:
"you must not specify the <method-intf/> tag in the depl. descr if you have
an bean, which view type is only Local.
iam using xdoclet for generating and xdoclet generates the <method-intf/>
tag also if the beans vietype is only Local"

Has anyone got any more info on this they could enlighten me with? (or am I
doing something fundamentally wrong here?)

TIA

Chris
-=-=-=

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to