Jetty WebServer
Hi All,
I found very interesting information about Jetty WebServer.
Link : http://www.mortbay.org/jetty/
Jetty is an open-source, standards-based, full-featured web server implemented entirely in Java. It is released under the Apache 2.0 licence and is therefore free for commercial use and distribution. First created in 1995, Jetty has benefitted from input from a vast user community and consistent and focused development by a stable core of lead developers. There are many more examples of Jetty in action on the Jetty Powered Page that has selections from among the tens of thousands of production Jetty instances. However, as Jetty aims to be as unobtrusive as possible, countless websites and products are based around Jetty, but Jetty is invisible!
Full commercial support, training and development services for Jetty and Jetty-based projects are available from Webtide.
Jetty can be used as:
- a stand-alone traditional web server for static and dynamic content
- a dynamic content server behind a dedicated HTTP server such as Apache using mod_proxy
- an embedded component within a java application
This flexibility means that Jetty can be encountered in a number of different contexts:
- shipped with products to provide out-of-the-box useability eg Tapestry, Liferay
- distributed on CDs with books to make examples and exercises ready-to-run
- incorporated into applications as a HTTP transport eg JXTA, MX4J
- integrated as a web container in JavaEE app servers eg JOnAS, Geronimo, JBoss, JFox
- included as a component of an application eg Continuum, FishEye, Maven
Some of the defining features of Jetty are:
Simplicity
The guiding principle of Jetty could be said to be “simplicity not complexity”. We want to make Jetty easy to understand and use:
- Configuration is either by API or by xml file
- Xml file syntax is a straightforward mapping from the API operating on POJOs
- Default configuration files make Jetty useable out-of-the-box
- Minimal number of lines required to embed a Jetty instance
Scalability
In asynchronous Web 2.0 type applications using techniques such as AJAX, connections stay open longer than when serving static pages, and thread and memory requirements can escalate drastically. Infrastructure must handle that gracefully lest an individual component, such as a slow database connection stop an entire site because of a lack of threads. With Jetty…
- Performance degrades gracefully under stress for high quality of service
- Working Within the framework of existing web specificiations, handle large user loads and long-lived sessions with continuations
- Integrations available to clustering options such as WADI and Terracotta
Efficiency
A lot of effort goes into optimizing Jetty’s performance and crafting the code so as to make the footprint as small as possible:
- Dependencies are kept to the absolute minimum
- The core is kept small with extra functionality in optional jars
- Scalability is a key concern
- Performance degrades gracefully under stress
Embeddability
Jetty is designed to be a good component. This means that it can easily be embedded in an application without forcing the application to adapt to it:
- Usage of dependency injection and inversion of control patterns
Pluggability
Jetty is architected for pluggability. The API allows different implementations of all of the principal Jetty components to be selected. At least one, but sometimes more, implementations of a component are always provided. However if these do not meet your needs, you are free to code your own using the interfaces and abstract classes as a basis. This means that Jetty can be easily customised to a particular application environment. This is particularly useful when Jetty is acting as the web container in a JavaEE server, as Jetty’s pluggability ensures a tight integration with a host container.
Add comment October 7, 2008
PATH Settings
PATH Settings
I hope us we all very familiar of installing JAVA and configuring with windows.
But, when we are installing with new PC, we use to get some new problems.
For example, I brought a new PC. I just installed JAVA and Maven in my system. I have set all needed environment variables. But when I did JAVA in command prompt, it’s working absolutely fine. but JAVAC is not working. I use to get the message like “javac not recognized as an internal or external command”.
Then after some googling in net I got to know that we have to set some PATH variable also for to run JAVAC. My example Path variable is:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
%PATH%;%JAVA_HOME%\\bin;%M2_HOME%\\bin
I believe this will help some ppl who new to java
Add comment September 29, 2008
39 things wrong with the Iphone
Hi All,
2Day i got a forward mail from my friend Vidya. It’s really very interesting to share with you all. We where waiting for IPhone from last year but i hope now people will get disappointment.
This features might be missing in Indian phones.
1. Can’t copy & paste text.
2. Except for the first and last SMS messages in a session, iPhone text messages lack timestamps.
3. iPhone’s Safari browser does not support Java or Flash, so you can’t watch videos (except for YouTube ones) or see parts of certain websites.
4. The on-screen keyboard can’t be used in landscape mode in applications other than Safari.
5. Vibrate mode for incoming text messages is weak.
6. Incoming text messages appear word-for-word on the screen upon receiving them, which may be a privacy issue for some. (Update: Here’s a sort of solution.)
7. No Undo function for when you’ve accidentally erased or mistyped text.
8. Scroll bars don’t appear in some text fields in the browser, and there are no arrow keys to maneuver through text.
9. Can’t save usernames and passwords in Safari.
10. The YouTube app does not allow you to view or post comments on videos.
11. Can’t download or save Word documents, PDF files, or any other file for that matter. Why not add a My Documents folder?
12. No spell check feature for web forms.
13. Can’t send more than one image in an email.
14. Except for in the Camera Roll, photos can’t be edited or removed directly from the iPhone. You have to edit them on your computer and then re-sync them.
15. The iPhone lacks a Find function for sorting through contacts, e-mails, calendar appointments, notes, etc.
16. Can’t update your Facebook status via iPhone’s Safari browser. Facebook is a fast-growing social network, so iPhone should support it. (Update: Facebook now has an iPhone version of the site, located at iphone.facebook.com)
17. No mass edit feature for handling calendar items, notes and e-mails.
18. Can’t search within web pages in the browser.
19. Its 3-day, expensive battery replacement plan.
20. Can’t highlight text.
21. Limited ringtones. Can’t set songs as ringtones. (Update: Apple now lets you convert some songs into ringtones via iTunes for $0.99 each.)
22. Difficult to rewind and fast-forward through long audio and video files (like audiobooks and TV shows or movies).
23. No AIM or iChat application.
24. One too many steps to dial a contact. (Update: In a software update, Apple added a feature that lets you double tap the home button to access your Favorites list of contacts.)
25. Because it is recessed, the headphone jack is incompatible with non-Apple headphones. Griffin’s headphone adapter can solve this problem.
*Bonus* – MORE things wrong with the iPhone
Here are a few more things wrong with the iPhone, as readers have pointed out in the comments below.
26. iPhone’s camera is archaic (no zoom, poor image stabilization, poor quality in low-lit areas).
27. No speed dial or voice dial functionality.
28. Cannot add attachments to emails.
29. Can’t use iPhone as a hard drive storage device, unlike the iPod.
30. Can’t change the sound notifications for email, voicemail, etc.
31. Can’t delete individual entries from the recent calls list without deleting them all, a potential privacy issue.
32. No 3G data speeds. EDGE is slow at times.
33. Cannot send photos via text messages.
34. Cannot send mass text messages. (Update: Apple added mass text messaging to the iPhone via firmware update 1.1.3)
35. iPhone lacks a video camera. (See my article on why mobile video is important)
36. No tasks or To-Do widgets.
37. No support for games.
38. Can’t disable auto-correct on the keyboard. Every time it makes a suggestion you don’t want, you have to tap X to cancel it, which can slow down typing a lot.
39. iPhone’s calculator lacks a backspace, so you have to clear the entire process if you accidentally touch an unintended digit.
N.B: If you still want to buy an iphone then hang on…let the prices slash. Surely 31k(India) is not worthy for the above features lacking in a phone.
Add comment August 29, 2008