Recently I have published a video course that teaches how to use Java JAX-RS to create a RESTful Web Service for your mobile application and how implement features like user Sign up, Sing in and how to communicate with protected Web Service Endpoints. I would love it if you check it out and hopefully like it, find…
Read More Deploy Web Application Archive(WAR) to Amazon AWS EC2 Linux Instance
In this Java programming tutorial I would like to share with you a sample Java code that uses Amazon AWS SES(Simple Email Service) Java SDK to send an email message. I used this code implement Email Verification feature for my mobile app. The code below would send an email message containing an email verification link…
Read More Send Email Message Using AWS SES Java SDK
With this tutorial I wanted to share with you how to configure your Java project and it’s hibernate configuration file hibernate.cfg.xml to use a more professional and production ready connection pool provider C3P0. Hibernate’s internal connection pooling algorithm is rudimentary, and is provided for development and testing purposes. In my earlier blog posts I used…
Read More Configure Hibernate to Use C3P0 Connection Pool
In this blog post I am going to share with you how to handle Exceptions in your RESTFul Web Service API and how to return expected JSON Payload message back to a mobile application if an error takes place in your Java code. For that I am going to use the exception @Provider annotation and…
Read More Exception Handling in a RESTful Web Service
In this blog post we will implement Token-base authentication and will learn how to use Access Token we have created in a previous blog post to communicate with Web Service endpoints which require user to be a registered user with our mobile application. If you have not followed the previous two blog posts then it…
Read More Token-based Authentication Example
It time to learn how to create a Web Service to authenticate user with their user name and password and how to issue a unique secure access token which our Mobile Application can use to send HTTP requests and communicate with protected web services of our API. For a free video tutorial on how to…
Read More RESTful Web Service to Authenticate User and Issue Access Token
In this blog post I am going to share with you a way to create a RESTful Web Service to: Create a new user profile, Generate and save in database a user secure user password rather than an actual password provided by user, Return back as a response a custom user profile object(JSON) with information that…
Read More RESTful Web Service to Save a New User in Database
Earlier I’ve published a blog post on now to create a RESTful Web Service(JAX-RS) to accept JSON payload with user profile details and how to save user profile details into a MySQL database using Java Hibernate framework. In this blog post I am going to share with you how to test(using JUnit and Mockito) it’s Service…
Read More Test RESTful Web Service with JUnit and Mockito
Create RESTFul Web Services with JAX-RS and Jersey Most of the below code examples have been included in my video course: REST API with Java JAX-RS. Create and Deploy to Amazon Cloud. So you can learn how to build RESTful Web Service either by following the below tutorials or watch video lessons or even both! :). Create…
Read More RESTful Web Services
In this short blog post I am going to share with you how to create a new Amazon AWS S3 bucket in Java and how to set permissions on it so that any user can read files from it but only you, the owner will have write access. You can use the code below with…
Read More Create Amazon AWS S3 Bucket in Java
Hibernate is a great framework to use to persist data into a database when building RESTful Web Services for your mobile application with Jersey and JAX-RS. In most of the projects I have participated when designing RESTful Web Services for Mobile App we used MySQL database server and Hibernate framework to store user data which…
Read More Persist Java Object in MySQL Database With Hibernate
Earlier I have shared with you how to use JAX-RS to access HTTP GET Request and how extract URI Query Parameters and how to read Path Parameters. In this blog post I am going to share with you how to handle HTTP POST request and how to read the content of HTTP Request Body as…
Read More Jersey HTTP Post Example
In this blog post I am going to share with you how to handle HTTP GET request in your Java Web Service created with Jersey framework and how to response back with XML or JSON Response. If you do not have your Java RESTful Web Service created yet please follow the below link to a…
Read More Jersey HTTP GET Example