Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

authenticate anonymous user of a web app to the EJB tier

Laurent Raynal
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We would like to have all the (anonymous) users of a web app authenticated with the same principal (the web app "owner") to the EJB tier. Our problem is that the fact that web users are unauthenticated seem to propagate to the EJB tier. We're using Weblogic 5.1.
Users are serviced by a session statefull EJB. We set up the EJB when the user first accesses the application : user and password are set in the JNDI context and subsequent method calls on the EJB corresponding to the same HTTP request are authenticated. However, when the servlet accesses its session EJB on the 2nd hit, it won't be authenticated.
Any ideas ?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic