This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Logging issues in web services 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 » Java » Web Services
Bookmark "Logging issues in web services" Watch "Logging issues in web services" New topic
Author

Logging issues in web services

Mayur Somani
Greenhorn

Joined: Apr 14, 2008
Posts: 26
I have an EJB web service (which uses @RolesAllowed on method level) and a RESTful web service on glassfish. I want to configure user authentication for both.

I want to log every every client calls into a log file. I want to log successful login, failed login and also log if the user is not authorized to call a specific EJB web service method based on the @RolesAllowed. What do I need to do for this?

I think there are two methodsto do this. Either I implement a custom realm in glassfish, but in that I don't know how I can log on the basis of @RolesAllowed. The other way is that if the user enters wrong login details, then she must be given access to my service as anonymous user and then I'll log the message in the service methods. What do you think about these approaches? Any other way to implement the login?

Any inputs are welcome.

Thank you for your time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logging issues in web services
 
Similar Threads
JAAS in WebServices
JSF2 + EJB3 + JPA to perform authentication and authorization.
Trying to access web service protected with JAAS role-based security
Basic Authentication on a Web Service [WebSphere 7 for developer]
How do logon or set principle/roles/groups when using Embedded API