Home » Enterprise Java » Page 100

Enterprise Java

JSON Example With Jersey and Jackson

In this post, we feature a comprehensive Example on JSON With Jersey and Jackson. We are going to see how you can integrate Jesrsey with Jackson to develop  JAX-RS RESTful services that produce and consume JSON streams. As you probably know, Jackson is used to marshal a Java Object to JSON, and ummarshal a JSON file (or stream in general) to ...

Read More »

XML Example With RESTEasy+ JAXB

In this example we are going to see how you can integrate RESTEasy with JAXB (Java Architecture for XML Binding) to create RESTful services that consume and produce XML streams. As you probably know JAXB is used to marshal a Java Object to XML, and ummarshal an XML file (or stream in general) to Java Object. In this example we are not going ...

Read More »

XML Example With Jersey + JAXB

In this example we are going to see how you can integrate Jersey with JAXB (Java Architecture for XML Binding) to create RESTful services that consume and produce XML streams. As you probably know JAXB is used to marshal a Java Object to XML, and ummarshal an XML file (or stream in general) to Java Object. You don’t have to ...

Read More »

How to run unit test with Maven example

In this tutorial, we will show you an easy way to run the unit tests of your project, using Apache Maven. Maven is able to execute all declared unit tests, in order to verify that our application works properly, or pop out the appropriate exceptions, in case it doesn’t. In this example, we use the following tools on a Windows ...

Read More »

How to clean project with Maven example

A Maven based project uses the target folder to place the output of a project’s build. Before the deployment of a project, it is a good practice to clean every file created by the previous build. In this example, we use Apache Maven 3.1.1 on a Windows 7 platform. In order to clean our project, we must first navigate to ...

Read More »

How to build project with Maven example

In this tutorial, we will show you an easy way to build your project, using Apache Maven. In this example, we use the following tools on a Windows 7 platform: Apache Maven 3.1.1 JDK 1.7 First of all, we must understand how Maven builds and deploys a project. Each Maven project undergoes a specific build lifecycle. The default lifecycle has ...

Read More »

RESTEasy File Upload Example

In this tutorial we are going to see how In this example we are going to see how you can upload a File to a server using a JAX-RS REST Service using RESTEasy. In this example we are going to use an HTML Form that has one input field of type file. When the HTTP POST request is constructed, it ...

Read More »