Results 1 to 2 of 2

Thread: Servlet JDBC

  1. #1
    kevinnrobert is offline Member
    Join Date
    Apr 2010
    Rep Power

    Default Servlet JDBC

    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?


  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

Similar Threads

  1. Replies: 2
    Last Post: 12-09-2009, 10:58 AM
  2. Replies: 0
    Last Post: 04-01-2008, 10:17 AM
  3. Problem in Servlet with JDBC
    By *New Programer* in forum Java Servlet
    Replies: 2
    Last Post: 12-20-2007, 10:15 AM
  4. Replies: 0
    Last Post: 09-28-2007, 12:56 PM
  5. Replies: 1
    Last Post: 08-07-2007, 03:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts