Browsed by
Author: Rahul Anand

Secure Jersey 2 Hello World Example

Secure Jersey 2 Hello World Example

Jersey is very popular framework to build restful services. In this tutorial, we will learn how to do HTTP basic authentication, so that user won’t be able to access any resource untill they provided the correct username and passowrd. This example has been extended from our previous simple Jersy 2 Hello World tutorial. Please refer the previous tutorial for technology used and basic configurations.

Read More Read More

Java – Exception Handling

Java – Exception Handling

Stuff happens. The file isn’t there. The server or database is down. No matter how good a programmer you are, you can’t control everything. Things can go wrong, very wrong. When you write a risky method, you need to handle the bad things that might happens. But how do you know when a method is risky and when do you put the code to handle the exception situation?

Read More Read More