Results 1 to 2 of 2
Thread: Servlet JDBC
- 04-02-2010, 12:30 PM #1Member
- Join Date
- Apr 2010
- Rep Power
Can anyone please help me with pointing to the right direction on webapplications.
I have a table in the database that returns 50K rows when running a query. I have been reading through some books and forums, SDN including that a correct way to access the database is through the Business tier EJB session beans and JPA and access these objects from Servlets. I understand that and I have an example that works using paging so I do not need to send all 50K records at once. My question is, the resultset retrieves entity objects and I have to create data transfer objects for each one of them to send to the GWT client? Doesn't it mean I have twice as much objects in the memory at a time to compare with accessing database through JDBC from Servlets directly? In the later case I wouldn't have any entity objects and occupy less memory? Is it completely wrong idea?
- 04-02-2010, 01:27 PM #2
- By morya123 in forum New To JavaReplies: 2Last Post: 12-09-2009, 10:58 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 04-01-2008, 10:17 AM
- By *New Programer* in forum Java ServletReplies: 2Last Post: 12-20-2007, 10:15 AM
- By JavaBean in forum Java TipReplies: 0Last Post: 09-28-2007, 12:56 PM
- By osval in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 03:47 PM