JDBC Connection URL For Embedded Derby in a Webapp?

I solved it by setting my jdbc connection url at runtime and using.

I solved it by setting my jdbc connection url at runtime and using: StringBuilder derbyUrl = new StringBuilder("jdbc:derby:"); derbyUrl. Append(servletContext. GetRealPath("/")); derbyUrl.

Append("/WEB-INF/classes/myDb;"); dataSource. SetUrl(derbyUrl.toString()).

1: I've had to do very similar things myself (my solution was a custom Spring factory class did the rewrite, but that's conceptually almost identical) and I've yet to see any substantially-better ideas. Mind you, you might also make the argument that in a production deployment, the webapp files shouldn't be writable at all, so requiring an external database connection instead… – Donal Fellows Jan 1 '11 at 15:08.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions