Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
Section 2. Step by step Hello World example
Steps
Prime your engines by creating a simple EJB component that uses Axis to expose itself
as a Web service. To do this you will need to perform the following steps:
1. Download and install the ETTK
2. Create a simple EJB component
3. Create a Web application and configure its deployment descriptor (
web.xml
)
4. Create a Web service deployment descriptor for your EJB component
5. Use Axis Ant tasks to deploy the EJB based Web service
6. Use Axis Ant task
wsdk2java
to generate client stubs
7. Write a Web service client for your EJB component
8. Work with Local EJB Services.
Download and install the ETTK
Read this complete page before starting the ETTK download.
Go to
http://www.alphaworks.ibm.com/tech/ettk
and download the install file
ettk10.exe
.
Once the install file is downloaded, run it with all the default options. This should install
the ETTK in the directory
c:\ettk
. The rest of this tutorial assumes the ETTK is installed
in the location
c:\ettk
, so please adjust accordingly.
Unlike the older version of the ETTK (called the Web Services ToolKit or WSTK), this
version does not ship with a default application server which the install package needs.
You will need to install Tomcat 4.0 (or one of the other approved application servers).
To make the ETTK install happy please download and install Tomcat 4.0. Then point
the ETTK install to the Tomcat 4.0 directory when it prompts you. Tomcat 4.0 can be
found at
http://jakarta.apache.org/builds/jakarta tomcat 4.0/release/v4.0.6/bin/
.
Since this tutorial uses EJB technology, you will need another application server that
supports EJB components. The examples in this tutorial use Resin EE. However it
should be easy for you to port to another application server. If you are not in the mood
for porting, please download and install Resin EE 2.x at this time from
www.caucho.com
. Install Resin EE in
c:\resin
.
If you do not have Ant, now is a good time to install it as well. You can find Ant at
Service enable EJB SessionBeans with the IBM ETTK
Page 5 of 33






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

servlet web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved