0

I have a few Restful web services made in Apache CXF. I'm using the non-spring version of the CXFServlet. The logs for my web services go into a mongo database. Right now my web services are configured in such a way that everytime my web services are called, a new connection is created to connect the db. I want to configure the Mongo Client object in the application scope. So i get only one connection object shared between multiple web services. I looked at the Apache CXF docs but could'nt get most of it. I had stumbled upon this question about creating singleton objects, I don't know if that's true for my case. So I need a way to configure my logger as global object for the whole application.
If there's a similar question already asked please give me a link to that

Community
  • 1
  • 1

0 Answers0