<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2470916535636323458</id><updated>2011-09-13T16:33:17.748+05:30</updated><category term='UDH'/><category term='Java Annotations'/><category term='System Tuning'/><category term='Struts'/><category term='Servlets'/><category term='Jasper'/><category term='MySQL'/><category term='JSP'/><category term='Double Formatting(Java)'/><category term='Advanced Java Concepts'/><category term='Design pattern'/><category term='J2EE FAQ'/><category term='User Data Header'/><category term='Binary SMS'/><category term='MySQL Configuration'/><category term='Java Interview Questions'/><category term='Struts MVC'/><category term='SED'/><category term='Java FAQ'/><category term='SMPP'/><category term='Inversion of Control'/><category term='Java'/><category term='Spring MVC'/><category term='Java Reports'/><category term='Open files limit'/><category term='MVC Framework'/><category term='Linux'/><category term='MySQL Monitoring'/><category term='Spring'/><category term='Multi SMS'/><category term='SMS Sending'/><title type='text'>For 99.999%</title><subtitle type='html'>Learning HA</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-5597926941103155975</id><published>2010-11-20T17:18:00.001+05:30</published><updated>2010-11-20T17:18:25.647+05:30</updated><title type='text'>What is Struts ?</title><summary type='text'>What is Struts ?Apache Struts is a free open-source framework for creating Java web applications.Difference Between Struts 1 and Struts 2 Struts1 was an action- oriented framework that implemented a Model-View-Controller (MVC) separation of concerns in its architecture. Struts2 is a brand new implementation of those same MVC principles in an action-oriented framework.  Difference Between Struts 1</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/5597926941103155975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=5597926941103155975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/5597926941103155975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/5597926941103155975'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/11/what-is-struts.html' title='What is Struts ?'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-6719034843957606273</id><published>2010-11-20T17:14:00.001+05:30</published><updated>2010-11-20T17:14:18.544+05:30</updated><title type='text'>Differences Between Struts 1 and Struts 2</title><summary type='text'>Base Action class is  abstract class in Struts1 where as it is Interface in Struts2 and also provides a base ActionSupport class that implements commonly used interfaces. Struts 1 Actions are singletons and must be thread-safe where as Struts 2 doesn't have thread-safety issues as Action objects are instantiated for each request. Actions are dependent on the servlet API , as HttpServletRequest </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/6719034843957606273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=6719034843957606273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6719034843957606273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6719034843957606273'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/11/differences-between-struts-1-and-struts.html' title='Differences Between Struts 1 and Struts 2'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-5685941819870020020</id><published>2010-09-02T20:02:00.001+05:30</published><updated>2010-09-03T12:55:19.349+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Java Annotations'/><category scheme='http://www.blogger.com/atom/ns#' term='Advanced Java Concepts'/><title type='text'>Java Annotations Introduction</title><summary type='text'>AnnotationsAnnotations provide data about a program that is not part of the program itself. They have no direct effect on the operation of the code they annotate.
   
