[17 May 2012 | No Comment | 16 views]

Not many like the admin bar at the top provided by WordPress. Even though in WordPress 3.3, admin bar being called toolbar is much better, viewing my website as a user, the toolbar adds some unneeded options and it doesn’t fit into the site in terms of look and feel. I do not mind the admin bar at the back-end especially for one reason – I use W3C total cache and the ‘Empty All Caches’ option is the only reason I have the toolbar at the back-end.
So how do we …

[14 May 2012 | No Comment | 59 views]

In the example provided here, we saw how to generate Java classes from XML schema using JAXB binding compiler ‘xjc’ command. In this tutorial we will see how to generate the same in Eclipse IDE with the help of MOXy JAXB implementation which is available as part of Eclipselink project.
Environment Used:

JDK 6 (Java SE 6) or later.
Eclipse Indigo IDE for Java EE Developers (3.7.1).
EclipseLink 2.3.2 (Download EclipseLink from here and extract the zip file). We need this for MOXy which is an implementation of JAXB API.

Generate Java classes …

[14 May 2012 | No Comment | 37 views]

Environment Used

JDK 6 (Java SE 6) (To install JDK – Windows , Ubuntu)
Eclipse Indigo IDE for Java EE Developers (3.7.1) (To install Eclipse, refer this page)
Apache Tomcat 6.x (To install Tomcat refer this page)
MySQL 5.5 (To install MySQL refer this page)
MySQL Connector/J 5.1 JAR file
Java EE 5 API (Servlet 2.5)
Java Database Connectivity (JDBC) API (java.sql.*, javax.sql.*)
[Optional] For monitoring and analyzing HTTP headers between the …

[14 May 2012 | No Comment | 98 views]

In the previous examples provided here and here, we saw how to generate XML Schema from Java classes using ‘schemagen’ command line tool and in Eclipse IDE. Now we will see how to do the reverse (i.e.) generate Java classes from XML Schema. This is done using JAXB binding compiler ‘xjc’ command.
Environment Used:

JDK 6 (Java SE 6) or later.
JAXB 2.1 API

Introduction
Before using JAXB to create or access an XML document from Java application, we have to do the following steps:

Binding the schema

Binding a schema means generating a set …

[12 May 2012 | No Comment | 40 views]

In the previous example provided here, we saw how to generate XML Schema from Java classes using ‘schemagen’ command line tool. Now we will see how to create the same in Eclipse IDE. We will use the same XML document as mentioned in the previous example.
Environment Used:

JDK 6 (Java SE 6) or later.
Eclipse Indigo IDE for Java EE Developers (3.7.1).
JAXB 2.1 API

Create JAXB Project

Open Eclipse IDE and create a new JAXB project which can be done in many ways,

File menu -> New -> Other -> JAXB -> JAXB Project
Click …