What should we do for https connection using glassfish in both client and server side
Here is one link that can give you some understanding.