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 |
What are the services in RMI ?
what is heepStored?
How task's priority is used in scheduling?
Explain phantom read?
What are the design considerations while making a choice between using interface and abstract class?
What is Stream Tokenizer?
What is preemptive and Non-preemptive Time Scheduling?
Difference between JRE and JVM?
3 Answers HeadStrong, Infotech,
When a thread blocks on i/o?
What is jboss?
How JNDI is used in JMS ?
What are the pros and cons of detached objects?