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
Solved

Java and Servlets

Posted on 2004-09-30
4
254 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add a cc field to email code 3 117
Lotus notes - Follow up notes mail missing 15 77
Installing Lotus Notes on Citrix XenApp 3 153
Lotus Notes – Domino Document Manager 4 116
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…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 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