• Post Reply Bookmark Topic Watch Topic
  • New Topic

declarative security management Vs programmatic security management  RSS feed

Larr Goneg
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some questions related with security management,
1. If i use declarative security management, is that meaning that I don't have to do any login related model anywhere.
2. In petstore, It does not use any of the three login mechanisms specified by the J2EE platform (HTTP basic authentication, SSL authentication, or form-based login). But why? is it only because they want to decouple USER module and Customer module?
3. In petstore, there is a stateful session bean,ShoppingControllerEJB, which is used to cache the current customer, shoppingcart, etc.. My question is, when are those stuff set in the ShoppingControllerEJB, is it set when login? if so, if petstore also uses declarative security management, how could those info(for ext., customer) be set in the ShoppingControllerEJB?
I know those questions may be stupid or confusing, but I am really feeling uncertain about those issues.
Thanks for your reply!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!