Monthly Archives: January 2016

Understanding of High Availability NFR (Non Functional Requirement)

Understanding of HA ( High Availability ) of non functional requirement is not easy, it’s art with science. Being an architect, it is very important to understand cost vs acceptable downtime, i mean to say how much cost you are going to invest of servers and your acceptance downtime before committing to the stakeholder of your application.
Continue reading Understanding of High Availability NFR (Non Functional Requirement)

JAX-RS : Get Cookie value using @CookieParam in Jersey

Server can store state information in cookies on the client, and the same can be retrieved that information when the client makes its next request. Many web applications use cookies to set up a session between the client and the server. They also use cookies to remember identity and user preferences between requests. These cookie values are transmitted back and forth between the client and server via cookie headers.

Although, I do not prefer to use cookie but still it’s handy to use in JAX-RS services. Whether you are prefering or not is not the important, if it required to to solve our contextual problem it should be used. The @CookieParam annotation allows you to inject cookies sent by a client request into your JAX-RS resource methods.
Continue reading JAX-RS : Get Cookie value using @CookieParam in Jersey