LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2010, 05:10 PM   #1
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Question Java Servlets: Worth the Time?


If you hadn't guessed it from my last 3000(ish) java-related posts, I'm a Java n00b writing a Java Applet for a work project. I got to the part was I was about to write the applet code that would send HTTP requests to my CGI scripts. But I read some paragraphs in a book praising Java servlets as better that CGI because they are easier to use and give much better performance server side.

My server load isn't very big, though, and I was wondering if it would be worth taking the time to learn about Java servlets and how to set up the server side configuration on my Fedora web server. Any helpful thoughts?
 
Old 01-05-2010, 09:09 AM   #2
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Servlets are pretty fast and easy to write - the question is probably more about 'appropriate'. If your project is already in a language, you should probably just continue in that language. If not, it's not hard to create a basic servlet.

I used to create simple ones pretty frequently until I dropped Java in 2006 or so (in favor of other methods)
 
Old 01-05-2010, 02:31 PM   #3
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375

Original Poster
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by MBybee View Post
Servlets are pretty fast and easy to write - the question is probably more about 'appropriate'. If your project is already in a language, you should probably just continue in that language. If not, it's not hard to create a basic servlet.

I used to create simple ones pretty frequently until I dropped Java in 2006 or so (in favor of other methods)
If I might ask (just curious) what "other methods" did you move onto after you dropped Java?
 
Old 01-06-2010, 10:19 AM   #4
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Quote:
Originally Posted by CoderMan View Post
If I might ask (just curious) what "other methods" did you move onto after you dropped Java?
It varies, depending on what the servlet did. Many of them ended up becoming XML feeds and the like, or simple database connection pools. In some cases the heavy lifting moved around a bit - what was once a thick client that connected to a servlet for data abstracted from a database (or several databases) became a web client served up by server-side XML and PHP with client-side Javascript.

Some of the apps were converted to .NET if the app tier was based on Windows or SQL Server as opposed to Oracle/DB2/MySQL or whatnot.

I guess the answer is "no one thing". I tended to write simple servlets, so really they were usually just some sort of aggregation, sorting, SOA, security, or abstraction layer. That's a pretty easy thing to replace.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding installation of Java Servlets, JSP, Jakarta-Tomcat on centos5 vamsi_k Linux - Newbie 3 10-20-2008 12:28 AM
Java and Servlets. Do I need J2EE? Mega Man X Programming 5 03-28-2006 01:27 PM
Object Reference problem in Java servlets Hockeyfan Programming 1 06-16-2005 01:36 AM
hypothetical qu; java servlets for streaming audio? german Programming 0 02-03-2005 11:44 AM
how do i set up a webserver using mandrake 10 to use java servlets almvtb Mandriva 0 06-29-2004 03:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration