H� muito eu procuro e agora, a recompensa.
Para ci�ncia,

                         Using Java servlets with the Domino server
                         To use a Java servlet with Domino, you need to:


                              1. Enable Java servlet support.
                              2. Install the servlet.
                              3. Register the servlet.
                              4. Access the servlet via the Web.


                         Step 1: Enabling Java servlet support
                         In Domino, support for servlets is disabled by
default. To enable servlet
                         support, edit the server's Notes.ini file and add
the following line:

                         DominoEnableJavaServlets=1

                         When you restart the server, it loads the Java
Virtual Machine and
                         locates the ServletManager Java class, adding the
file icsclass.jar to the
                         CLASSPATH environment variable automatically. As
the servlet support
                         is loading, the following three lines appear on the
server console:

                         01/01/98 11:23:36 AM HTTP Web Server started
                         01/01/98 11:23:38 AM JVM: Java Virtual Machine
initialized
                         01/01/98 11:23:38 AM Java Servlet Manager
initialized

                         Step 2: Installing the servlet
                         To install a servlet, whether it is one you wrote
or a pre-built one, you
                         create a Servlets subdirectory in the Domino server
data directory and
                         copy the compiled servlets into this directory.
Then edit the server's
                         Notes.ini file and add a setting for
JavaUserClasses to include a path for
                         this subdirectory. For example:

                         JavaUserClasses=c:\lotus\notes\data\domino\servlets

                         Step 3: Registering the servlet
                         In order to access a servlet from the Web, it must
be registered in a
                         Domino servlet configuration file, Servlet.cnf,
that you create in the
                         Domino data directory. When the server starts up,
it checks this
                         configuration file to see if there are any servlets
to load. In the servlet
                         configuration file, you must specify each servlet
by name. Optionally, you
                         can also specify initialization parameters, a
servlet class for URL
                         mapping, and instructions for loading the servlet
at startup time.

                         The following example registers the Hello World
servlet with no
                         parameters and maps the servlet to a URL:

                         # -- Servlet.cnf
                         # Register a simple servlet
                         Servlet HelloWorld Servlet {
                         }
                         #Map the servlet to a specific URL
                         Service HelloWorld /Servlet/Hello

                         The next example registers a servlet called
DBAccess that does include
                         initialization parameters and that loads at
startup.

                         # -- Servlet.cnf
                         # Register a simple servlet
                         Servlet DBAccessServlet {
                         Server=w3.internat.net
                         Path=/corp2/ordbsh
                         Acct=JoeUser
                         GO_LOAD_AT_STARTUP=Yes
                         }
                         #Map the servlet to a specific URL
                         Service DBAccess /Servlet/DBServe

                         Step 4: Accessing a servlet from the Web
                         Once the servlet is registered and mapped to a
specific URL, you can
                         access the servlet with that URL, using full URL
syntax. For example,
                         entering the URL http://myserver/Servlet/Hello runs
the HelloWorld servlet
                         registered in the previous step.

                         Trying it for yourself
                         To try out the HelloWorld servlet for yourself:

                              1. Follow step 1 to enable Java servlet
support.
                              2. Create a servlets subdirectory where Domino
is installed and
                              copy the HelloWorldServlet.class file below
into it.
                              3. Copy the SERVLET.CNF file below into your
Domino data
                              directory.
                              4. Startup the Web Server and try the
following URL:

                              http://127.0.0.1/Servlet/HelloWorldServlet

                              5. If you see "HelloWorld" in a glorious large
font in your browser
                              window, it works!




                         Summary
                         Java servlets are an emerging technology that can
add power to your
                         Domino applications. Although they may not be as
flashy as applets,
                         servlets allow you to do more on the server-side of
things, such as
                         maintaining connections for exchanging data between
applications. Plus,
                         servlets feature thread-safe code, automatic memory
management and
                         built-in networking support. Servlets and Domino
make a powerful
                         combination -- the proof is in the programming.

                         ABOUT THE AUTHOR
                         Julie Forgo, a technical writer with more than ten
years' experience, has
                         documented various aspects of Notes for the past
four years. Her area of
                         expertise is Domino application development, and
she recently
                         co-authored a revision of the Best Practices:
Application Developer's
                         Guide. When not busy extracting feature details
from developers, Julie
                         chases after her two children and performs miracles
with a hot-glue gun


Artigo completo
http://www.notes.net/today.nsf/3c8c02bbcf9e0d2a85256658007ab2f6/90bdfce8b7d9
672b8525659a0051b7a8?OpenDocument


By Al�!



* Para nao receber mais e-mails da lista, acesse 
<http://www.sun.com.br:8080/guest/RemoteAvailableLists>, coloque seu e-mail, escolha a 
lista <[EMAIL PROTECTED]> e de um <submit>.

Responder a