Monday, August 20, 2012

Developing for web service

After research and studying on the concept of web service Im now starting to develop the web service by using Tomcat and CXF to host the TPC-C transactions in the service.

And there are some useful tutorial on the web link below:

Web Service learning

A Web service is a method of communication between two electronic devices over the Web The W3C defines a "Web service" as "a software system designed to support interoperable machine-to-machine interaction over a network". It has an interface described in a machine-processable format (specifically Web Services Description Language, known by the acronym WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards.

The W3C also states, "We can identify two major classes of Web services, REST-compliant Web services, in which the primary purpose of the service is to manipulate XML representations of Web resources using a uniform set of "stateless" operations; and arbitrary Web services, in which the service may expose an arbitrary set of operations."[2]

Tuesday, August 14, 2012

Work done so far and distribution

This figure is our project system structure diagram shows what we need to do throughout this project. As the figure shows above my part is to develop TPC-C system’s back-end which is at the right hand side of the dotted line. My job is to create database table load data input tables, implement transactions’ method, put transactions’ input EJB to host service and implement client to call method inside EJB. So that can allow front-end system to call transaction’s method concurrently.
So far I have done:
1.       database table load data input tables
2.       implement transactions’ method
3.       put transactions’ input EJB
4.       Implement client calls EJB’s method

Because I am finished the EJB part earlier so I am going to develop the optional part Web-Service.

Group Meeting

Last week we went to CSIRO office to meet with Dr. ShiPing Chen and I show him my back-end system EJB parts. He's very satisfied with what I did so far then ask me to quickly move on to the optional part which is to develop Web-Server.

System Integration

As the back-end system is ready for work. We are now trying to integrate the back-end system with the front-end GUI to test the back-end system by calling it methods from GUI and to simulate real world environment which create many clients to use our system concurrently.
Because this is the first time to integrate the front-end and back-end system there are some errors occurred during integration. We are spending one day on how to figure out the problem and finally the system works fine.

Thursday, August 2, 2012

Group Meeting

Today's group meeting I showed my EJB class to Dr. ShiPing Chen and he gave me some valuable advises. The most of the features are working find but still need some improvement when calling serve functions from client side.

Improvement before next meeting what I need to do is:

           1. Instead of automatic set up data in server side I need to generate input data at client side then stored them into an object pass to EJB server.

           2. Store EJB return data into an object return to the Client side.

           3. Only print return data when it is needed.