Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9225481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:35:13+00:00 2026-06-18T04:35:13+00:00

I do like to experiment on JBoss from a long time. Now I am

  • 0

I do like to experiment on JBoss from a long time.
Now I am facing some problem during authentication on role management with Resteasy on JBoss7.1.

Let me explain the problem.
Just i started a simple Web Application on Jboss7 with implementation of Resteasy. I am able to login by authenticating the user-role. The Problem comes when i am trying to logout. I found during Login if you do securityContext.getUserPrinicials.getName() , The username is the output as that is authenticated. But there is no session is managed for that user. so what would be the best way to implement the Logout functionality. I am pretty new to Jboss7 and Resteasy both.. Apology if i have said anything wrong..
Thanks In Advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:35:14+00:00Added an answer on June 18, 2026 at 4:35 am

    I am also new to Resteasy .Servlet 3.0 module has something to do this.
    I got some idea from here.

    As you have not given your sample code i have tested this following code for logout that is working fine..

        //import things
    
    @Path("/userrealam")
    public class UserService {
        @Context HttpServletRequest request;
        @Context HttpServletResponse response;
    
    
            @GET
            @Path("logout")
            @Produces({MediaType.TEXT_PLAIN})
            public void logout() throws JAXBException, IOException {
                try {
                            if (request.getUserPrincipal() != null){
                            request.logout();
                          }
                          }
                 catch (Exception e) {
                        }
    
              }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to experiment with some kernel mode programming. What simulation environments could
I'm trying to experiment with array_splice and I get an output like this (from
I do experiment with LINQ since some time. Typical method to enumerate through a
I have the following simple problem that I'd like to use to experiment with
As an experiment, I wrote some code that looks like class MyClass @var =
I'm doing some threaded asynchronous networking experiment in python, using UDP. I'd like to
Just started to experiment with HTML5 features and really like the localStorage. And now
I'd like to experiment with NHaml . Can I use the NHaml view engine
I'm starting to experiment with CouchDB because it looks like the perfect solution for
I've done a small experiment as will be shown below and it looks like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.