Skip to main content

Posts

Showing posts from 2011

Creating a JAX-WS Web Service and Client using Eclipse Indigo

Creating a JAX-WS Web Service and corresponding client is a very trivial task. However I faced various problems while doing the same mainly while creating a client for the web service. This was mainly because the contents I found on the Internet were in a distributed manner. So I thought of creating a tutorial which binds all the concepts at one place. So this tutorial does not teaches indepth concepts of web services. Instead it guides as how to create a Web Service and a seperate client. Software Requirements: 1. Eclipse Indigo. Note: To download Eclipse Indigo follow the link http://www.eclipse.org/downloads/. Then select 'Eclipse IDE for Java EE Developers'. Process: We will proceed with the creation of web service and client in following two steps: 1. Creating Web Service 2. Creating client to consume web service. 1. Creating Web Service: Creating of a JAX-WS web service is not a very tough task. We simply create a class(normal Java class) and define certai

Hibernate 3 with Eclipse helios (Eclipse 3.6)

There are many blogs and tutorials on this topic. However I faced many problems while integrating Hibernate 3.0 with Eclipse Helios. Most of the problems were related to the version mismatch among the components used to create a Hibernate project on Eclipse Helios. Software Requirements: 1.        Eclipse Helios (This tutorial could work with other versions of Eclipse but it is specially designed for Helios version.) 2.        hibernate-distribution-3.6.5.Final-dist bundle (zip file). Download the bundle from http://www.hibernate.org/downloads . It will be around 59.2 MB jar file. 3.        MySql connector for Eclipse “mysql-connector-java-5.0.8 (zip)”. 4.        slf4j-1.6.1 bundle (zip form) 5.        apache-log4j-1.2.16 bundle(zip form) 6.        commons-logging-1.1.1.jar Pre-Requisites: 1.        In MySql create a database named “db2”. 2.        Under database db2 create a table named “employee” with following attributes. CREATE TABLE employee (                 id VARCHAR(10),