Setting Method Permissions in EJB
---------------------------------
I have deployed a stateless Session Bean with three methods in Remote Interface ..Want to grant access to one of them for a particular role defined in weblogic.properties ..How do i go abt doing it...i have given in my Deployment Descriptor the access to only one method(ejb-jar.xml) ..but still it allows me to access all methods .....That means it is not doing any access control..Is there any other setting also required.
Thanks in advance
-
Setting Method Permissions in EJB (4 messages)
- Posted by: Goprinks R
- Posted on: April 19 2001 06:35 EDT
Threaded Messages (4)
- Setting Method Permissions in EJB by Kailash Vasani on April 19 2001 06:51 EDT
- Setting Method Permissions in EJB by Goprinks R on April 19 2001 08:42 EDT
-
Setting Method Permissions in EJB by Tony Brookes on April 19 2001 01:52 EDT
- Setting Method Permissions in EJB by Raghuram Ethirajan on April 21 2001 08:19 EDT
-
Setting Method Permissions in EJB by Tony Brookes on April 19 2001 01:52 EDT
- Setting Method Permissions in EJB by Goprinks R on April 19 2001 08:42 EDT
-
Setting Method Permissions in EJB[ Go to top ]
- Posted by: Kailash Vasani
- Posted on: April 19 2001 06:51 EDT
- in response to Goprinks R
It appears that u have given * in your deployment descriptor, while generating that. Do check your descriptor again & assign all the methods the required security role individually
Cheers,
Kailash -
Setting Method Permissions in EJB[ Go to top ]
- Posted by: Goprinks R
- Posted on: April 19 2001 08:42 EDT
- in response to Kailash Vasani
Hi kailash,
In my posted question i have said i have given only to one method the access right in DD ..but in my client application if i call otehr method it works fine....what cld be the problem -
Setting Method Permissions in EJB[ Go to top ]
- Posted by: Tony Brookes
- Posted on: April 19 2001 13:52 EDT
- in response to Goprinks R
I believe, although I could be wrong, that if you don't specify any required role for the other methods then they will simply let anything run them.
Set the other methods up with a role your supplied credentials don't have and try it again.
Chz
Tony -
Setting Method Permissions in EJB[ Go to top ]
- Posted by: Raghuram Ethirajan
- Posted on: April 21 2001 20:19 EDT
- in response to Tony Brookes
Hi,
There is no point of giving only method in your deplyment descriptor.It doesn't make any difference for the container. Actually, you bean accessed through JNDI using Home interface in which you would have mentioned all the four methods. As far as I know, you have to control itby changing something is your weblogic properties file. I am not sure about it!!!
Regards,
Ragu