Tuesday, April 27, 2010

Iterative and incremental development


From Wikipedia, the free encyclopedia

Jump to: navigation, search

Iterative and Incremental development is a cyclic software development process developed in response to the weaknesses of the waterfall model. It starts with an initial planning and ends with deployment with the cyclic interaction in between.





An iterative development model

Software development process


Activities and steps

Requirements • Specification

Architecture • Design

Implementation • Testing

Deployment • Maintenance


Methodologies

Agile • Cleanroom •

Iterative • RAD • RUP • Spiral

Waterfall • Lean

V-Model • TDD


Supporting disciplines

Configuration management

Documentation

Quality assurance (SQA)

Project management

User experience design


Tools

Compiler • Debugger • Profiler

GUI designer

Integrated development environment


v • d • e


The iterative and incremental development is an essential part of the Rational Unified Process, the Dynamic Systems Development Method, Extreme Programming and generally the agile software development frameworks.

Development topics

The Basic idea

The basic idea behind iterative enhancement is to develop a software system incrementally, allowing the developer to take advantage of what was being learned during the development of earlier, incremental, deliverable versions of the system. Learning comes from both the development and use of the system, where possible key steps in the process are to start with a simple implementation of a subset of the software requirements and iteratively enhance the evolving sequence of versions until the full system is implemented. At each iteration, design modifications are made and new functional capabilities are added.

The procedure itself consists of the initialization step, the iteration step, and the Project Control List. The initialization step creates a base version of the system. The goal for this initial implementation is to create a product to which the user can react. It should offer a sampling of the key aspects of the problem and provide a solution that is simple enough to understand and implement easily. To guide the iteration process, a project control list is created that contains a record of all tasks that need to be performed. It includes such items as new features to be implemented and areas of redesign of the existing solution. The control list is constantly being revised as a result of the analysis phase.

The iteration involves the redesign and implementation of a task from the project control list, and the analysis of the current version of the system. The goal for the design and implementation of any iteration is to be simple, straightforward, and modular, supporting redesign at that stage or as a task added to the project control list. The level of design detail is not dictated by the interactive approach. In a light-weight iterative project the code may represent the major source of documentation of the system; however, in a mission-critical iterative project a formal Software Design Document may be used. The analysis of an iteration is based upon user feedback, and the program analysis facilities available. It involves analysis of the structure, modularity, usability, reliability, efficiency, & achievement of goals. The project control list is modified in light of the analysis results.





Iterative development.

Iterative development

Iterative development slices the deliverable business value (system functionality) into iterations. In each iteration a slice of functionality is delivered through cross-discipline work, starting from the model/requirements through to the testing/deployment. The unified process groups iterations into phases: inception, elaboration, construction, and transition.

• Inception identifies project scope, risks, and requirements (functional and non-functional) at a high level but in enough detail that work can be estimated.

• Elaboration delivers a working architecture that mitigates the top risks and fulfills the non-functional requirements.

• Construction incrementally fills-in the architecture with production-ready code produced from analysis, design, implementation, and testing of the functional requirements.

• Transition delivers the system into the production operating environment.

Each of the phases may be divided into 1 or more iterations, which are usually time-boxed rather than feature-boxed. Architects and analysts work one iteration ahead of developers and testers to keep their work-product backlog full.





The unmodified "waterfall model". Progress flows from the top to the bottom, like a waterfall.

Waterfall vs. Iterative Development

Waterfall development completes the project-wide work-products of each discipline in a single step before moving on to the next discipline in the next step. Business value is delivered all at once, and only at the very end of the project. Backtracking is possible in an iterative approach.

Implementation guidelines

Guidelines that drive the implementation and analysis include:

• Any difficulty in design, coding and testing a modification should signal the need for redesign or re-coding.

• Modifications should fit easily into isolated and easy-to-find modules. If they do not, some redesign is needed.

• Modifications to tables should be especially easy to make. If any table modification is not quickly and easily done, redesign is indicated.

• Modifications should become easier to make as the iterations progress. If they are not, there is a basic problem such as a design flaw or a proliferation of patches.

• Patches should normally be allowed to exist for only one or two iterations. Patches may be necessary to avoid redesigning during an implementation phase.

• The existing implementation should be analysed frequently to determine how well it measures up to project goals.

• Program analysis facilities should be used whenever available to aid in the analysis of partial implementations.

• User reaction should be solicited and analysed for indications of deficiencies in the current implementation. Requirements analysis System analysis Software design Computer programming Formal methods Software testing Software deployment Software maintenance

Java Reference

RESOURCES


Articles

?? Sun Java Certified Enterprise Architect by Leo Crawford on http://www.leocrawford.org.uk/work/jcea/part1/index.html.

?? Practical UML: A Hands-On Introduction for Developers by Randy Miller on http://bdn.borland.com/article/0,1410,31863,00.html