Annotations have a number of uses, among them: 
Information for the compiler — Annotations can be used by the compiler to detect errors or suppress warnings.  
Compiler-time and deployment-time processing — Software tools can </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/5685941819870020020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=5685941819870020020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/5685941819870020020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/5685941819870020020'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/09/java-annotations-introduction.html' title='Java Annotations Introduction'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-2834689301624182725</id><published>2010-08-27T15:26:00.000+05:30</published><updated>2010-08-27T15:27:01.256+05:30</updated><title type='text'>Java Command-line flags for the JVM</title><summary type='text'>DisableExplicitGC-XX:+DisableExplicitGC flag automatically turns a System.gc() call into a no-op HeapDumpOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemory  Setting this command tells the JVM to take a "heap dump snapshot" and save it to a file for processing. You can specify the actual path to which the file is saved using the corresponding -XX:HeapDumpPath flag.java -X lists all the non-standard (</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/2834689301624182725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=2834689301624182725' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2834689301624182725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2834689301624182725'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/08/java-command-line-flags-for-jvm.html' title='Java Command-line flags for the JVM'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-8582171222769329559</id><published>2010-08-27T14:59:00.001+05:30</published><updated>2010-08-27T14:59:28.034+05:30</updated><title type='text'>MySQL Joins</title><summary type='text'>Mysql Inner Join returns the set of  only those records which matches in one table with another.If I do a regular JOIN (with none of the keywords INNER, OUTER, LEFT or RIGHT),  then I get all records that match in the appropriate way in the two tables,  and records in both incoming tables that do not match are not reported:mysql&gt; select name, phone, selling from demo_people join demo_property</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/8582171222769329559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=8582171222769329559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8582171222769329559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8582171222769329559'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/08/mysql-joins.html' title='MySQL Joins'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-9138029501593205439</id><published>2010-08-24T13:21:00.001+05:30</published><updated>2010-08-24T13:21:47.930+05:30</updated><title type='text'>Spring aware interfaces</title><summary type='text'>For the most part, beans running in the Spring container, They don't know (or even need to know) their names or even that they are running within a Spring container. This is usually a good thing because if a bean is aware of the container,  then it becomes coupled with Spring and may not be able to exist outside of the container. A well designed component should not have direct dependencies on </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/9138029501593205439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=9138029501593205439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/9138029501593205439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/9138029501593205439'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/08/spring-aware-interfaces.html' title='Spring aware interfaces'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-9106103203876243055</id><published>2010-08-18T18:52:00.002+05:30</published><updated>2010-09-03T12:59:38.748+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMPP'/><category scheme='http://www.blogger.com/atom/ns#' term='User Data Header'/><category scheme='http://www.blogger.com/atom/ns#' term='SMS Sending'/><category scheme='http://www.blogger.com/atom/ns#' term='Multi SMS'/><category scheme='http://www.blogger.com/atom/ns#' term='Binary SMS'/><category scheme='http://www.blogger.com/atom/ns#' term='UDH'/><title type='text'>UDH in Binary SMS / Multipart SMS messsages</title><summary type='text'>Multipart SMS messaging By design, SMS is developed to send up to 140 bytes of user data. All user data is send in the 'User Data' part of the SMS packet. Because SMS text messages are encoded using 7-bit characters you can send up to 160 characters in a single SMS message. When sending Unicode text, you can only send 70 characters per single SMS message. 
It is however possible to split up text </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/9106103203876243055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=9106103203876243055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/9106103203876243055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/9106103203876243055'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/08/udh-in-binary-sms-multipart-sms.html' title='UDH in Binary SMS / Multipart SMS messsages'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-4490208460358881300</id><published>2010-07-12T15:38:00.001+05:30</published><updated>2010-07-12T15:38:37.355+05:30</updated><title type='text'>JAVA Composition vs Aggregation</title><summary type='text'>Association - it's a structural relationship between two classifiers i.e. classes or Use cases.An Association specifies how objects are related to one another. Aggegation &amp; Composition are associations with following  qualities. Aggegation is normally understood as a "has-a" relationship. Here both the entities continue to have their own independent existence. Aggregations are not allowed to be </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/4490208460358881300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=4490208460358881300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/4490208460358881300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/4490208460358881300'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/07/java-composition-vs-aggregation.html' title='JAVA Composition vs Aggregation'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-6407494970870784784</id><published>2010-06-15T19:35:00.001+05:30</published><updated>2010-06-15T19:37:05.123+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MVC Framework'/><category scheme='http://www.blogger.com/atom/ns#' term='J2EE FAQ'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring MVC'/><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><category scheme='http://www.blogger.com/atom/ns#' term='Struts MVC'/><category scheme='http://www.blogger.com/atom/ns#' term='Struts'/><title type='text'>Why we need MVC framework?</title><summary type='text'>
Why we need MVC framework?
Web applications differ from conventional websites in that web applications can create a dynamic response. Many websites deliver only static pages. A web application can interact with databases and business logic engines to customize a response.
Web applications based on JavaServer Pages sometimes commingle database code, page design code, and control flow code. In </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/6407494970870784784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=6407494970870784784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6407494970870784784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6407494970870784784'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/06/why-we-need-mvc-framework.html' title='Why we need MVC framework?'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-8498891311039678479</id><published>2010-04-13T12:49:00.003+05:30</published><updated>2010-04-13T12:52:37.092+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Double Formatting(Java)'/><category scheme='http://www.blogger.com/atom/ns#' term='Java FAQ'/><title type='text'>Formatting(Precision) Java Double /Float Decimal Digits</title><summary type='text'>Formatting( Precision ) Java Double Decimal Digits

Formatters converts a floating point/double  value  to a string  with  a specified number  of decimals.

For formatting the decimal part of double/Float we can use NumberFormat or DecimalFormat .
The difference between them is that        NumberFormat is an abstract class.
        DecimalFormat is a concrete implementation of NumberFormat.
Using</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/8498891311039678479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=8498891311039678479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8498891311039678479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8498891311039678479'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/04/formattingprecision-java-double-float.html' title='Formatting(Precision) Java Double /Float Decimal Digits'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-1781982849964349625</id><published>2010-02-18T14:42:00.001+05:30</published><updated>2010-02-18T14:50:53.611+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JSP'/><category scheme='http://www.blogger.com/atom/ns#' term='Java FAQ'/><title type='text'>Parameter retrieval from JSP with multipart/form-data</title><summary type='text'>javax.servlet.HttpServletRequest.getParameter(String) returns null 
when the ContentType is multipart/form-data


Solution A:


invoke getParameters() on com.oreilly.servlet.MultipartRequest
You can get files from here 

Solution B:

1. download Jar file from here
2. invoke readHeaders() in org.apache.commons.fileupload.MultipartStream
JSP Example program  here

Solution C:


invoke getParameter </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/1781982849964349625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=1781982849964349625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/1781982849964349625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/1781982849964349625'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/02/parameter-retrieval-from-jsp-with.html' title='Parameter retrieval from JSP with multipart/form-data'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-6925820749099346569</id><published>2010-01-29T18:39:00.006+05:30</published><updated>2010-01-29T18:53:22.518+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Java FAQ'/><title type='text'>Comparison of Java ==, .equals(), compareTo(), and compare()</title><summary type='text'>Source &amp; Full Article


When you really need to know if two references are identical, use ==. But when you need to know if the objects themselves (not the references) are equal, use the  equals() method. 


If you don't override a class's equals() method, you won't be able to use those objects as a key in a hashtable and you probably won't get accurate Sets, such that there are no conceptual </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/6925820749099346569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=6925820749099346569' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6925820749099346569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6925820749099346569'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/01/comparison-of-java-equals-compareto-and_29.html' title='Comparison of Java ==, .equals(), compareTo(), and compare()'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-2004894094537569830</id><published>2010-01-21T19:49:00.005+05:30</published><updated>2010-01-21T20:07:37.656+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='J2EE FAQ'/><title type='text'>Java 2 Platform, Enterprise Edition (J2EE) FAQ</title><summary type='text'>What is the Java 2 Platform, Enterprise Edition (J2EE)?
The Java 2 Platform, Enterprise Edition (J2EE) is a set of coordinated specifications and practices that together enable solutions for developing, deploying, and managing multi-tier server-centric applications. Building on the Java 2 Platform, Standard Edition (J2SE), the J2EE platform adds the capabilities necessary to provide a complete, </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/2004894094537569830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=2004894094537569830' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2004894094537569830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2004894094537569830'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/01/java-2-platform-enterprise-edition-j2ee.html' title='Java 2 Platform, Enterprise Edition (J2EE) FAQ'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-2505532182611865344</id><published>2010-01-18T19:49:00.001+05:30</published><updated>2010-01-21T20:05:17.329+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Java FAQ'/><title type='text'>Definitions of JRE JDK JVM J2SE J2EE</title><summary type='text'>Java SE Overview 
There are two principal products in the Java SE platform family: Java SE Runtime Environment (JRE) and Java Development Kit (JDK).



Java Runtime Environment (JRE)
The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. In addition, two key deployment </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/2505532182611865344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=2505532182611865344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2505532182611865344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2505532182611865344'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2010/01/definitions-of-jre-jdk-jvm-j2se-j2ee.html' title='Definitions of JRE JDK JVM J2SE J2EE'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_xZZ3954_3C0/S1hj7x5e6zI/AAAAAAAAAAk/zpnEf5cCd7w/s72-c/javaHierarchy.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-6909448933273341058</id><published>2009-12-24T20:50:00.005+05:30</published><updated>2009-12-24T20:59:59.504+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Java FAQ'/><title type='text'>Java’s String pooling</title><summary type='text'>
A string pool is a collection of references to String objects. 
Strings, even though they are immutable, are still objects like any other in Java. Objects are created on theheap and Strings are no exception. 
So, Strings that are part of the "String Literal Pool" still live on the heap, but they have references to them from the String Literal Pool.

When a .java file is compiled into a .class </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/6909448933273341058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=6909448933273341058' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6909448933273341058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/6909448933273341058'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/12/javas-string-pooling.html' title='Java’s String pooling'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-2835294782098227544</id><published>2009-12-22T19:47:00.004+05:30</published><updated>2010-09-03T13:02:05.790+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Inversion of Control'/><category scheme='http://www.blogger.com/atom/ns#' term='Design pattern'/><title type='text'>Inversion of Control ( IOC ) Design pattern</title><summary type='text'>Inversion of Control (IoC) design pattern  BasicsThe Inversion of Control (IoC) pattern is also known as Dependency Injection. The basic concept of the Inversion of Control pattern is that programmers don’t need to create the objects but describe how they should be created.IOC  design pattern  alleviates  application objects from the responsibility of creating, and managing their dependencies. </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/2835294782098227544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=2835294782098227544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2835294782098227544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2835294782098227544'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/12/inversion-of-control-ioc-design-pattern.html' title='Inversion of Control ( IOC ) Design pattern'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-8791953952284500141</id><published>2009-11-27T19:27:00.000+05:30</published><updated>2009-11-27T19:30:02.740+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlets'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Servlet Container &amp; Request processing</title><summary type='text'>Why we need Container for Servlets?

    Servlets don't have main() method,They run under 
    control of another java application called container.
    Ex: Tomcat

When Server gets request for servlet the server handovers
the request to container in which Servlet is deployed.

In simple "Container manages and runs the Servlet".

Advantages of using Container:

Communication
The container </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/8791953952284500141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=8791953952284500141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8791953952284500141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8791953952284500141'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/11/uses-of-servlet-container-handling.html' title='Servlet Container &amp; Request processing'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-2583862163160194171</id><published>2009-11-19T19:10:00.001+05:30</published><updated>2009-11-23T14:34:44.110+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Reports'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Jasper'/><title type='text'>Creating jasper reports in 4 simple steps</title><summary type='text'>
Download the jasper reports Lib and Source from here. 
Intro:
    JasperReports is an open-source Java class library 
    designed to aid developers with the task of adding 
    reporting capabilities to Java applications.
    JasperReports is licensed under the Lesser GNU Public License (LGPL).
Features:
    It has flexible report layout.
    It is capable of presenting data textually or </summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/2583862163160194171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=2583862163160194171' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2583862163160194171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2583862163160194171'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/11/creating-jasper-reports-using-java.html' title='Creating jasper reports in 4 simple steps'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_xZZ3954_3C0/SwVbXQtx3YI/AAAAAAAAAAc/ZIsa0goQvcU/s72-c/om.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-1664793624399007473</id><published>2009-11-11T13:22:00.000+05:30</published><updated>2009-11-11T13:23:00.205+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Monitoring'/><title type='text'>MySQL monitoring Using ' mycheckpoint '</title><summary type='text'>Download the packge from here .
Dependencies 
    yum install MySQL-python.
Installation    
  untar the file and run follwoing commands
          tar xzfv mycheckpoint-XXX.tar.gz
          cd mycheckpoint-XXX
          sudo python setup.py install

Run follwing commads on mysql prompt
     CREATE DATABASE mycheckpoint;    
     GRANT ALL PRIVILEGES ON mycheckpoint.* TO                         
</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/1664793624399007473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=1664793624399007473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/1664793624399007473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/1664793624399007473'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/11/mysql-monitoring-mycheckpoint.html' title='MySQL monitoring Using &apos; mycheckpoint &apos;'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-8856948792618440735</id><published>2009-11-10T13:32:00.000+05:30</published><updated>2009-11-10T13:32:47.313+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Configuration'/><title type='text'>Configuration of MySQL network  related variables</title><summary type='text'>max_connect_errors

connect_timeout

skip-name-resolve

slave_net_timeout 

For more details ...</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/8856948792618440735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=8856948792618440735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8856948792618440735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/8856948792618440735'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/11/configuration-of-mysql-network-related.html' title='Configuration of MySQL network  related variables'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-2514885752025748606</id><published>2009-10-28T15:38:00.000+05:30</published><updated>2009-10-28T15:45:58.421+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SED'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>SED Delimiters and  usage</title><summary type='text'>Delimiters in SED substitute command  @ % | ; :
The follwing two commands are same.

    sed 's@/home/@/myhome@g' saple.txt
    sed 's/\/home\//\/myhome\//g' saple.txt

The part of an input line on which the Regular Expression matches is represented by &amp; , 
and It can be used in the replacement part.       sed 's/input/&amp;output/g' 
      output: inputoutput

Grouping can be used in sed like normal</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/2514885752025748606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=2514885752025748606' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2514885752025748606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/2514885752025748606'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/10/sed-delimiters-and-usage.html' title='SED Delimiters and  usage'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2470916535636323458.post-3699587321456006487</id><published>2009-09-29T17:35:00.000+05:30</published><updated>2009-09-29T18:25:58.803+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='System Tuning'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Open files limit'/><title type='text'>Increasing open files limit on Linux</title><summary type='text'>Q) How to check open files limit on Linux  ?
A) ulimit -a

ulimit Provides  control  over  the  resources  available  to  the shell and to processes started by it, on systems that allow such control.
-a     All current limits are reported


[testuser@localhost /]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0</summary><link rel='replies' type='application/atom+xml' href='http://forfivenines.blogspot.com/feeds/3699587321456006487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2470916535636323458&amp;postID=3699587321456006487' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/3699587321456006487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2470916535636323458/posts/default/3699587321456006487'/><link rel='alternate' type='text/html' href='http://forfivenines.blogspot.com/2009/09/increase-open-files-limit-on-linux.html' title='Increasing open files limit on Linux'/><author><name>rk</name><uri>http://www.blogger.com/profile/10361716792541143809</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
