wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes web.xml element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "web.xml element "run-as"" Watch "web.xml element "run-as"" New topic
Author

web.xml element "run-as"

Naichen Liu
Ranch Hand

Joined: Aug 17, 2000
Posts: 46
Hi, I got two questions
1). The "run-as" element is so unclear to me, since we already have "security-role-ref" under "servlet" to do mapping between servlet code and container environment, why do we need to use "run-as"?
2). I passed programmer certification last year, I have the certificate but lost the grade sheet, can I take part in this web component test?
Thanks
Naichen
anders eriksson
Greenhorn

Joined: Nov 02, 2001
Posts: 8
I think run-as has to do with calling EJBs from your web app. It allows your app to become a certain user in the view of the called EJB.
Haven't tested it though...
/Anders
Tim Duncan
Ranch Hand

Joined: Aug 20, 2001
Posts: 150
Originally posted by Naichen Liu:
2). I passed programmer certification last year, I have the certificate but lost the grade sheet, can I take part in this web component test?

I'm sure that Sun keep records in fact if you can remember your Prometric testing ID you can see it at http://www.galton.com/~sun/
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Hi, I am resurrecting this thread. The explanation here doesn't seem to make sense to me. What are you declaring when you use run-as. There is already a servlet-mapping. So we are running this servlet as say. MyRunAsServlet. Who uses this name, and why do you assign a role to it. Unless only those within the role can run this servlet as MyRunAsServlet
Any suggestions?
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
I think this will be used when one make his app as distributed app.
but still I am not clear abt "run-as" ??
any one some more light regarding this..
TIA
CMIW
I serached net .. and could not found any info but WebLogic Server 6.0 do not support "run-as" feature
[ June 16, 2002: Message edited by: Ravish Kumar ]

"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
I will really be greatful if some one can explain me "run-as" as I could not find any resourec to know abt it ... (I searched a lot on google... I think google needs update.. it should provide facility for case sensitive searh and should consider as/a/in if they are is double quotes...)
and AFA security-role-ref is concerned that is used for securing servlet programatically
good article on security-role-ref
 
wood burning stoves
 
subject: web.xml element "run-as"
 
Similar Threads
smtp
Intialization Parameters for JSPs
New to XML
EJB security questions
Servlets JRUN