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


Web Service With EJB Backend component

This example shows how to wirte a web service with stateless EJB backend component.

Steps involved in writing this example:

  1. Write the value types - World.java
  2. Write backend EJB classes - HelloWorldService.java HelloWorldHome.java HelloWorldService.java
  3. Write EJB DD files ejb-jar.xml and weblogic-ejb-jar.xml
  4. Write ant build file to compile and build the service. build.xml build-webss.xml
      Build EJB:
    1. compile java files to output directory
    2. copy EJB DD files to output/META-INF
    3. jar up output dir
    4. run ejbc on this jar to get ejb jar (HelloWorldService.jar)
    5. Build web service
    6. copy ejb jar to WEB-INF/lib directory
    7. run autotype to generate the codecs for the non build in types
    8. run source2wsdd to generate web-services.xml deployment file and WSL file
    9. put the DD file in output/WEB-INF/ directory
    10. run clientgen on the WSDL file to generate the client jar
    11. jar up output directory as a war file
    12. Build ear
    13. copy application.xml file to output/META-INF
    14. copy ejb jar and war file to output/META-INF
    15. jar up output as an ear file
    16. Compile client
    17. compile the client side code Main.java
    18. deploy the applicaiton by copying the war file into the applications directory of the server
  5. Follow the instructions here to build, run and test the service.

Browse files online:

Download :

[ This page was last updated April 19 2003 07:28:11. ]

      

©2006 Manoj Cheenath