I would like to use a MySQL Connection Pool with a Jersey REST service.
For performance reasons I don't want to create single MySQL connections each time a Jersey resource method is called. Instead I would like to create a ConnectionPool at startup-time of the server and then borrow and return connections when the service resource methods are executed.
Where would be the best place to put the initialization of the ConnectionPool within the Jersey REST framework?