Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Servlets vs. Jag Service components?

3 posts in General Discussion (old) Last posting was on 2000-02-27 22:38:53.0Z
Paul Horan Posted on 2000-02-27 15:53:57.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Paul Horan" <paulh@SpamBakedBeansandSpamTwoplus.com>
From: "Paul Horan" <paulh@SpamBakedBeansandSpamTwoplus.com>
Subject: Servlets vs. Jag Service components?
Date: Sun, 27 Feb 2000 10:53:57 -0500
Lines: 8
Organization: Video Communications, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: ip81.buffalo4.ny.pub-ip.psi.net 38.26.79.81
Message-ID: <347_SB#HEvTg$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27716
Article PK: 159077

Can someone give me a quick and dirty description of the differences between
these two concepts?
In what situations is one preferable to the other?

Paul Horan


Dave Wolf [Sybase] Posted on 2000-02-27 22:38:53.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Servlets vs. Jag Service components?
Date: Sun, 27 Feb 2000 17:38:53 -0500
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 158.159.8.10
Message-ID: <347_Pij2zPXg$GA.274@forums.sybase.com>
References: <347_SB#HEvTg$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27703
Article PK: 159066

Servlets are designed to dynamically build HTML for HTML clients. Service
components are components that start with the server and do some repeating
task.

I'd use a servlet to build an HTML page from a result set just like in
Dynamo. A service component might backup my jaguar directory every hour.

Dave Wolf
Internet Applications Division

"Paul Horan" <paulh@SpamBakedBeansandSpamTwoplus.com> wrote in message
news:SB#HEvTg$GA.202@forums.sybase.com...
> Can someone give me a quick and dirty description of the differences
between
> these two concepts?
> In what situations is one preferable to the other?
>
> Paul Horan
>
>
>


Jim O'Neil [Sybase] Posted on 2000-02-27 20:31:06.0Z
Newsgroups: sybase.public.easerver
Date: Sun, 27 Feb 2000 15:31:06 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Servlets vs. Jag Service components?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 28
NNTP-Posting-Host: nomad6-33.sybase.com 157.133.176.33
Message-ID: <347_38B9898A.C0210813@sybase.com>
References: <347_SB#HEvTg$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27707
Article PK: 159068


Paul Horan wrote:

> Can someone give me a quick and dirty description of the differences between
> these two concepts?
> In what situations is one preferable to the other?
>
> Paul Horan

Servlets respond to HTTP requests, basically intercepting URLs and rather than
bringing up web pages directly they run servlet code that one way or the other
ultimately generates HTML that gets sent back to the requestor (typically, a
client at a web browser).

Service components are specialized Jaguar components (implementing the
CTSServices::GenericService interface) that startup when the server starts and
typically run in the background performing some type of periodic processing. In
general, the interface exposes a run() method into which you might put a more
or less infinite loop that does some type of processing, yields the thread (via
JagSleep calls) for some length of time, and then repeats.

Since they really have completely different contexts there's really no way to
say one is preferable to the other.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc