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 8173497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:10:41+00:00 2026-06-06T22:10:41+00:00

I just want to ask if anybody has done something like this. Basically, it’s

  • 0

I just want to ask if anybody has done something like this. Basically, it’s like paypal express checkout functionality:

1.) You select item for checkout in merchant store.

2.) You will be redirected to a login page, in my case I implemented it as a Jersey Rest Servlet. On post, store the data in a session EJB backing bean and invoke Response.seeOther() to redirect to the login page (JSF).

3.) If the login is successful the posted transaction data should be persisted.

But it seems, while I can invoke the session backing bean, store the posted data in a variable inside that bean. When I click login (login ok) and I re-access the same bean, the variable where I store the posted data becomes null.

So is session scope not shared between Jersey Rest Servlet and Session scope backing bean in ejb?

Any other good approach?

Thanks,

czetsuya

  • 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-06T22:10:43+00:00Added an answer on June 6, 2026 at 10:10 pm

    After trying to solve this problem, I’ve come to a conclusion that it’s not possible to share jsf session to jersey or servlet session because they are implemented in a different way.

    My solution to my problem (not answer to the question) is to use HttpServlet, and store the transaction as a session attribute:

    HttpSession session = request.getSession(true);
    session.setAttribute("POSTED_ITEMS", postedItems);
    

    So I’ll be able to access it to the next page.

    *I wish there’s a way to post to a jsf page backed by javaee6 bean, that’ll make life simple :-).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to ask if anybody else is also having problems with this;
Can you help me on this one? Just want to ask on how to
I'm wondering if anybody has run across something similar to this before. Some quick
i just want to ask if do i need to set something to enable
I just want to ask something about my code. #define LIM 40 main() {
I just want to ask, I am new to Java and I would like
just want to ask anyone here can solve this problem? I want to create
Just want to ask the gurus out there about this. I know that CSS
i just want to ask about jQuery . Can jQuery do this: <h1 id=lorem-ipsum>Hello
I just want to ask if this is the correct way to use select,from

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.