Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User »

[JBoss-user] mdb & run-as

Stefan Groschupf

2003-08-12

Replies:

Hi there,
I'm sorry to ask for help with a problem that is discussed hundred times. Be
sure I had read all mails about that, the documentation and surf for hours
in the jboss web form.
However I have problems invoke an secured session bean from an message
driven bean.
I had tried following scenarios:
mda (run-as "Admin") >> secured session bean. Fails.
mda >> unsecured & ignore caller session bean (run-as "Admin"). >> secured
session bean. Fails.
It ignore the "run-as" and use every time my setuped
unauthenticatedIdentity;
I didn't find any hint where my guest user has any application role.

My login-config. file has an entry.
 <module-option name = "unauthenticatedIdentity">guest</module-option>
I can't remove this entry since I need it definitely in other situation. So
far I use an custom login in the message bean as workaround, but hard coding
a password smells.
What can I do without writing any own Security Interceptor or hard code a
password until an custom login?
Many thanks for any hints!!!
Stefan.






-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user


©2008 junlu.com - Jax Systems, LLC, U.S.A.