Hello everyone...!!
Actually I do have a project root,
and I do have a
xml file of my DB configuration that i put inside "
/WEB-INF".
Thus, each time there is a
jsp call a
Servlet, and that Servlet want to do Transaction to the DB,
it should Read the Location of the DB first.
So, for every Servlet I should put these lines of source codes.
Yes, The main point here is the
getDBContext() ---> Which would be passed over my
DB Java Class later on. When I want to use it later each time I want to do transaction (update, delete, and so on).
But I feel
this is not efficient. Since It feel too much.
Is there any short way arround?
Could any one enlighten me with this concept?