my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Do we need a separate class for database connectivity? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Do we need a separate class for database connectivity?" Watch "Do we need a separate class for database connectivity?" New topic
Author

Do we need a separate class for database connectivity?

Sapumal Bandara
Greenhorn

Joined: Oct 29, 2013
Posts: 26

Hi guys,
I wanna know whether we need to have a separate class for database connection for a java-EE project which needs to be done using gwt rpc + ejb ?

Thanks,
Sapumal.


Be you.. not someone else.. in everything you do..
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

Sorry, I don't fully understand the question. You can of course write the database connectivity code in some existing class if that fits the application.

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Do we need a separate class for database connectivity?
 
Similar Threads
synchronize these methods ?
What's the best design approach when querying a database in a web app?
connection not closed
interesting question on conncection pooling
How to access connection object in user defined function inside a servlet