Designing Web applications for better performance

Hi,
Let me explain the scenario.
We are following MVC architecture, where we have our JSP pages interacting with a controller
servlet , which decides what action to performed . It is using request despatcher method to redirect
the request object to jsp pages.
We have most of jsp pages as entry screens. We are not using java beans, fearing the complexity of master
details forms . ( we dont know how to use "bean technolagy" in case of detail entry screens).
In forms at a time we can have max 50 rows , with each row having 10 columns. When a particular page
need to be displayes for editing (may be with already existing data), the servlet will populate objects
and jsp will access data from these objects. Once the data is accessed , these objects will be removed
from the session.
Since we are removing the objects from the session (not keeping it certain amount of time too), if the
servlet /another jsp requires some information, we are forced to use "hidden variables". In the current
scenario, we are having at least 40-50 hidden variables passing from a jsp page to servlet.
We decided not to use session objects fearing that it will give lot of problem to server. But now it
is making our client "fat".
Eventhogh our application is big, we are not using any database side coding like triggers,stored procedures
etc? Is this create performance problems?
When our application runs, many times we can find that the request will not get processed correctly
in jrun sever or some times we gets blank window or some time jrun default server hangs.
we are using Jrun 3.0 and Solaris_JDK_1.2.2_05.
Pl. find my following questions.
1. is this right way to do the things (hidden variables).
2. Is creating session variables is going to hamper the performance of the system?

Dear sandhyavk,
From my experience, you are better to put your hidden values into a JavaBean, simply a data object which is saved in a session, after you have accessed to it, you simply invalidate the session indeed. You can find more details from the following links from javaworld.com, I have adopted and amended it for my eIPO system, it is flexible and easy to maintain and understand.
* http://www.javaworld.com/javaworld/jw-01-2001/jw-0119-jspframe.html
* http://www.javaworld.com/javaworld/jw-01-2001/jw-0119-jspframe.html
I do hope that it can give you some ideas.
Best regards,
Anthony Lai

