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 |
If your ui seems to freeze periodically, what might be a likely reason?
what is stringBuffer and StringBuilder?
Explain about local interfaces.
Is a class a subclass of itself?
what are design patterns in java?give with example?
Will the general public have access to the infobus apis?
What invokes a thread?s run() method?
how i secure my site with the https protocol.what are the steps?
is servlet,struts are threadsafe or not.please telme correct answer
Are enterprise beans allowed to use thread.sleep()?
What is the form of storage space in java?
What is mdb and what is the special feature of that?