?? W3 Schools on http://www.w3schools.com/default.asp.

?? LDAP basics on http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzahy/rzahyovrco.htm.

?? Java World articles on design patterns: http://www.javaworld.com/columns/jw-Java-design-patterns-index.shtml.

?? Web Servers vs. App Servers: Choosing Between the Two By Nelson King on

http://www.serverwatch.com/tutorials/article.php/1355131.

?? Follow the Chain of Responsibility by David Geary on Java World - http://www.javaworld.com/javaworld/jw-08-2003/jw-0829-

designpatterns.html.

?? J2EE Design Patterns by Sue Spielman on http://www.onjava.com/pub/a/onjava/2002/01/16/patterns.html.

?? The New Methodology by Martin Fowler on http://www.martinfowler.com/articles/newMethodology.html.

?? Merlin brings nonblocking I/O to the Java platform by Aruna Kalagnanam and Balu G on

http://www.ibm.com//developerworks/Java/library/j-javaio.

?? Hibernate Tips and Pitfalls by Phil Zoio on http://www.realsolve.co.uk/site/tech/hib-tip-pitfall-series.php.

?? Hibernate Reference Documentation on http://www.hibernate.org/hib_docs/reference/en/html_single/.

?? Object-relation mapping without the container by Richard Hightower on http://www-128.ibm.com/developerworks/library/jhibern/?

ca=dnt515.

?? Object to Relational Mapping and Relationships with Hibernate by Mark Eagle on http://www.meagle.com:8080/hibernate.jsp.

?? Mapping Objects to Relational databases: O/R Mapping In detail by Scott W. Ambler on

http://www.agiledata.org/essays/mappingObjects.html.

?? I want my AOP by Ramnivas Laddad on Java World.

?? WebSphere Application Server 5.0 for iSeries – Performance Considerations by Jill Peterson.

?? Dependency Injection using pico container by Subbu Ramanathan .

?? WebSphere Application Server & Database Performance tuning by Michael S. Pallos on

http://www.bizforum.org/whitepapers/candle-5.htm.

?? A beginners guide to Dependency Injection by Dhananjay Nene on

http://www.theserverside.com/articles/article.tss?l=IoCBeginners.

?? The Spring series: Introduction to the Spring framework by Naveen Balani on http://www-

128.ibm.com/developerworks/web/library/wa-spring1.

?? The Spring Framework by Benoy Jose.

?? Inversion of Control Containersband the Dependency Injection pattern by Martin Fowler.

?? Migrate J2EE Applications for EJB 3.0 by Debu Panda on JavaPro.

?? EJB 3.0 in a nutshell by Anil Sharma on JavaWorld.

?? Preparing for EJB 3.0 by Mike Keith on ORACLE Technology Network.

?? Simplify enterprise Java development with EJB 3.0 by Michael Juntao Yuan on JavaWorld.

?? J2SE: New I/O by John Zukowski on http://java.sun.com/developer/technicalArticles/releases/nio/.

?? High-Performance I/O arrives by Danniel F. Savarese on JavaPro.

?? Hibernate – Proxy Visitor Pattern by Kurtis Williams.

?? Best Practices for Exception Handling by Gunjan Doshi.

?? Three Rules for Effective Exception Handling by Jim Cushing.

?? LDAP and JNDI: Together forever – by Sameer Tyagi.

?? Introduction To LDAP – by Brad Marshall.

?? Java theory and practice: Decorating with dynamic proxies by Brian Goetz.

?? Java Dynamic Proxies: One Step from Aspect-Oriented Programming by Lara D’Abreo.

?? Java Design Patterns on http://www.allapplabs.com/java_design_patterns .

?? Software Design Patterns on http://www.dofactory.com/Patterns/Patterns.aspx .

?? JRun: Core Dump and Dr. Watson Errors on http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17534

?? The Guerrilla Guide to Interviewing by Joel Spolsky at http://www.joelonsoftware.com/printerFriendly/articles/fog0000000073.html

?? The Riddle of Job Interviews by Kate Kane at http://www.fastcompany.com/online/01/jobint_Printer_Fiendly.html

?? An Introduction to Aspect-Oiented Programming with the Spring Framework, Part 1 by Russell Miles at

http://www.onjava.com/lpt/a/4994

?? 5 Habits Of Best Software Developers by Angusman Chakraborty at http://blog.taragana.com/index.php/archive/5-habits-of-bestdoftware-

developers/

?? Getting started with Hibernate by Alan P Saxton at http://www.cs.bham.ac.uk/~aps/syllabi/2004_2005/issws/h03/hibernate.html

?? Hibernate Tips by Jason Carreira at http://jroller.com/page/jcarreira/20050223

?? Five Things I Love About Spring by Bruce A. Tate at http://www.onjava.com/lpt/a/5833

?? Service-oriented modeling and architecture by Ali Arsanjani , Ph.D at http://www-

