Why use a datasource when you can directly specify a
connection details? (in a J2EE application)
Answer / anand
Because, it would be really difficult to specify the connection details in every method that access the database. Instead, if we create a data source, it can be used to connect to the database in every method we want.
| Is This Answer Correct ? | 5 Yes | 1 No |
difference between HashMap, Hashset and hashTable?
what is a dirty read?
Is there a guarantee of uniqueness for entity beans?
what is the Scope of Final Keyword in Java?
What class is used to create Server side object ?
can a static method be overridden
What is the difference between session and entity beans?
1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?
What are different types of layout managers in java.awt package?
What are local interfaces? Describe.
To what value is a variable of the string type automatically initialized?
What is the difference between the session.get() method and the session.load() method?