Sunday, November 8, 2009

Difference between Web Server and Application Server

Application server vs Web server

Web Server:
  • Handles only HTTP protocol
  • Consists of web container alone (Servlet/JSP)
  • Code has take care of security, transaction, database connectivity and messaging

Application Server:
  • Handles Multiple protocol
  • Contains web container + EJB container
  • Application server itself will take care of security, transaction, database connectivity, pooled data connections, data caches, session persistence, messaging and fail over protection

Explained more at
1) http://www.javaworld.com/javaqa/2002-08/01-qa-0823-appvswebserver.html?page=1
2) http://www.serverwatch.com/tutorials/article.php/10825_1355131_1/Web-Servers-vs-App-Servers-Choosing-Between-the-Two.htm

Difference Between JAR, WAR and EAR files

All these JAR, WAR and EAR files can be created using JAR tool.

JAR (Java ARchive) contains
  • Library Class files
  • Resource files
  • Property files

WAR (Web ARchive) contains
  • JAR files (lib)
  • Java Class files (classes)
  • JSP, HTML, JS, CSS and image files
  • Deployment Descriptor (web.xml) and other configuration XML files
It is also called as Web Module.

EAR (Enterprise ARchive) contains
  • WAR files
  • JAR files
  • Enterprise Java Beans
  • Application Deployment Descriptor (application.xml) and other configuration XML files

EAR contains the complete enterprise application which consists of one or more web modules.

Note: Tomcat deals only with WAR files. If you want to install EAR files, use Apache Geronimo

For more details, refer http://www.javaworld.com/javaworld/jw-01-2008/jw-01-tomcat6.html?page=2

Sunday, July 12, 2009

Sound problem with Ubuntu 9.04, kernel 2.6.28-13-generic Upgrade

Recently, I upgraded my machine to Ubuntu 9.04, kernel 2.6.28-13-generic and had a problem with Sound driver(No Sounds at all). Solved by upgrading the ALSA to 1.0.20.

http://monespaceperso.org/blog-en/2009/05/09/upgrade-alsa-1020-on-ubuntu-jaunty-904/

Monday, May 18, 2009

Howto Install NetBeans IDE in Ubuntu 8.10

The below article gives you the 2 possible ways of installing NetBeans in Ubuntu (Using Package Manager and Manual Install)

http://www.javadesign.info/SystemsHardware/OS/Ubuntu/install-netbeans-on-ubuntu

Sunday, May 17, 2009

Which Language is best for writing Linux Distro's and Applications?

The simple article from brighthub considers three popular programming languages C, Python and Java and discusses their own strength and weakness. Finally the author says that Java is the best choice.

Read out more @ http://www.brighthub.com/computing/linux/articles/34968.aspx

Saturday, May 16, 2009

JChassis - Framework for small Java applications - Do simple things simply

  • It is a framework for simple Java applications
  • The size of this framework is less than 100KB
  • It can run in Java runtime as well as J2ME Foundation Profile
  • It is NOT a web application framework
You can download it @ http://jchassis.sourceforge.net/

Wolfram Alpha - Computational Knowledge Engine - Screenshots

Yesterday Wolfram|Aplha was released and I have tried some of the queries with it.
I tried some of the commons questions and here is the screen shots which I have tried

Some of the hits











Some of the misses







You can follow it in Twitter @ http://twitter.com/wolfram_alpha/

Do you want to know more about this? Check out the article in TechCrunch
http://www.techcrunch.com/2009/03/08/wolfram-alpha-computes-answers-to-factual-questions-this-is-going-to-be-big/