J2EE Programming Tips

Popular Java/J2EE Development/Testing Tools

1. IDE => Eclipse/Netbeans/IntelliJ IDEA/JBuilder/JDeveloper/WSAD

2. Application Server => WebSphere/Weblogic/Sun GlassFish/Apache Tomcat/JBoss/JRun/Iplanet/NES(Netscape Enterprise Server)/NAS(Netscape Application Server) /IPLANET(It is latest version of NES and NAS)

3. Database Server => Oracle/Sqlserver/Sybase/MySql/DB2(if Application is Mainframe)

4. Middle Tier => EJB/Hibernate/TopLink/JDO/JMS/Corba(TAO,JavaOrb,OmniOrb ...)

5. Web Application Frameworks => Struts/Spring/JSF/GWT/Apache Wicket/Grails/Adobe Flex/ OpenLaszlo/SAILS/Tapestry

6. XML Parser => Xerces(Apache Parser)/JAXP(Sun Parser)

7. XSLT Parser => Xalan(Apache XSLT)/Saxon

8. JAVA XML Binding => JAXB/Castor/XMLBeans

9. Unit Testing Framework for Java => JUnit/GJTester

10. Unit Testing Framework for Servlets => Cactus/AppPerfect

11. Unit Testing Framework for Servlets/JSP/EJB => HtmlUnit/AppPerfect

12. Unit Testing Framework for Java Database Programming => SQLUnit / DBUnit / DAO

13. Java Memory Leak Tool => HeapRoots / JRockit JVM

14. Java Performance Checking Tool => Apache JMeter / JProfiler / JUnitPerf / The Grinder

15. Java Code Static Analysis Tool => ASSENT(TCS Product)/JTest

16. Java Code Coverage Tools => CheckStyle/PMD

17. Java Build Tool => Ant/Maven/Apache Ivy

18. Java Bug tracking Tool => Bugzilla/SVN Trac/QC(Quality Center)

19. Java Webservices Tool => Axis(SOAP WebServices) / Crispy(REST Webservices)

20. Java Common Utilities API => Apache Commons Library ( Please check this Library before you develop any new Java Utilities Classes)

21. Java Reporting Tools => BI Crystal Reports/Actuate/Jasper Reports/JCharts

22. Open Source UML & Modeling in Java => AgroUML/Jude/Violet

23. Logging Tools => Log4J / Commons Logging / AspectJ / Log4plsql(Open-Source Tool for PL/SQL Logging) / jLo

24. Java Security Frameworks => Acegi, JaaS

25. Java Graph/Network Visualization Tools => Tom Sawyer / VizServer / Giny

26. Java Desktop GUI : AWT/SWING/SWT/JFace

27. Open Source Wiki Engines in Java => JSPWiki / MediaWiki

28. Web Browsers => Mozilla FireFox / IE / Safari

Miscellaneous -

a. Integration Server => Talend / Hudson

b. Encryption/Decryption Libraries => JASYPT (Pretty good Java cryptography library to encrypt/decrypt your usernames, passwords, files ...)

c. Image API => Jai (Java Advanced API for Imaging)

d. Configuration Management Tools - Subversion / CVS

e. Java Service Wrapper (To run your java applications as a windows service)

f. Content Management System(CMS) - plone / zoomla / zope / drupal

g. Java Persistence API(JPI)

h. JCR - Content Repository API for Java (JCR) is a specification for a Java platform API for accessing content repositories in a uniform manner

i. MULE - Mule is the world's most widely used open source Enterprise Service Bus (ESB).

j. JSON - JSON (JavaScript Object Notation) is a lightweight data-interchange formatFor data-oriented applications, prefer JSON to XML due to its simplicity and ease of processing on the client side. XML may be great on the server side, but JSON is definitely easier to deal with on the client side.

k. Rhino - Javascript Engine in Java

l. Apache Lucene - A high-performance, full-featured text search engine library written entirely in Java

