Blog Archives

03: JAXB with StAX Tutorial step by step for marshalling

This tutorial extends JAXB Tutorial for XML processing in Java step by step – unmarshall & marshall When to use JAXB with StAX? When you want to process large XML files, reading the whole file into memory can cause “OutOfMemoryError” as discussed in Java String & Array limitations and OutOfMemoryError…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in JAXB Tutorial, member-paid

02: JAXB with StAX Tutorial step by step for unmarshalling

This tutorial extends JAXB Tutorial for XML processing in Java step by step – unmarshall & marshall When to use JAXB with StAX? When you want to process large XML files, reading the whole file into memory can cause “OutOfMemoryError” as discussed in Java String & Array limitations and OutOfMemoryError

Read more ›

Posted in JAXB Tutorial

01: JAXB Tutorial for XML processing in Java step by step – unmarshall & marshall

Step 1: Create a Java Maven project.

Import the “simple-jaxb” folder that has the pom.xml it into eclipse as an “existing maven project”. Step 2: Modify the “pom.xml” file to look like as shown below. The “maven-jaxb2-plugin” generates JAXB annotated Java objects from the XML schema “books.xsd”. These objects

Read more ›

Posted in JAXB Tutorial

XML Parsing with JAXB implementation called MOXy

Step 1:Create a new Java project via Maven as shown below, and import the project into eclipse IDE.

Step 2: The pom.xml file with the MOXy dependency.

Step 3: Create a new “Source Folder” named, src/main/resources and then sub-folder “date” to create the xml file report.xml as shown…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in JAXB Tutorial, member-paid, XML and Java Tutorial

Apache HTTPClient POST request sample code

This extends the Apache HTTPClient Tutorial to invoke RESTFul service with a POST request. The pom.xml

The client using HttpClient & JAXBContext The “JAXBContext” is from the Java 6 onwards. The sample code includes 1) Exception handling. 2) “BasicCredentialsProvider” is used for the basic authentication. 3) “JAXBContext” is used

Read more ›

Posted in JEE Web & Web Services Tutorial

Apache HTTPClient Tutorial to invoke RESTFul service

Apache HttpClient to invoke a RESTful Web Service. This is a GET request, and in the next post will extend this to use an HTTP POST with basic authentication. Step 1: Create a Maven project say “httpRestClient”. Just press enter for all the prompts.

Step 2: Import the above

Read more ›

Posted in REST Client Tutorial

JAXB with Spring ORM for unmarshaling tutorial

This extends Basic JAXB tutorial with Maven & XSD – 1 to unmarshal with Spring OXM and Spring XML. The Spring & JAXB marshaling tutorial used XML based config to inject the “jaxb2Marshaller”, but in this to make things a bit more interesting, let’s use “Java” class based Spring configuration

Read more ›

Posted in JAXB Tutorial, Spring OXM Tutorial

JAXB with Spring ORM for marshaling tutorial

This extends Basic JAXB tutorial with Maven & XSD – 1 to marshall with Spring OXM and Spring XML. Right mouse click on target/generated-sources and select “Build Path –> Use as Source Folder” Step 1: add spring-orm to use JAXB and spring-xml to use StringResult.

Step 2: The App

Read more ›

Posted in JAXB Tutorial, Spring OXM Tutorial
Page 1 of 3123
1180+ members Prepare to succeed? | Reviews | Career PDFs | Self-taught Java developer?

800+ Interview Q&As ♥Free | ♦FAQ (Mouse Hover For Full Text)

open all | close all

200+ Java FAQs – Quick Prep

open all | close all

16 Java Key Areas to be a top-notch

open all | close all

80+ Java Tutorials – Step by step

open all | close all

100+ Java Coding Exercises

open all | close all

How good are your "Career Skills"?

open all | close all