title: How do I cache a initial connection made to a database through REST JERSEY
body: <p>I have a situation where I would be receiving JSON objects continuously on to my<code>REST</code> server. I would then put the objects into a <code>AWS Kinesis</code> stream. I would initialize a connection to kinesis stream while putting the object into it. This init is happening for every object and thats an overload. I would like to cache the connection to kinesis for some duration. I looked at <code>REST HTTP Caching</code> where in the object would be cached but not the connection. Any way to get this done.</p>