Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java se + servlet

Reply
Thread Tools

java se + servlet

 
 
bumsys@gmail.com
Guest
Posts: n/a
 
      12-22-2008
Does anybody know the example using servlet in desktop-application? Or
some site about this?
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      12-22-2008
On Dec 22, 6:41*pm, bum...@gmail.com wrote:
> Does anybody know the example using servlet in desktop-application? Or
> some site about this?


What does this servlet do for the end-user/
application?

You might look to wrapping the app. around
a servlet container, such as Tomcat.

--
Andrew Thompson
http://pscode.org/
 
Reply With Quote
 
 
 
 
Silvio Bierman
Guest
Posts: n/a
 
      12-22-2008
wrote:
> Does anybody know the example using servlet in desktop-application? Or
> some site about this?


Usually not in a desktop application but we have deployed many servlet
based systems using only Java SE and an embedded servlet container (we
use Jetty).

We do not like the model of running multiple applications inside a
single generic container. Instead we let each server application run as
a separate process and have it embed a lightweight servlet container
like Jetty. We have all the applications listen on different ports and
run a reverse proxy in front of them to publish the applications via
port 80 but with different URLs (usually based on host-names, sometimes
URI patterns). Since the reverse proxy can do load-balancing as well we
can run multiple instances of the same application when needed.

Although combining a servlet container with a desktop application is not
a problem by itself we have found that desktop applications are usually
run from client machines which can be hard to reach from the outside
(usually router/proxy issues). That makes it somewhat less useful to
contain servlets in a desktop application. But your situation might
differ (as ours has once or twice) and then it is a perfectly fine
combination.

The Jetty website contains source samples of how to embed servlets in
your application.

Best regards,

Silvio Bierman
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response javadev Java 5 11-16-2006 11:22 AM
Offending class: javax/servlet/Servlet.class chamikara Java 1 06-19-2004 05:42 AM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM
Tomcat: POST from one servlet or internal class to another servlet Sean Clarke Java 1 01-07-2004 02:22 PM
how to get my servlet configuration before the servlet is initialised Andy Fish Java 4 12-17-2003 09:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57