Core Java Focus:

1. Core Java Fundamentals (Core Packages)

2. Collections, Generics, Reflections

3. Multithreaded Programming

4. AWT/SWING GUI Programming

5. JDBC programming

6. Network Progamming (sockets, ...)

7. HTTP Programming

8. RMI


Compared to JDK 4.0 ( 1.4.4) , JDK 5.0 ( 1.4.5) has more features like -

1. Generics => which are like C++ STL (Standard Template Library)

2. Variable Args

3. enum

4. Auto Boxing

5. Reading Commandline Arguments

6. printf

J2EE Focus:

Here you will focus on one of the J2EE Web Application Frameworks -

Any Web Application Framework => Presentation Tier, Middle Tier

1. Struts => Presentation Tier(Servlets,JSP),Middle Tier(EJB)
2. Spring => Presentation Tier(Servlets, JSP), Middle Tier(Hibernate)

So the common and fundamental stuff in J2EE is Servlets, JSP

Servlets => HTML code Snippets embedded with JAVA code
JSP => Java Code Snippets embedded with HTML code

So we can say Servlets & JSP in J2EE as Fundamentals of J2EE programming.

To be a good one in J2EE, You have to be proficient in atleast one Application Server & one Database Server based on the Operating System that you are going to deploy J2EE Products/Applications.

Application Server can be => WebSphere/JBoss
Database Server can be => Oracle/SqlServer ( if OS is Windows then SqlServer )

Thanks To:
Special Thanks to my wife, Roja Koney for her inspiration, contribution and continuous support to write this Java/J2EE post.

Special Thanks to Changal Rayudu , Raghavendra Sai for their immense help in developing this write-up.


1. "Thinking in Java , 3rd Edition" by Bruce Eckle -

2."'J2EE Web Services: The Ultimate Guide" by Richard Monson-Haefel -http://books.google.com/books?id=NNqmolbaApQC&pg=PA1&dq=j2ee&sig=ACfU3U3-RDn6uGY8QZ6DjYPT_Fb_dSPiKA#PPA885,M1

3. "J2EE Design Patterns" by William Crawford, Jonathan Kaplan -

4. "Core J2ee Patterns: Best Practices and Design Strategies" by Deepak Alur, John Crupi -

5. "J2EE and JAX: developing Web applications and Web services" by Michael Yawn -

6. "Sun Certified Enterprise Architect for J2EE Study Guide (exam 310-051)" by Paul R. Allen, Joseph J. Bambara -

7. "Sun Certified Enterprise Architect for J2EE technology study guide" by Mark Cade, Simon Roberts -

8. "Core Web Programming" by Marty Hall and Larry Brown

9. "CodeNotes for J2EE: EJB, JDBC, JSP, and Servlets" by Gregory Brill

1. Open Source Software in Java - http://java-source.net/

2. Open Source Testing Tools in Java -

3. Java/J2EE IDEs Overview -

4. J2EE Interview Questions -

5. J2EE Overview -

6. J2EE Overview -

7. .NET vs J2EE -

8. Java Desktop GUI -

9. Java Content Repository(JCR) API -

10. Mule -


11. JSON -

12. Ruby Blog :

13. Java Interview Questions -

14. Runtime Code Generation with JVM & CLR -

15. JVM vs CLR memory allocation - http://benpryor.com/blog/2006/05/04/jvm-vs-clr-memory-allocation/

16. Javascript Engines : WebMonkey(in C) , Rhino(In Java) - http://www.mozillazine.org/

17. Runtime Code Generation with JVM & CLR - http://www.itu.dk/~sestoft/rtcg/rtcg.pdf

18. JVM vs CLR memory allocation - http://benpryor.com/blog/2006/05/04/jvm-vs-clr-memory-allocation/

19. PHP Frameworks - CAKE, ZEND, SYMFONY

20. Java Server Magazine - http://www.javaskyline.com/