Java Archi


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java Archi

  1. #1
    Mohit Guest

    Java Archi


    Out of these two architectures which one is more performance oriented and
    why ??

    1. Requests will be first gone to FrontController Servlet where authorization
    and authentication is done and then request is passed to one another SERVLET
    which will do business validations by calling EJB and forward the results
    to final jsp page. Servlet name is taken out from XML file based upon the
    URL type

    2. Requests wiil be first gone to FrontController Servlet where authorization
    and authentication is done and then request is passed to one another CLASS
    which will do business validations by calling EJBs and forwarding the results
    to jsp(View) . This class is initialized with Servletconfig and HttpRequest
    request through reflection (Command Pattern). Class name is decided from
    XML based upon the URL type.

  2. #2
    MarkN Guest

    Re: Java Archi


    Depends on a few things. But I would venture a guess that #1 probably would
    be faster. I would have to do some testing to be sure. But architectually,
    #2 is better. And it could be coded to work almost as well as #1. I am
    doing it like #2 and it is fast enough. I would rather have a flexible design
    and lose a little on speed(if I even am).


    Mark

    "Mohit" <mohit_rathi@hotmail.com> wrote:
    >
    >Out of these two architectures which one is more performance oriented and
    >why ??
    >
    >1. Requests will be first gone to FrontController Servlet where authorization
    >and authentication is done and then request is passed to one another SERVLET
    >which will do business validations by calling EJB and forward the results
    >to final jsp page. Servlet name is taken out from XML file based upon the
    >URL type
    >
    >2. Requests wiil be first gone to FrontController Servlet where authorization
    >and authentication is done and then request is passed to one another CLASS
    >which will do business validations by calling EJBs and forwarding the results
    >to jsp(View) . This class is initialized with Servletconfig and HttpRequest
    >request through reflection (Command Pattern). Class name is decided from
    >XML based upon the URL type.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center