They want it modular and easy to use. The first thing crossed my mind is using restful approach.
But there is only thing that bothers me, Java restful approach is using XML!, I would prefer a simpler way to communicate, easy to understand and parsed data, so Jsonit is. I start google-ing a little and came across this excellent blog Json web service with Java and Axis2?
href=”http://www.marcusschiesser.de/2009/01/building-a-json-web-service-with-java-and-axis2/”>Building a Json web service with Java and Axis2.
I read the blog but it seem there some minor problem which they(he and the blog commenter) already solved.
The steps are not so different with my reference blog, but I have minor modification on the steps.
1. Download the Axis2 war that includes jetisson patch and DynamicRespondHandler Axis2 Module here
Note that the Axis2 above is pre-configure,but still I would like to show what the changes are:
- Added module reference to the
<br /><module ref="DynamicResponseHandler"/><br />
- Added Json Message formatters
<br /><messageFormatter contentType="application/json" class="org.apache.axis2.json.JSONMessageFormatter"/><br /><messageFormatter contentType="application/json/badgerfish" class="org.apache.axis2.json.JSONBadgerfishMessageFormatter"/><br />
- Added Json Message builders
<br /><messageBuilder contentType="application/json" class="org.apache.axis2.json.JSONOMBuilder"/><br /><messageBuilder contentType="application/json/badgerfish" class="org.apache.axis2.json.JSONBadgerfishOMBuilder"/><br />
2. Download you favorite Java application server, in this case I am using Apache Tomcat 7.0.
3. Deploy Axis2 war to your application server, in my case I just copy the Axis2 war to Tomcat`s
4. Start your application server and open this URL using your web browser (your URL might slightly different then mine, depend on your HTTP port setting on your application server):
your browser should shows this:
So that is the start, I hopefully can post more about this in the future. Cheers.
Java Platform, Enterprise Edition is a widely used platform for enterprise server programming in the Java programming language.
This book covers exciting recipes on securing, tuning and extending enterprise applications using a Java EE 6 implementation.The book starts with the essential changes in Java EE 6. Then they will dive into the implementation of some of the new features of the JPA 2.0 specification, and look at implementing auditing for relational data stores.They will then look into how they can enable security for their software system using Java EE built-in features as well as using the well-known Spring Security framework. They will then look at recipes on testing various Java EE technologies including JPA, EJB, JSF, and Web services.Next they will explore various ways to extend a Java EE environment with the use of additional dynamic languages as well as frameworks.At the end of the book, they will cover managing enterprise application deployment and configuration, and recipes that will help you debug problems and enhance the performance of your applications.