Hi, We have MVC archittecute based application. typically we are using JSP for front end and Servlets and EJB for controller and modelling etc. I have a regrtation module that spans acroos three jsp pages ( we have next button for navigation). Application is registered in 3 steps, 1st page takes individual info, press next 2nd page takes address info , press next and in 3rd page entitre application is submitted. Now the problem is that in each apge all the information is being serilaized and and thats taking long time when next button is pressed to go to next page, someone suggested that a singleton class can be used as a pseudo stateful session bean. But I am not sure how we can do that ? Please give me your opinions. Thanks
Sorry for posting a reply so late ! I would suggest you to use some J2EE patterns (marketing word to say : "Patterns applied to J2EE" ). Basically this problem is a recurring one & the best practice say that you usually should create a Session Facade (either as a Session Bean or an Entity Bean, but quiet often as a SessionBean). Any way quickly said this would reduce the Chattiness of the Application & bring on the Server a "Controler" (MVC). I would suggest you to give a deep look at Bill Venners' site or read the following book : Core J2EE Patterns - Best practice & Design Strategies, by Deepak ALUR, John CRUPI, Dan MALKS, publ. @ PRENTICE HALL (ISBN : 0-13-064884-1). Anyway as EJB is build upon RMI I would also suggest you to look at "Tips & tricks" to improve RMI performance. Without going into details you may create a few ValueObject & ValueObject Assembler and provide an implementation of the readObject (), writeObject (). [ April 20, 2002: Message edited by: Thomas SMETS ]
Just another developper
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop