Solved

Java and Servlets

Posted on 2004-09-30
4
260 Views
Last Modified: 2013-12-18
Experts
I am looking out for a real time usage of servlets in domino. I read lot of articles, which talks abt servlets gets loaded in the memory only once and agents don't. Is that the only reason for writing servlets. I am surprised on how much information is still not available on java and domino. I am planning to learn java and i know the best thing is to come over here. Please help me out with some real time examples and explanations on why should i use java and servlets when i can do very much everything with agents

Thanks
Srevenk
0
Comment
Question by:srevenk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 75 total points
ID: 12196538
Agents are good with small petty jobs.. but when comes to larger transaction needs.. then servlet might be the best and faster soln...Reason: Agent take time to load and unload for each request from the user.. whereas servlet doesn't do that, once loaded it stays till server is shutdown or by manual methods.. Secondly java is more flexible whereas agent works within the constraints set by domino.

Here are the simple steps for one to choose what would be the best approach

1. Web only application - Servlet for large transaction or Agent if it is smaller Tx
2. Notes + Web app - Agent is best suited as no need for additional coding (or servlet for web soln and agent for notes soln)
3. Notes app - offcourse agents

~Hemanth
0
 
LVL 3

Assisted Solution

by:xp_commander
xp_commander earned 75 total points
ID: 12217356
Agents are for quick , easy  , dirty jobs but they do run fast and very easy to code , debug or test. Where else servlets are not that quick , easy thing , but once you have learnt one of it , rest all seems to be easier. You will also need WASD , ECLIPSE , etc client for Java Development.

My Personal experience , we use servlets more because of the limited boundary of Domino Objects , servlets are written in JAVA which literally has no boundaries , for example you would use Notes Agent for MAIL , Simple Web Apps , etc and use servlets for more complex task like XML , JDBC , etc.

Now the above statement does not hold much strength after all the wonders and features of R6 but still , when working with a simple app like fetching XML from another site on nightly basis , Validating and Parsing XML data and creating documents applying business rules , etc , Servlet was much preffered approach.

Here is an excellent article from notes to begin with :- http://www-10.lotus.com/ldd/today.nsf/0/a504dce46e96039d852569e500707738?OpenDocument 

This is my very first bookmarked article from year 2001 , I don't know if they have similiar article for R6 settings , screenshots , etc.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question