128.ibm.com/developerworks/webservices/library/ws-soa-design1/

?? Delving into Service-Oriented Architecture by Bernhad Borges, Kerrie Holley and Ali Arsanjani at

http://www.developer.com/design/print.php/10925_3409221_1

?? SOA: Are We Reinventing the Wheel? By Nick Simha at http://dev2dev.bea.com/lpt/a/435

?? Getting a little closer to SOA by Fabrice Marguerie at http://madgeek.com/Articles/SOA/EN/SOA-Softly.html

?? What is sevice-oriented architecture by Raghu R. Kodali at http://www.javaworld.com/javaworld/jw-06-2005/jw-0613-soa_p.html

RESOURCES

351

?? J2EE-Supported Web Service standards and Technologies by Vijay Ramachandran, Sean Brydon, Greg Murray. Inderjeet Singh,

Beth Stearns, Thierry Violleau.

?? J2EE 1.4 eases Web service development by Frank Sommers at http://www.javaworld.com/javaworld/jw-06-2003/jw-0620-

webservices_p.html

?? A developer’s introduction to JAX-RPC, Part 1 & 2 by Joshy Joseph at http://www-

128.ibm.com/developerworks/webservices/library/

?? Developing Web Services with Java 2 Platform, Enterprise Edition (J2EE) 1.4 Platform by Qusay H. Mahmoud at

http://java.sun.com/developer/technicalArticles/J2EE/j2ee_ws/

?? Scriptless JSP Pages: The Front Man by Bear Bibeault at http://www.javaranch.com/journal/200603/Journal200603.jsp

?? Advanced DAO programming by Sean Sullivan at http://www-128.ibm.com/developerworks/library/j-dao/

?? Understanding JavaServer Pages Model 2 architecture by Govind Seshadri at http://www.javaworld.com/javaworld/jw-12-1999/jw-

12-ssj-jspmvc_p.html

?? A Fast Introduction to Basic Servlet Programming by Marty Hall at

http://www.informit.com/articles/printerfriendly.asp/p=29817&r1=1

?? What’s new in J2Se 5.0? based on Joshua Bloch’s on-line talk.

?? Introducing Java 5 by Andy Grant at http://www.sitepoint.com/print/introducing-java-5

?? Experiences with the New Java 5 Language Features by Jess Garms and Tim Hanson at http://dev2dev.bea.com/lpt/a/442

?? Five Favorite Features from 5.0 by David Flanagan at http://www.onjava.com/lpt/a/5799

?? First among equals by Kevlin Henney at http://www.regdeveloper.com/2005/12/29/first_among_equals/print.html

?? Painting in AWT and Swing by Amy Fowler.

?? A Hands-On Introduction for Developers by Randy Miller at http://bdn.borland.com/article/0,1410,31863,00.html

??

?? www.javaworld.com articles.

?? http://www-128.ibm.com/developerworks/java articles.

?? http://www.devx.com/java articles.

?? www.theserverside.com/tss articles.

?? http://javaboutique.internet.com/articles articles.

Books

?? Beginning Java 2 by Ivor Horton.

?? Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (GoF) .

?? UML Distilled by Martin Fowler, Kendall Scott .

?? Mastering Enterprise Java Beans II by Ed Roman, Scott Ambler, Tyler Jewell, Floyd Marinescu.

?? EJB Design Patterns by Floyd Marinescu .

?? Sun Certified Enterprise Architect for J2EE Technology Study Guide by Mark Cade and Simon Roberts.

?? Professional Java Server Programming - J2EE edition by Wrox publication.

