Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

developerWorks Community:

  • Close [x]

Developing database driven web service using hibernate and implementing Restful web service in cloud to be invoked by Android and J2ME Client

Partha Goswami (partha.ext@gmail.com), Jr. Developer, Protech Infosystems Pvt. Ltd
Partha Goswami
B.Tech with more than 13 months experience in developing J2EE, Web Service (JAX-WS), J2ME and Android application.Currently associated with Protech Infosystems, Kolkata as Junior Consultant.Has expertise in using a wide range of open source and commercial tools (WASCE, Eclipse, Oracle SOA Suite11g, EZlegacy , BIRT and DB2 express C) . Apart from his passion for Latest Technology, he has numerous other interests including Cricket and Tabla.
Kuntal Ganguly (kuntalganguly86@gmail.com), Jr. Consultant, Protech Infosystems Pvt. Ltd
Kuntal Ganguly
B.Tech with more than 13 months experience in developing J2EE, Web Service (JAX-WS), J2ME and Android application.Currently associated with Protech Infosystems, Kolkata as Junior Consultant.Has expertise in using a wide range of open source and commercial tools (WASCE, Eclipse, Oracle SOA Suite11g, EZlegacy , Active MQ , BIRTand DB2 express C) and technologies(GWT and Android). Apart from his passion for Latest Technology, he has numerous other interests including Cricket, Yoga and Body Building.

Summary:  This tutorial demonstrates how to develop database driven web service using Hibernate and invoking it with J2ME and Android Client. Finally it shows how to develop a restful web service and deploy it in the Google cloud and then consuming the web service with an Android client.

Date:  31 Aug 2011
Level:  Intermediate PDF:  A4 and Letter (752 KB | 45 pages)Get Adobe® Reader®

Activity:  35267 views
Comments:  

Before you start

This tutorial is for developers who build applications that use database driven web services with persistence framework like Hibernate. By using web services, your application can publish its function or message to the rest of the world. Web services use XML to code and to decode data, and SOAP to transport it (using open protocols). Representational State Transfer (REST) has gained widespread acceptance across the Web as a simpler alternative to SOAP. It s a key design idiom that embraces a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URLs.

About this tutorial

This Tutorial will describes the way of developing web service (JAX-WS and REST). Web services can be implemented using different application protocols like SOAP, XML, JSON, Restful HTTP, and support various transport protocols like HTTP or JMS (Java Message Service). This tutorial will help you in developing a Database Driven Information Retrieval Web service with Hibernate, followed by Hello User Restful web service which is deployed in the Google Cloud (GAE). Finally consuming the developed web services with mobile clients (J2ME and Android).


Objectives

In this tutorial, learn how to:

  • Develop and deploy a JAX-WS Web Service, which operates on DB2 database using Hibernate as an ORM framework.
  • Develop a simple Restful webservice and deploy it in Cloud (GAE).
  • Invoke both the above Web Services using an Android Client and a J2ME client.

Prerequisites

This tutorial assumes familiarity with some basic concepts of the Eclipse IDE, and basic understanding of Web Service architecture, see Resources for additional information.

1 of 7 | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=SOA and web services
ArticleID=754359
TutorialTitle=Developing database driven web service using hibernate and implementing Restful web service in cloud to be invoked by Android and J2ME Client
publish-date=08312011
author1-email=partha.ext@gmail.com
author1-email-cc=
author2-email=kuntalganguly86@gmail.com
author2-email-cc=