DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Database interaction

  1. #1
    Join Date
    Nov 2006
    Location
    NEW DELHI, INDIA
    Posts
    22

    Database interaction

    Hi Friends!

    I am connecting to database through javabeans, but there is one confusion....i.e...how i should connect to the database , as it is an webapplication and many users can interact with database simultaneously. If I synchronize the methods to maintain consistency then the application becomes slow.
    Can u guide me in this regard.
    Thanks,
    abhi

  2. #2
    Join Date
    Feb 2007
    Posts
    35
    Me again
    IMHO, synchronization and consistency should be handled by database not the application, they're built much better for that purpose (but use proper database for real, not HSQL like).
    Also, try to see O/R mapping stuff like Hibernate. Any people said Hibernate is slow will be either very expert or very beginner. Yes, direct JDBC, if you know how to optimize (which most people don't, like me) is faster but O/R mapping simplify a lot of things (with reasonable performance, most of the times even better if you don't know how to optimize your query). One thing Hibernate will help you is to manage a pool of connections.

  3. #3
    Join Date
    Nov 2006
    Location
    NEW DELHI, INDIA
    Posts
    22
    Thanks Hanofee!!

    Right now i have no idea about hibernate and O/R mapping......!!
    So, I will be back aftr learning this stuff....but...are u sure this is the right solution, plz. confirm. So that i start learning it fast.
    And can u plz. refer me any reference/book for learning hybernate.
    Thanks,
    abhi

  4. #4
    Join Date
    Feb 2007
    Posts
    35
    If you're accessing database quite a lot and it's a long term project, then yes, it's worth the time to learn (and I believe the concept will still last long, viewing that JBoss implementation of EJB3 which is very close to it - cause they're lead by the same person - so if you know EJB, it can be an alternative )

    I rarely read computer books since the days google is there, so to start with:
    http://www.hibernate.org/152.html
    You'll probably waste 1 week just to get into it, so, it will bring a lot of advantages, only if you have time and resource...

  5. #5
    Join Date
    Nov 2006
    Location
    NEW DELHI, INDIA
    Posts
    22
    Thanks friend!!...
    Thanks,
    abhi

Similar Threads

  1. Replies: 0
    Last Post: 08-23-2006, 12:19 AM
  2. Really Cool 3 tier Java database solution
    By Russ in forum Database
    Replies: 0
    Last Post: 06-04-2002, 12:57 AM
  3. Database Security General Discussion
    By Michael Tzoanos in forum Database
    Replies: 0
    Last Post: 04-12-2002, 11:19 AM
  4. MS-Access Error - Obsolet Database Format !
    By Makl. Lemmertz in forum VB Classic
    Replies: 2
    Last Post: 10-29-2001, 12:12 PM
  5. database interaction thru client/server?
    By Lim Wing Hoe in forum Java
    Replies: 1
    Last Post: 07-04-2000, 10:59 AM

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