Hi,
If you just need login then you can use the Form Based Login (FBL)
feature of Servlets and leverage the web container to do authentication,
so you dont need to write code . If you need login and also
self-registration where users can *create/manage* their own accounts,
then you need to do programatic authentication and need to write your
own code(or leverage an open source library).
If you want an architecture that is EJB-centric then petstore login &
self-registration process design may work for you.
You might want to look at the Adventure Builder instead since it has a
non-EJB design which uses DAOs for its model data and for
self-registration & login process. This will probably be a better fit.
Ther latest version of Adventure Builder is at
https://adventurebuilder.dev.java.net/ and there is an document
discussing the basic architecture of the web application at
http://java.sun.com/blueprints/code/adventure/1.0/docs/architecture.html
hth,
Sean
Maya menon wrote:
> All,
>
> I am thinking about the following architecture for a LOGIN process.
> How does this architecture look ?
>
>
> View -> ActionServlet[front controller] -> Action Classes -> Model
> Manager -> Session Facade [session ejb] - DAO
>
>
>
> Please tell me your opinions.
>
>
>
>
>
>
>
> */ashraf galal <ashrafwg@(protected):
>
> Maya;
>
> Be sure y use webSphere version 5 or higher I do beleive if you
> have 2 instances of websphere up and runing will do the work but
> this is my personal oppenion.
>
>
>
>
>
>
> Ashraf Galal
> (416)804-8359
> >From: Maya menon <maya_java@(protected)
> >Subject: Re: Design help >Date: Thu, 5 May 2005 11:23:10 -0700
> (PDT) > >Ashraf, > >Thanks for ur point >we will be using
> websphere. do u think websphere will handle it ? >I currently dont
> have webshere instance loaded on my pc... >hence i am asking it to
> u > > > > >ashraf galal <ashrafwg@(protected)
> an APIs that standardize checking supplied credentials. > >It is
> all about the contsainer (the vendor implementation of j2EE
> specification) )which implement JAAS. > >And how easy JAAS is to
> integrate with a J2ee SERVER VARIES BETWEEN SERVERS. > >So your
> questions regrding 1000 of users OR SO could be searched in your
> server documentation. > >Please check your server implemenation
> document under load balance or session replication > > > > > > > >
> ;Ashraf Galal >(416)804-8359 > >From: Maya menon
> <maya_java@(protected)
> Center J2EE Pattern Catalog <J2EEPATTERNS-INTEREST@(protected)>
> >To: J2EEPATTERNS-INTEREST@(protected)
> >Date: Thu, 5 May 2005 10:36:30 -0700 > >We will be having up to
> 1000 concurrent users trying to login. Can JAAS handle such a big
> load ? > > >"Bayarsaikhan VOLODYA (YAZ-ArGe)" <bayar@(protected)>
> wrote:the simplest way is to use struts with jaas. > >PS: i am not
> a fan of EJB too ;-) > >-----Original Message----- >From: An
> interest list for Sun Java Center J2EE Pattern Catalog
> [mailto:J2EEPATTERNS-INTEREST@(protected)
> >Sent: Wednesday, May 04, 2005 8:07 PM >To:
> J2EEPATTERNS-INTEREST@(protected),
> >Looking for a best design strategy. >Our client-server app is
> being converted to a web based app. The fi rst feature to be
> converted is "Login process". > >I am planning to have a jsp page
> with user id[currently we dont request > password from users], but
> I think password field is necessary. Now, when a valid user logs
> in, it should look at the database and display the messages
> available to the user from the database. This is what should
> happen. > >Now, there can be upto 1000 concurrent users. There can
> be 2500 users accessing the system in a 24 hour period. > >Which
> design pattern/patterns are best in a situation like this ? >I am
> not a fan of EJB, but will EJB be helpful here ? > >Need all
> suggestions and links to similar problems and solutions. >
> >Thanks, > > > >__________________________________________________
> >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam
> protection around >http://mail.yahoo.com
> ====================================================================
> Companion Site: http://www.corej2eepattern s.com J2EE BluePrints:
> http://java.sun.com/blueprints/corej2eepatterns List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff > J2EEPATTERNS-INTEREST" to
> listserv@(protected)
> >====================================================================
> Companion Site: http://www.corej2eepatterns.com J2EE BluePrints:
> http://java.sun.com/blueprints/corej2eepatterns List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> listserv@(protected) > > >---------------------------------
> >Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on
> your mobile phone. >
> >====================================================================
> >Companion Site: http://www.corej2eepatterns.com >J2EE BluePrints:
> http://java.sun.com/blueprints/corej2eepatterns >List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> >Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> listserv@(protected)
> >====================================================================
> Companion Site: http://www.corej2eepatterns.com J2EE BluePrints:
> http://java.sun.com/blueprints/corej2eepatterns List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> listserv@(protected) > >---------------------------------
> >Discover Yahoo! > Stay in touch with email, IM, photo sharing &
> more. Check it out!
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Make Yahoo! your home page
> <http://us.rd.yahoo.com/my/navbar/sethp/*http://www.yahoo.com/r/hs>
> ====================================================================
> Companion Site: http://www.corej2eepatterns.com J2EE BluePrints:
> http://java.sun.com/blueprints/corej2eepatterns List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> listserv@(protected)
====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)