Similar Messages

  • Scale out SSAS server for better performance

    HI
    i have a sharepoint farm
    running performance point service in a server where ANaylysis srver,reporting server installed
    and we have anyalysis server dbs and cubes
    and a wfe server where secure store service running
    we have
    1) application server + domain controller
    2) two wfes
    1) sql server sharepoint
    1) SSAS server ( analysis server dbs+ reporting server)
    here how i scaled out my SSAS server for better performance 
    adil

    Just trying to get a definitive answer to the question of can we use a Shared VHDX in a SOFS Cluster which will be used to store VHDX files?
    We have a 2012 R2 RDS Solution and store the User Profile Disks (UPD) on a SOFS Cluster that uses "traditional" storage from a SAN. We are planning on creating a new SOFS Cluster and wondered if we can use a shared VHDX instead of CSV as the storage that
    will then be used to store the UPDs (one VHDX file per user).
    Cheers for now
    Russell
    Sure you can do it. See:
    Deploy a Guest Cluster Using a Shared Virtual Hard Disk
    http://technet.microsoft.com/en-us/library/dn265980.aspx
    Scenario 2: Hyper-V failover cluster using file-based storage in a separate Scale-Out File Server
    This scenario uses Server Message Block (SMB) file-based storage as the location of the shared .vhdx files. You must deploy a Scale-Out File Server and create an SMB file share as the storage location. You also need a separate Hyper-V failover cluster.
    The following table describes the physical host prerequisites.
    Cluster Type
    Requirements
    Scale-Out File Server
    At least two servers that are running Windows Server 2012 R2.
    The servers must be members of the same Active Directory domain.
    The servers must meet the requirements for failover clustering.
    For more information, see Failover Clustering Hardware Requirements and Storage Options and Validate
    Hardware for a Failover Cluster.
    The servers must have access to block-level storage, which you can add as shared storage to the physical cluster. This storage can be iSCSI, Fibre Channel, SAS, or clustered storage spaces that use a set of shared SAS JBOD enclosures.
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Design web application API codes to extensible and can adapt to change

    Design web application API codes to extensible and can adapt to change with little effort to cater to SOA architecture.
    How will you all design to cater for this kind of requirement?

    RonaldMacdonald wrote:
    Design web application API codes to extensible and can adapt to change with little effort to cater to SOA architecture.I don't worry about change until I can write something that can actually be used once. I worry about use before reuse.
    >
    How will you all design to cater for this kind of requirement?I use Spring. It helps.
    %

  • 2012 I purchased CS6 Design & Web premium for students for WINDOWS. Now I want to buy a macbook. Can I download the installation files for MAC OS X with my licensed serial number for free?

    2012 I purchased CS6 Design & Web premium for students for WINDOWS. Now I want to buy a macbook. Can I download the installation files for MAC OS X with my licensed serial number for free?

    Hi There,
    We would like to inform you that you have got the serial number for Mac, it would not work on Mac machine as it is OS specific.
    If you wish you use a mac machine that you can swap the platform please refer the below mentioned link.
    Link: Order product | Platform, language swap.
    Contact support via : Contact Customer Care
    Thanks,
    Atul Saini

  • Please help to modifiy this query for better performance

    Please help to rewrite this query for better performance. This is taking long time to execute.
    Table t_t_bil_bil_cycle_change contains 1200000 rows and table t_acctnumberTab countains  200000 rows.
    I have created index on ACCOUNT_ID
    Query is shown below
    update rbabu.t_t_bil_bil_cycle_change a
       set account_number =
           ( select distinct b.account_number
             from rbabu.t_acctnumberTab b
             where a.account_id = b.account_id
    Table structure  is shown below
    SQL> DESC t_acctnumberTab;
    Name           Type         Nullable Default Comments
    ACCOUNT_ID     NUMBER(10)                            
    ACCOUNT_NUMBER VARCHAR2(24)
    SQL> DESC t_t_bil_bil_cycle_change;
    Name                    Type         Nullable Default Comments
    ACCOUNT_ID              NUMBER(10)                            
    ACCOUNT_NUMBER          VARCHAR2(24) Y    

    Ishan's solution is good. I would avoid updating rows which already have the right value - it's a waste of time.
    You should have a UNIQUE or PRIMARY KEY constraint on t_acctnumberTab.account_id
    merge rbabu.t_t_bil_bil_cycle_change a
    using
          ( select distinct account_number, account_id
      from  rbabu.t_acctnumberTab
          ) t
    on    ( a.account_id = b.account_id
           and decode(a.account_number, b.account_number, 0, 1) = 1
    when matched then
      update set a.account_number = b.account_number

  • A web application for online music

    hi,everybody,now i want to develop a web application for online music using jsp.The function includes listening online and downloading,can anyone give me some advice or source code?thanks a lot.

    Hi,
    Download Apache Axis http://ws.apache.org/axis/.
    You may also need Xerces XML parser http://xml.apache.org/dist/xerces-j/.
    you can find a class called DynamicInvoker.java under \axis-1_4\samples\client and read the "readme: file in the same folder for classpath / other info..
    We had a similar requirement and were able to succesfully invoke the WS.
    U can use this class in your jsp to invoke any webservice by its URL, Function name and parameters.

  • What is the best way to replace the Inline Views for better performance ?

    Hi,
    I am using Oracle 9i ,
    What is the best way to replace the Inline Views for better performance. I see there are lot of performance lacking with Inline views in my queries.
    Please suggest.
    Raj

    WITH plus /*+ MATERIALIZE */ hint can do good to you.
    see below the test case.
    SQL> create table hx_my_tbl as select level id, 'karthick' name from dual connect by level <= 5
    2 /
    Table created.
    SQL> insert into hx_my_tbl select level id, 'vimal' name from dual connect by level <= 5
    2 /
    5 rows created.
    SQL> create index hx_my_tbl_idx on hx_my_tbl(id)
    2 /
    Index created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_stats.gather_table_stats(user,'hx_my_tbl',cascade=>true)
    PL/SQL procedure successfully completed.
    Now this a normal inline view
    SQL> select a.id, b.id, a.name, b.name
    2 from (select id, name from hx_my_tbl where id = 1) a,
    3 (select id, name from hx_my_tbl where id = 1) b
    4 where a.id = b.id
    5 and a.name <> b.name
    6 /
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=7 Card=2 Bytes=48)
    1 0 HASH JOIN (Cost=7 Card=2 Bytes=48)
    2 1 TABLE ACCESS (BY INDEX ROWID) OF 'HX_MY_TBL' (TABLE) (Cost=3 Card=2 Bytes=24)
    3 2 INDEX (RANGE SCAN) OF 'HX_MY_TBL_IDX' (INDEX) (Cost=1 Card=2)
    4 1 TABLE ACCESS (BY INDEX ROWID) OF 'HX_MY_TBL' (TABLE) (Cost=3 Card=2 Bytes=24)
    5 4 INDEX (RANGE SCAN) OF 'HX_MY_TBL_IDX' (INDEX) (Cost=1 Card=2)
    Now i use the with with the materialize hint
    SQL> with my_view as (select /*+ MATERIALIZE */ id, name from hx_my_tbl where id = 1)
    2 select a.id, b.id, a.name, b.name
    3 from my_view a,
    4 my_view b
    5 where a.id = b.id
    6 and a.name <> b.name
    7 /
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=8 Card=1 Bytes=46)
    1 0 TEMP TABLE TRANSFORMATION
    2 1 LOAD AS SELECT
    3 2 TABLE ACCESS (BY INDEX ROWID) OF 'HX_MY_TBL' (TABLE) (Cost=3 Card=2 Bytes=24)
    4 3 INDEX (RANGE SCAN) OF 'HX_MY_TBL_IDX' (INDEX) (Cost=1 Card=2)
    5 1 HASH JOIN (Cost=5 Card=1 Bytes=46)
    6 5 VIEW (Cost=2 Card=2 Bytes=46)
    7 6 TABLE ACCESS (FULL) OF 'SYS_TEMP_0FD9D6967_3C610F9' (TABLE (TEMP)) (Cost=2 Card=2 Bytes=24)
    8 5 VIEW (Cost=2 Card=2 Bytes=46)
    9 8 TABLE ACCESS (FULL) OF 'SYS_TEMP_0FD9D6967_3C610F9' (TABLE (TEMP)) (Cost=2 Card=2 Bytes=24)
    here you can see the table is accessed only once then only the result set generated by the WITH is accessed.
    Thanks,
    Karthick.

  • My mac says connect to a faster usb for better performance

    every time i connect my ipod the mac says:
    the ipod is connected to a low-speed USB 1.1 port. for better performance, you should connect it to a high-speed USB 2.0 port if one is available on your computer
    whats that about

    It means exactly what it says.
    This message will pop up when you connect a device (the iPod) that works with USB 2.0, to USB 1.1 port.
    USB 1.1 is 12 megabits per second.
    USB 2.0 is 460 megabits per second (60 ttimes faster).
    For better perfomrance, use a usb 2.0 port if your computer has one.
    Unfortunately, your iBook G3 does not have USB 2.0.

  • I need a clarification : Can I use EJBs instead of helper classes for better performance and less network traffic?

    My application was designed based on MVC Architecture. But I made some changes to HMV base on my requirements. Servlet invoke helper classes, helper class uses EJBs to communicate with the database. Jsps also uses EJBs to backtrack the results.
    I have two EJBs(Stateless), one Servlet, nearly 70 helperclasses, and nearly 800 jsps. Servlet acts as Controler and all database transactions done through EJBs only. Helper classes are having business logic. Based on the request relevant helper classed is invoked by the Servlet, and all database transactions are done through EJBs. Session scope is 'Page' only.
    Now I am planning to use EJBs(for business logic) instead on Helper Classes. But before going to do that I need some clarification regarding Network traffic and for better usage of Container resources.
    Please suggest me which method (is Helper classes or Using EJBs) is perferable
    1) to get better performance and.
    2) for less network traffic
    3) for better container resource utilization
    I thought if I use EJBs, then the network traffic will increase. Because every time it make a remote call to EJBs.
    Please give detailed explanation.
    thank you,
    sudheer

    <i>Please suggest me which method (is Helper classes or Using EJBs) is perferable :
    1) to get better performance</i>
    EJB's have quite a lot of overhead associated with them to support transactions and remoteability. A non-EJB helper class will almost always outperform an EJB. Often considerably. If you plan on making your 70 helper classes EJB's you should expect to see a dramatic decrease in maximum throughput.
    <i>2) for less network traffic</i>
    There should be no difference. Both architectures will probably make the exact same JDBC calls from the RDBMS's perspective. And since the EJB's and JSP's are co-located there won't be any other additional overhead there either. (You are co-locating your JSP's and EJB's, aren't you?)
    <i>3) for better container resource utilization</i>
    Again, the EJB version will consume a lot more container resources.

  • Need help with a customized interactive web application for  apparel

    Help!!!!
    Hi I am a web designer at beginners stage with web
    devlopment. I am seeking guidance on how to develop a customized
    interactive web application so that the end user can change color
    and patterns of apparel on vector images such as teamsports
    uniforms and tshirts. Once the design is customized to their liking
    they can save it with all of the spec information in a file to
    there desktop or to a database to send to the manufacturer.
    Also looking for a possible way to use a CMS so I can upload
    templates of the garment easily for the end user to customize
    online. Can this be done and if so how? This is an example the kind
    of application I am looking for:
    http://www.dynamicteamsports.com/elite/placeorder.jsp
    I am in desperate need of some brilliant developer to help
    with this.
    Thanks in advance for anyone who is willing to assist or give
    me guidance,
    Danka
    "Reap what you sew"

    some parts of that are doable using non-advanced skills, but
    will be difficult and unwieldly if there are more than a few
    colors/patterns.
    saving the image to the server is a bit more advanced and
    you're going to need some server-side scripting like php, perl, asp
    etc. in addition to some flash programming ability.

  • Web application for different groups

    I need to develop an application, which is used by 3 different group of people (each group from a different state, I might need to distinguish orders from different state). All the users data is stored in central LDAP server.
    I need to design schema for datbase and come up with a good architecture for web application (Servlets/jsp's etc).
    Guys, if you have worked on a similar project or if you have any suggestions on how to structure the application, please reply me with your suggestions and hints. I have to start working on this project from next week..I am planning to take few days for designing the application then I want to start coding

    I need to develop an application, which is used by 3
    different group of people (each group from a different
    state, I might need to distinguish orders from
    different state). All the users data is stored in
    central LDAP server.
    I need to design schema for datbase and come up with a
    good architecture for web application (Servlets/jsp's
    etc).
    Guys, if you have worked on a similar project or if
    you have any suggestions on how to structure the
    application, please reply me with your suggestions and
    hints. I have to start working on this project from
    next week..I am planning to take few days for
    designing the application then I want to start codingAre you getting paid? Are you willing to split that payment to those who help?

  • Ad Hoc Query Designer - Web Application

    Hello,
    I have created a Web application that has the 'Ad-Hoc Query Designer' item.
    When I go to create a new query I don't have the option (or I can't find it) to use any variables.
    Like in Analyzer I can run a query and it will ask me the values for the variables I have embedded in the query.
    How do I make that work using the 'Ad-Hoc Query Designer'
    Also I have problems with the application timing out, what timeout variable needs to be adjusted?
    Thanks,
    Nick

    You have to run the Launch query in browser from the query designer window, it will be the second icon from the top. This will open up the query in a browser and if the query has a selection screen the browser will launch the selection screen.
    For the application timing out, it is a parameter that has to be set in the instance profile of the BI application server. You can ask your basis team to increase the parameter 'rdisp/j2eetimeout'.
    Hope this helps
    EmJay
    Assign points if helpful

  • Learning about web design web application design

    hi :
    I wish to learn more about making web pages, web sites, web applications ..
    Can some forum members recommend books, tutorials url ... or any learning resources.
    Any good learning resource for javascript, CSS, ajax, jsp, JSF, ...
    Thanks in advance.
    Regards
    Airguns guy

    [w3schools.com|http://w3schools.com/] offer tutorials for html/css/xml/javascript/sql/php etc. Nice introductions and, for casual users of these technologies (like me), good references. More nuts and bolts and less design though.
    For Java (the language that this forum is concerned with) try Sun's online Tutorial which has lots of examples. Books and things can be found by googling this site - there are lots of posts like reply 3 [in this thread|http://forum.java.sun.com/thread.jspa?threadID=5306884].

  • How to upgrade the extended web application for FBA from MOSS 2007 to SharePoint 2010?

    Hi All,
    Currently my farm version is MOSS 2007 with SP3.
    I have a web application on port 80, and is based on windows authentication, and i extend it on the port 90, and the authentication is FBA with SqlServer.
    I know that SharePoint 2010 has a new claims based authentication, and in a single web application you can do both windows authentication and FBA.
    Now i want to know, when i migrate the MOSS 2007 port 80 and port 90, which method should i choose?
    1. in SharePoint 2010 farm, Create  a classic based web application on port 80, and extend it on port 90, enable FBA on port 90. It is the same as MOSS 2007.
    2. in SharePoint 2010 farm, Create a claims based web application, and enable both windows authentication and FBA.
    Thanks.

    FBA requires claims so you'll need to create a claims based web application. Whilst you might extend the site to give you a FBA portal the web application itself will have to be claims based.
    I would definitely be looking at using a database attach upgrade path in your case to give you the opportunity for testing as moving between authentication providers can be painful.

  • SQL Server 2012 license Web Application for Public

    Hi,
    We have ASP.NET application and planned to host public accessible. So All public users can see my web application, then share the link via twitter,facebook and Linkedin.
    Can You suggest me which licensing model is best for me like, SQL 2012 Standard With CAL model or Core Licensing model. 
    Thanks,
    Thangaraj

     You can call Microsoft 1-800-426-9400 Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to discuss licensing.
    Kalman Toth Database & OLAP Architect
    SELECT Query Video Tutorial 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Maybe you are looking for

  • File adapter input file format

    Here the communication scenario is as follows: read a file and send a message via XI to an inbound interface. A file adapter service has been defined. Message protocol 'file content conversion' has been chosen for the file adapter service. Next the f

  • Text Shift Uncontrollably Inside Accordion Widget

    Guys hi! I've been crashing my head for two days with this. Hope you will provide some help! I have an Accordion Widget with a very long text block inside one of the boxes (a list with over 80 lines). On the background to each second line I put a gre

  • Top part of MSN homepage is not displaying. Works in Chrome.

    Today, for the first time, the top of the MSN homepage is not displaying. It cuts off just below the top of the 9 scrolling windows. Thought it may be an MSN problem, so I opened up MSN in Chrome and works fine. Cleared cache and still not working. A

  • Adobe Reader 11 Compatability

    Is Adobe Reader 11 compatible with Windows XP?

  • Captivate 7.  How can I distribute audio across all of the slides?

    New to Captivate.  When I recorded the audio, I did not know to record it to all of the slides.  all the audio is on the first slide.  How can I distribute it across all of the video slides?