14.1. Samples we used

Shipped with WebSphere is a classic servlet sample named HelloWorldServlet, together with a simple entity bean sample named Increment. In this chapter, we use the two samples to describe how to deploy these resources.

  • HelloWorldServlet servlet sample

    This sample will return one line: “Hello World”

    Resource:

    <WebSphere install_root>\servlets\HelloWorldServlet.class
    
    <WebSphere install_root>\servlets\HelloWorldServlet.java
    
  • Increment EJB samples

    This is the next-to-simplest sample enterprise bean. The sample has:

    - An input form to invoke the servlet

    <WebSphere
    install_root>\hosts\default_host\WSsamples_app\web\Increment\increme
    nt.html
    

    - A Java servlet, VisitIncrementSite, that accesses the Increment enterprise bean and returns ...

Get WebSphere V3.5 Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.