Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
Java EE (Java Enterprise Edition)
This discussion is archived
on Jun 11, 2012 8:30 AM by gimbal2
Problem with EJB Authentication
Jun 10, 2012 8:00 AM
I'm using Glassfish to develope an application and I've a problem: I don't know how to propagate credentials from the EJB's caller (a desktop application) to the server. I wrote this:
Properties prop=new Properties();
InitialContext ctx=new InitialContext(prop);
And then, I call a bean's method that returns an string with the caller's principal, like this:
But I obtain "ANONYMOUS". Can somebody tell me why? Thank you guys!
Edited by: 939703 on 10-jun-2012 1:00
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: Problem with EJB Authentication
Jun 11, 2012 8:30 AM
in response to
Product questions belong in the product's forum. In this case the Glassfish forum.