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 |
Why is main purpose of XML?
what is a non-repeatable read?
Is “abc” a primitive value?
whats is mean by jndi
difference between Abstract and Interface?
How do you download stubs from a Remote place?
Which are the different segments of memory?
Is 'synchronised' a modifier?
What is checkpoint? How to create checkpoints in our java projects?
Why a client should be multithreading? Explain.
How a component can be placed on Windows?
For which statements does it make sense to use a label?