cheenath.com
- Home
- Search
- About Me
- AJAX Tools
- WLS Tutorial
  - Setup
  - Introduction
  - Contact
  - FAQ
  - Useful Links
- AutoBuild
- SOAP Router


source2wsdd with EJBgen

This example shows how to wirte a web service using ejbgen.

Steps involved in writing this example:

  1. Write the complex type - World.java
  2. Write ejb bean class with ejbgen markup - HelloWorldBean.java
  3. Write ant build file to compile and build the service. build.xml
    1. compile HelloWorldBean.java to output/ejb
    2. run ejbgen on HelloWorldBean.java file to generate ejb home, interface and DD file to output/ejb_tmp
    3. compile generated output/ejb_tmp/*.java to output/ejb
    4. copy generated output/ejb_tmp/*.xml DD file to output/ejb/META-INF
    5. jar up output/ejb/ to per-ejb.jar
    6. run ejbc ant task on the pre-ejb.jar file to get the ejb jar file
    7. run autotype on the generated ejb interface to generate the codecs for the non build in types
    8. run source2wsdd on the Bean source file to generate web-services.xml deployment file and WSDL file
    9. put the DD file in output/war/WEB-INF/ directory
    10. run clientgen on the WSDL file to generate the client jar
    11. jar up output/war directory as a war file
    12. compile the client side code Main.java
    13. write application.xml DD file and put it in the output/META-INF directory
    14. jar up output directory as a ear file
    15. deploy the applicaiton by copying the ear file into the applications directory of the server
  4. Follow the instructions here to build, run and test the service.

Browse files online:

Download :

[ This page was last updated April 19 2003 07:32:49. ]

      

©2006 Manoj Cheenath