?? Design Patterns Java Companion by James W. Cooper (Free download: http://www.patterndepot.com/put/8/JavaPatterns.htm).

?? Test Driven Development – By Example, by Kent Beck.

?? Effective Java – programming language guide by Joshua Bloch

INDEX

352

INDEX

Emerging Technologies/Frameworks

Briefly explain key features of the JavaServer Faces (JSF)

framework? 339

Explain Object-to-Relational (O/R) mapping? 323

Explain some of the pitfalls of Hibernate and explain how to

avoid them? 333

Give an overview of hibernate framework? 324

Give an overview of the Spring framework? 334

How would EJB 3.0 simplify your Java development

compared to EJB 1.x, 2.x? 337

How would the JSF framework compare with the Struts

framework? 341

What are the benefits of IoC (aka Dependency Injection)?

322

What are the differences between OOP and AOP? 317

What are the different types of dependency injections? 321

What are the pros and cons of annotations over XML based

deployment descriptors? 318

What is aspect oriented programming? Explain AOP? 313

What is attribute or annotation oriented programming? 317

What is inversion of control (IoC) (also known as

dependency injection)? 319

What is Test Driven Development (TDD)? 312

What is the difference between a service locator pattern

and an inversion of control pattern? 323

What is the point of Test Driven Development (TDD)? 313

What is XDoclet? 319

Why dependency injection is more elegant than a JNDI

lookup to decouple client and the service? 323

Enterprise - Best practices and performance

considerations

Explain some of the J2EE best practices to improve

performance? 223

Explain some of the J2EE best practices? 222

Give some tips on J2EE application server performance

tuning? 222

Enterprise - EJB 2.x

Can an EJB client invoke a method on a bean directly? 168

Discuss EJB container security? 174

Explain EJB architecture? 165

Explain exception handling in EJB? 172

Explain lazy loading and dirty marker strategies? 179

How can we determine if the data is stale (for example

when using optimistic locking)? 174

How do you rollback a container managed transaction in

EJB? 173

How to design transactional conversations with session

beans? 172

What are EJB best practices? 176

What are isolation levels? 170

What are not allowed within the EJB container? 174

What are the implicit services provided by an EJB

container? 170

What are transactional attributes? 170

What is a business delegate? Why should you use a

business delegate? 176

What is a distributed transaction? What is a 2-phase

commit? 171

What is a fast-lane reader? 178

What is a Service Locator? 178

What is a session façade? 177

What is a value object pattern? 177

What is dooming a transaction? 171

What is the difference between Container Managed

Persistence (CMP) and Bean Managed Persistence

(BMP)? 168

What is the difference between EJB 1.1 and EJB 2.0? What

is the difference between EJB 2.x and EJB 3.0? 169

What is the difference between EJB and JavaBeans? 164

What is the difference between optimistic and pessimistic

concurrency control? 173

What is the difference between session and entity beans?

168

What is the difference between stateful and stateless

session beans? 168

What is the role of EJB 2.x in J2EE? 163

Enterprise - J2EE

Explain J2EE class loaders? 105

Explain MVC architecture relating to J2EE? 99

Explain the J2EE 3-tier or n-tier architecture? 97

So what is the difference between a component and a

service you may ask? 96

What are ear, war and jar files? What are J2EE Deployment

Descriptors? 101

What is J2EE? What are J2EE components and services?

95

What is the difference between a Web server and an

application server? 101

Why use design patterns in a J2EE application? 101

Enterprise - JDBC

Explain differences among java.util.Date, java.sql.Date,

java.sql.Time, and java.sql.Timestamp? 153

How to avoid the “running out of cursors” proble

Java Reference

RESOURCES


Articles

?? Sun Java Certified Enterprise Architect by Leo Crawford on http://www.leocrawford.org.uk/work/jcea/part1/index.html.

?? Practical UML: A Hands-On Introduction for Developers by Randy Miller on http://bdn.borland.com/article/0,1410,31863,00.html

?? W3 Schools on http://www.w3schools.com/default.asp.

?? LDAP basics on http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzahy/rzahyovrco.htm.

?? Java World articles on design patterns: http://www.javaworld.com/columns/jw-Java-design-patterns-index.shtml.

?? Web Servers vs. App Servers: Choosing Between the Two By Nelson King on

http://www.serverwatch.com/tutorials/article.php/1355131.

?? Follow the Chain of Responsibility by David Geary on Java World - http://www.javaworld.com/javaworld/jw-08-2003/jw-0829-

designpatterns.html.

?? J2EE Design Patterns by Sue Spielman on http://www.onjava.com/pub/a/onjava/2002/01/16/patterns.html.

?? The New Methodology by Martin Fowler on http://www.martinfowler.com/articles/newMethodology.html.

?? Merlin brings nonblocking I/O to the Java platform by Aruna Kalagnanam and Balu G on

http://www.ibm.com//developerworks/Java/library/j-javaio.

?? Hibernate Tips and Pitfalls by Phil Zoio on http://www.realsolve.co.uk/site/tech/hib-tip-pitfall-series.php.

?? Hibernate Reference Documentation on http://www.hibernate.org/hib_docs/reference/en/html_single/.

?? Object-relation mapping without the container by Richard Hightower on http://www-128.ibm.com/developerworks/library/jhibern/?

ca=dnt515.

?? Object to Relational Mapping and Relationships with Hibernate by Mark Eagle on http://www.meagle.com:8080/hibernate.jsp.

?? Mapping Objects to Relational databases: O/R Mapping In detail by Scott W. Ambler on

http://www.agiledata.org/essays/mappingObjects.html.

?? I want my AOP by Ramnivas Laddad on Java World.

?? WebSphere Application Server 5.0 for iSeries – Performance Considerations by Jill Peterson.

?? Dependency Injection using pico container by Subbu Ramanathan .

?? WebSphere Application Server & Database Performance tuning by Michael S. Pallos on

http://www.bizforum.org/whitepapers/candle-5.htm.

?? A beginners guide to Dependency Injection by Dhananjay Nene on

http://www.theserverside.com/articles/article.tss?l=IoCBeginners.

?? The Spring series: Introduction to the Spring framework by Naveen Balani on http://www-

128.ibm.com/developerworks/web/library/wa-spring1.

?? The Spring Framework by Benoy Jose.

?? Inversion of Control Containersband the Dependency Injection pattern by Martin Fowler.

?? Migrate J2EE Applications for EJB 3.0 by Debu Panda on JavaPro.

?? EJB 3.0 in a nutshell by Anil Sharma on JavaWorld.

?? Preparing for EJB 3.0 by Mike Keith on ORACLE Technology Network.

?? Simplify enterprise Java development with EJB 3.0 by Michael Juntao Yuan on JavaWorld.

?? J2SE: New I/O by John Zukowski on http://java.sun.com/developer/technicalArticles/releases/nio/.

?? High-Performance I/O arrives by Danniel F. Savarese on JavaPro.

?? Hibernate – Proxy Visitor Pattern by Kurtis Williams.

?? Best Practices for Exception Handling by Gunjan Doshi.

?? Three Rules for Effective Exception Handling by Jim Cushing.

?? LDAP and JNDI: Together forever – by Sameer Tyagi.

?? Introduction To LDAP – by Brad Marshall.

?? Java theory and practice: Decorating with dynamic proxies by Brian Goetz.

?? Java Dynamic Proxies: One Step from Aspect-Oriented Programming by Lara D’Abreo.

?? Java Design Patterns on http://www.allapplabs.com/java_design_patterns .

?? Software Design Patterns on http://www.dofactory.com/Patterns/Patterns.aspx .

?? JRun: Core Dump and Dr. Watson Errors on http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17534

?? The Guerrilla Guide to Interviewing by Joel Spolsky at http://www.joelonsoftware.com/printerFriendly/articles/fog0000000073.html

?? The Riddle of Job Interviews by Kate Kane at http://www.fastcompany.com/online/01/jobint_Printer_Fiendly.html

?? An Introduction to Aspect-Oiented Programming with the Spring Framework, Part 1 by Russell Miles at

http://www.onjava.com/lpt/a/4994

?? 5 Habits Of Best Software Developers by Angusman Chakraborty at http://blog.taragana.com/index.php/archive/5-habits-of-bestdoftware-

developers/

?? Getting started with Hibernate by Alan P Saxton at http://www.cs.bham.ac.uk/~aps/syllabi/2004_2005/issws/h03/hibernate.html

?? Hibernate Tips by Jason Carreira at http://jroller.com/page/jcarreira/20050223

?? Five Things I Love About Spring by Bruce A. Tate at http://www.onjava.com/lpt/a/5833

?? Service-oriented modeling and architecture by Ali Arsanjani , Ph.D at http://www-

128.ibm.com/developerworks/webservices/library/ws-soa-design1/

?? Delving into Service-Oriented Architecture by Bernhad Borges, Kerrie Holley and Ali Arsanjani at

http://www.developer.com/design/print.php/10925_3409221_1

?? SOA: Are We Reinventing the Wheel? By Nick Simha at http://dev2dev.bea.com/lpt/a/435

?? Getting a little closer to SOA by Fabrice Marguerie at http://madgeek.com/Articles/SOA/EN/SOA-Softly.html

?? What is sevice-oriented architecture by Raghu R. Kodali at http://www.javaworld.com/javaworld/jw-06-2005/jw-0613-soa_p.html

RESOURCES

351

?? J2EE-Supported Web Service standards and Technologies by Vijay Ramachandran, Sean Brydon, Greg Murray. Inderjeet Singh,

Beth Stearns, Thierry Violleau.

?? J2EE 1.4 eases Web service development by Frank Sommers at http://www.javaworld.com/javaworld/jw-06-2003/jw-0620-

webservices_p.html

?? A developer’s introduction to JAX-RPC, Part 1 & 2 by Joshy Joseph at http://www-

128.ibm.com/developerworks/webservices/library/

?? Developing Web Services with Java 2 Platform, Enterprise Edition (J2EE) 1.4 Platform by Qusay H. Mahmoud at

http://java.sun.com/developer/technicalArticles/J2EE/j2ee_ws/

?? Scriptless JSP Pages: The Front Man by Bear Bibeault at http://www.javaranch.com/journal/200603/Journal200603.jsp

?? Advanced DAO programming by Sean Sullivan at http://www-128.ibm.com/developerworks/library/j-dao/

?? Understanding JavaServer Pages Model 2 architecture by Govind Seshadri at http://www.javaworld.com/javaworld/jw-12-1999/jw-

12-ssj-jspmvc_p.html

?? A Fast Introduction to Basic Servlet Programming by Marty Hall at

http://www.informit.com/articles/printerfriendly.asp/p=29817&r1=1

?? What’s new in J2Se 5.0? based on Joshua Bloch’s on-line talk.

?? Introducing Java 5 by Andy Grant at http://www.sitepoint.com/print/introducing-java-5

?? Experiences with the New Java 5 Language Features by Jess Garms and Tim Hanson at http://dev2dev.bea.com/lpt/a/442

?? Five Favorite Features from 5.0 by David Flanagan at http://www.onjava.com/lpt/a/5799

?? First among equals by Kevlin Henney at http://www.regdeveloper.com/2005/12/29/first_among_equals/print.html

?? Painting in AWT and Swing by Amy Fowler.

?? A Hands-On Introduction for Developers by Randy Miller at http://bdn.borland.com/article/0,1410,31863,00.html

??

?? www.javaworld.com articles.

?? http://www-128.ibm.com/developerworks/java articles.

?? http://www.devx.com/java articles.

?? www.theserverside.com/tss articles.

?? http://javaboutique.internet.com/articles articles.

Books

?? Beginning Java 2 by Ivor Horton.

?? Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (GoF) .

?? UML Distilled by Martin Fowler, Kendall Scott .

?? Mastering Enterprise Java Beans II by Ed Roman, Scott Ambler, Tyler Jewell, Floyd Marinescu.

?? EJB Design Patterns by Floyd Marinescu .

?? Sun Certified Enterprise Architect for J2EE Technology Study Guide by Mark Cade and Simon Roberts.

?? Professional Java Server Programming - J2EE edition by Wrox publication.

?? Design Patterns Java Companion by James W. Cooper (Free download: http://www.patterndepot.com/put/8/JavaPatterns.htm).

?? Test Driven Development – By Example, by Kent Beck.

?? Effective Java – programming language guide by Joshua Bloch

INDEX

352

INDEX

Emerging Technologies/Frameworks

Briefly explain key features of the JavaServer Faces (JSF)

framework? 339

Explain Object-to-Relational (O/R) mapping? 323

Explain some of the pitfalls of Hibernate and explain how to

avoid them? 333

Give an overview of hibernate framework? 324

Give an overview of the Spring framework? 334

How would EJB 3.0 simplify your Java development

compared to EJB 1.x, 2.x? 337

How would the JSF framework compare with the Struts

framework? 341

What are the benefits of IoC (aka Dependency Injection)?

322

What are the differences between OOP and AOP? 317

What are the different types of dependency injections? 321

What are the pros and cons of annotations over XML based

deployment descriptors? 318

What is aspect oriented programming? Explain AOP? 313

What is attribute or annotation oriented programming? 317

What is inversion of control (IoC) (also known as

dependency injection)? 319

What is Test Driven Development (TDD)? 312

What is the difference between a service locator pattern

and an inversion of control pattern? 323

What is the point of Test Driven Development (TDD)? 313

What is XDoclet? 319

Why dependency injection is more elegant than a JNDI

lookup to decouple client and the service? 323

Enterprise - Best practices and performance

considerations

Explain some of the J2EE best practices to improve

performance? 223

Explain some of the J2EE best practices? 222

Give some tips on J2EE application server performance

tuning? 222

Enterprise - EJB 2.x

Can an EJB client invoke a method on a bean directly? 168

Discuss EJB container security? 174

Explain EJB architecture? 165

Explain exception handling in EJB? 172

Explain lazy loading and dirty marker strategies? 179

How can we determine if the data is stale (for example

when using optimistic locking)? 174

How do you rollback a container managed transaction in

EJB? 173

How to design transactional conversations with session

beans? 172

What are EJB best practices? 176

What are isolation levels? 170

What are not allowed within the EJB container? 174

What are the implicit services provided by an EJB

container? 170

What are transactional attributes? 170

What is a business delegate? Why should you use a

business delegate? 176

What is a distributed transaction? What is a 2-phase

commit? 171

What is a fast-lane reader? 178

What is a Service Locator? 178

What is a session façade? 177

What is a value object pattern? 177

What is dooming a transaction? 171

What is the difference between Container Managed

Persistence (CMP) and Bean Managed Persistence

(BMP)? 168

What is the difference between EJB 1.1 and EJB 2.0? What

is the difference between EJB 2.x and EJB 3.0? 169

What is the difference between EJB and JavaBeans? 164

What is the difference between optimistic and pessimistic

concurrency control? 173

What is the difference between session and entity beans?

168

What is the difference between stateful and stateless

session beans? 168

What is the role of EJB 2.x in J2EE? 163

Enterprise - J2EE

Explain J2EE class loaders? 105

Explain MVC architecture relating to J2EE? 99

Explain the J2EE 3-tier or n-tier architecture? 97

So what is the difference between a component and a

service you may ask? 96

What are ear, war and jar files? What are J2EE Deployment

Descriptors? 101

What is J2EE? What are J2EE components and services?

95

What is the difference between a Web server and an

application server? 101

Why use design patterns in a J2EE application? 101

Enterprise - JDBC

Explain differences among java.util.Date, java.sql.Date,

java.sql.Time, and java.sql.Timestamp? 153

How to avoid the “running out of cursors” proble

Thursday, April 15, 2010

Roommates Site for Indians....

Roommates Site for Indians....


Friends,

I just got to know of this site to find roommates .. http://www.imates.co.in/ … I have no clue how legit or good it is but just putting it out there.

Regards

Sonam

jdbc problem

follow the following steps:




1: load the database driver

2: Stablish a connection between your program and your database

3: Create an SQL statement

4: Execute it



5: if the execution returns a result set then access your date returned by the database through the resuleset.



6: close the connection.







try this out



import java.sql.*;



public class ConnectinTest {



public void getValue() throws SQLException,ClassNotFoundException{

String str = "select name from username";

Class.forName("oracle.jdbc.driver.OracleDriver");

Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "username", "password");

Statement st = con.createStatement();

ResultSet rs = st.executeQuery(str);



while(rs.next()) {

System.out.println("name: "+rs.getString(1));

}

}



public static void main(String args[]) throws SQLException,ClassNotFoundException {

new ConnectinTest().getValue();

}
when user click on logout ....then send him on login page and invalidate the session..


session.invalidate();

Log In using Session

Log In using Session


How can i do a login using servlet,jsp and session so that after logging out i can not go back to page? The flowchart must be like this:



index.jsp-->servlet to get the form params & check the username,password from the database--->then redirect to the home page--->logout.jsp
Java frequently asked interview questions!
http://www.careerride.com/Java-Interview-Questions.aspx-----------------------------------------------------------Here are the sample questions. Click the above link to get more questions with answers -------------------------------------------------------------------------------Explain how Java addresses the issue of portability and security.What is finalize()? Is finalize() similar to a destructor?Why would we manually throw an exception?Why does Java have two ways to create child threads? Which way is better?Why does Java strictly specify the range and behavior of its primitive types?Explain Java’s delegation event model.Explain the methods for accessing system properties about the Java virtual machine.What is relation between JAXP and Xerces?What is co-variant return type in java? Provide an example and its purposeExplain the purpose of jar file. Can you explain how to create a jar file in java.How do we allocate an array dynamically in java?What is the purpose of the wait (), notify (), and notifyAll() methods?Explain with example how to initialize an array of objects.What is the difference between the Boolean & operator and the && operator?Explain CacheRowset, JDBCRowset and WebRowset.
J2EE interview questions
Read j2ee interview questions at http://tipsoninterview.com/j2ee.html
Earn money from home!!!PTC site is a site which pays for clicking their Ads.PTC sites is a way to communicate between advertisers and publishers (in this case the clickers or also called affiliators). Advertisers want to show their sites to people and they pay for it. Users at the ptc sites want to earn money and they do it by clicking the ads from advertisors.You can earn $200-400/month(depending on ur work) working less than 2 hrs daily. No investment..For more Details visithttp://www.earn4mptcsites.blogspot.com
lot of jobs with hr email id and hr phone no.
visit www.myjobs.cz.cc and gets lot of jobs , hr email id with each jobs, hr phone number and other stuff also
http://tipsoninterview.com/index.html
Latest interview questions for C, C++, Java, J2EE
Hi,Please have a look at the below job information - kindly help your friends.. they may need it. Just forward.. For more details click http://www.careerspirit.com. Latest interview questions for C, C++, Java, J2EE questions.How to prepare a winning resume at the time of interview preparation.Important interview questions for ASP, DBMS, Data Struture, S/W Testing, OS, Networks.How to attend interview, interview tips & interview types.Vocabulary & aptitude sections for freshers.How to negotiate salary without any hesitations.What are the things we have to take at the time of resume preparation.How to prepare a perfect and innovative thank you letter.What are interview types are available and how to face on those interviews.For more details click http://www.careerspirit.com
More Java interview!
More answers are updated....keep visiting www.careerride.com
Here are the sample questions. Click the above link to get more questions with answers -------------------------------------------------------------------------------Explain how Java addresses the issue of portability and security.What is finalize()? Is finalize() similar to a destructor?Why would we manually throw an exception?Why does Java have two ways to create child threads? Which way is better?Why does Java strictly specify the range and behavior of its primitive types?Explain Java’s delegation event model.Explain the methods for accessing system properties about the Java virtual machine.What is relation between JAXP and Xerces?What is co-variant return type in java? Provide an example and its purposeExplain the purpose of jar file. Can you explain how to create a jar file in java.How do we allocate an array dynamically in java?What is the purpose of the wait (), notify (), and notifyAll() methods?Explain with example how to initialize an array of objects.What is the difference between the Boolean & operator and the && operator?Explain CacheRowset, JDBCRowset and WebRowset.----------------------------------------------------------------------------------www.careerride.com
http://apna-watan.blogspot.com
http://cash4u666.blogspot.com
https://www.palmbux.com/register.php/welgan.html http://www.buxwiz.com/r?r=welgan.html http://www.shortbux.com/signup.php?ref=welgan http://bux.gs/?r=welgan http://www.buxp.info/?r=welgan After registered in these sites, go to "View Ads" tab in your Account...Click Ads and get money.....Contact me for further details....my mail id is ganesh.part2@gmail.com Note:TO CREATE PAYPAL A/c..its totally free# go to the link belowwww.paypal.com/in/mrb/pal=JTNZA2EBGR3CY# click on the link "Sign Up Today"# then select ur country# then at "Premier A/c" click "Get started"# skip the credit card option ..its totally free

7/4/09
albert
Freshers & Exp - JobsinQ.com
For Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team

7/5/09
albert
IT Jobs for Freshers & Experienced
Freshers & Exp - JobsinQ.comFor Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team

7/6/09
albert
Freshers & Exp - JobsinQ.com
For Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team

7/7/09
albert
IT Jobs for Freshers & Experienced
Freshers & Exp - JobsinQ.comFor Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team
EXCELLENT OPPORTUNITIES IN SOFTWARE FIELD
A list of All India Software Company Databases. It includes more than3000+ IT companies located in Mumbai, Pune, Bangalore HYderabad and Chennaiwith addresses.For daily updatesVISIT www.jobsinq.comThe whole service is free, you can search the website for companiesor browse company category wise. Also updating the latest walkin interview.Check the websiteHappy Job Hunting

7/2/09
albert
Daily IT Jobs - Freshers & Exp - JobsinQ.com
For Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team

7/3/09
albert
Daily IT Jobs - Freshers & Exp
Daily IT Jobs - Freshers & Exp - JobsinQ.comFor Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team
EXCELLENT OPPORTUNITIES IN SOFTWARE FIELD
A list of All India Software Company Databases. It includes more than3000+ IT companies located in Mumbai, Pune, Bangalore HYderabad and Chennaiwith addresses.For daily updatesVISIT www.jobsinq.comThe whole service is free, you can search the website for companiesor browse company category wise. Also updating the latest walkin interview.Check the websiteHappy Job Hunting

7/2/09
albert
Daily IT Jobs - Freshers & Exp - JobsinQ.com
For Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team

7/3/09
albert
Daily IT Jobs - Freshers & Exp
Daily IT Jobs - Freshers & Exp - JobsinQ.comFor Daily IT Jobs for Freshers & Experiencedhttp://www.jobsinq.comGet Job alerts on Email. Don't Miss any Opportunityhttp://feedburner.google.com/fb/a/mailverify?uri=AllIndiaJobsAndCompanyInformation&loc=en_USRegardsJobsinQ.com Team
Job Vacancy in Cognizant,iGATE,TCS,HCL,etc.,
Hi,Please have a look at the below job information - kindly help your friends.. they may need it. Just forward.. For more details click http://www.prepareinterview.com/tips/LatestJobs.asp. Google's New Feature - Get Walk-In Job Alert SMS on your mobile - Click http://bit.ly/gsW4t. HCL Tech Job Opportunity for Java / J2EE Professionals Freshers IT Jobs: J2EE & .NET Trainee Software Engineers Fresher Walk-In Interview: C#, Asp.net & Ajax, MS SQL 2005 On 1-3 April 2010 Freshers Walk-In for BPO Jobs at Caliber from 5 to 9 April Freshers Walk-In Interview @ Cognizant as BPO(voice) from Mar 30 to Apr 4 Walk-In Interview for Network Engineers at Teccaliber Java Walk-In Interview: BE / BTech / ME / MTech / MSc / MCA Tata Consultancy Services Walk-In: Microsoft .Net, Oracle On 3 April 2010 IBM Mainframes (MF) Jobs at TCS on 3 April 2010 Job Vacancy in South Indian Bank Ltd. (40 Posts) Govt Jobs: Spices Board of India (Ministry of Commerce) Probationary Clerks and Probationary Officer (PO) Jobs @ Canara Bank 2010 Cognizant looking for Freshers as BPO (Voice) iGATE Walk-In for Trainee Associate/Associate (0 to 3 Years Exp) More Jobs @ Bhopal, Hyderabad, Kanpur, Patna, Chennai, Mumbai, Kolkata, Delhi Microland Freshers Walkin March - April (except Sunday) Recruitment of Probationary Officer in Bank of Baroda (1200 Posts) Job Vacancy @ Indian Institute of Technology (IIT) Microland Freshers Walkin for Associate/Sr. Associate State Bank of India(SBI) - Job Openings (2500 Posts).For more details click http://www.prepareinterview.com.Google's New Feature - Get Walk-In Job Alert SMS on your mobile - Click http://bit.ly/gsW4t