• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Better Authentication Method

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to login from Adobe BlazeDS to my EJB. BlazeDS may or may not matter for my questions. BlazeDS has a POJO that references the EJB with InitialContext. The POJO gets the user name and password from the BlazeDS session variables that another method has set. The POJO calls login in the EJB and then a business method.

Can the EJB be stateless? I read that stateless EJBs cannot maintain state between method calls. Is there no state even if I call two business methods within the same POJO method? The POJO initializes the EJB during construction as an instance variable.

Is there an better alternative to my login mechanism? I don't think JAAS roles fit my needs, as I use user-based permissions. In my application, I need to check whether a user has been granted access to individual database rows.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I think it is ok to use BlazeDS for many things but not for login since you need to create a session object to store information about the user.
Why don't you just use HttpService for that? It should be straightforward.
Some info that you might find helpful:

http://simplyolaf.blogspot.com/2009/07/adobe-flex-with-struts-2-using.html
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic