When building RESTful Web Services for your Mobile app with Java JAX-RS and Jersey you can use any Java Servlet container to deploy and run your final .WAR file. But if you use Jetty then there is a very quick way to build and run your application using Maven and jetty-maven-plugin. Below is a short…
Read More Add Jetty Maven Plugin to Your JAX-RS Project
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
Often we need to load up and read a value from a property file which is stored in a WEB-INF folder of our web app. In the below example I am going to share with you how to create a web service which accepts a key, reads key value from a property file and returns…
Read More Load Properties File from WEB-INF in JAX-RS Jersey App
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
To make our Jersey RESTful Web Service Application be able to @Autowire service classes and inject Java Beans we will need to add to it a support for Spring Dependency Injection(DI) and below I am going to share with you how to do it. To add Spring DI support to my JAX-RS application, I am…
Read More Add Spring Dependency Injection Support to a JAX-RS Jersey App
@QueryParam annotation allows us to read the request parameter values which were passed as a part of URL query string for example: site.com/api/users/r4ghtaf43c3n/messages?start=1&limit=50 where site.com is your web site domain name, /api/users/ is the path to your Root Resource, r4ghtaf43c3n is the value of specific user id and can be read with @ParthParam annotation, /messages is…
Read More JAX-RS @QueryParam. Reading URL Query Parameters.
In this blog post I am going to share with you how to read the PathParam value which was included in the request URI. And before you continue further I would like to mention that I have recorded a video lesson on how to use the @PathParam annotation and made it part of my video…
Read More JAX-RS @PathParam. Reading Path Parameters.
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
In this blog post I will share with you how to use Maven to generate a very simple Jersey application which you can then use to build RESTful web services for your mobile app. I will also show you how to edit pom.xml file to add needed dependencies, so that your Jersey app is able…
Read More Create Jersey JAX-RS Project with Maven
From Zero To A Full Stack Developer Video Lessons Rapid Paper Prototyping iOS / Android Mobile Apps Full Stack Mobile App Developer Tools Server Side In the Cloud Java Web Services and API Design Building Mobile Apps With Swift Building Mobile Apps with Android Testing Your Code Developer Frameworks Ionic Hibernate.org Hibernate Getting Started Guide…
Read More Resources