File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Starting a new java web application project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Starting a new java web application project" Watch "Starting a new java web application project" New topic
Author

Starting a new java web application project

Sooraj Chandra
Greenhorn

Joined: Jul 12, 2008
Posts: 5
Hi
I am starting a new web application project and i am basically a programmer having done j2ee programming based on simple off the mouth requirements.Never documented anything properly or was guided.
Well now i have become serious and would like to develop a new project on the ideas i have.
So in my engineering I have studied about UML,Software design and stuff but you know i don't remember much stuff and it will take a lots of time to refresh all those stuff and i need some to survive and start a new project fast

So please help me.I have got a project of a company and they told me the requirements.I want to design a architecture(technical) like identifying interfaces,classes,member functions and stuff a little faster and start doing the coding.For this please let me know what all things i need to know,examples or solutions available online which i can refer and study and complete the designing,architecture ,identifying java requirements and stuff and start the coding..

well i might be like little lengthy in explaining my problem,but i am so stressed up and tensed that i cant help it..
please help me
thanks
castin
[ July 13, 2008: Message edited by: Sooraj Chandra ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60045
    
  65

"castin india", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sooraj Chandra
Greenhorn

Joined: Jul 12, 2008
Posts: 5
Well now i am Sooraj Chandra - changed from castin india
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
A very broad question - really a matter of experience and not something to be learnt overnight.

You mention Web project in the subject but not in your post - if you're developing all but the simplest Web project, you need to be familiar with Java EE Web. It'll be well worth your while to learn about the Web container, servlets, JSPs, databases and probably the new persistence architecture (JPA) as they'll all save you a lot of time. Not something to be done quickly, but probably necessary. You didn't say if you know about Java EE/J2EE so I'm not sure if that's relevant.

Once you're happy with the platform (Java SE or EE as appropriate), think about the use cases and hence classes and interfaces you'll need. A good object model for a decent-sized application takes weeks to construct, and (in my experience) months to refine. I find it helpful to break a project down into smaller 'modules' too, and concentrate on each one in turn, then figure out how to neatly fit them all together. Typically you still find little things to change as you go along - which isn't a problem; what you want to avoid is having to completely re-design the model (essentially starting from scratch) a few months into the coding!


Charles Lyons (SCJP 1.4, April 2003; SCJP 5, Dec 2006; SCWCD 1.4b, April 2004)
Author of OCEJWCD Study Companion for Oracle Exam 1Z0-899 (ISBN 0955160340 / Amazon Amazon UK )
Sooraj Chandra
Greenhorn

Joined: Jul 12, 2008
Posts: 5
Thanks Charles
Sorry i have missed out some points in my initial post .well i have edited that to explain things clearly.

Well i know J2EE and have done some work before.Now I just want to acquaint myself to design the project requirements properly ,develop the architecture which will help me save time and guide my colleagues if there are any.

Well if you know any books/references for designing,architecture of the requirements ,which will help me to develop this model as you have, mentioned with some examples to study and understand,it will save a lot of time and i can make things happening quickly.And i have never heard about the persistence architecture(JPA) .well i will refer to it too as you have mentioned about it.

Thanks again
Preeti Yarla
Ranch Hand

Joined: Sep 08, 2007
Posts: 69
A good object model for a decent-sized application takes weeks to construct, and (in my experience) months to refine.


Charles what does a object model need to include?
classes, interfaces, instance variables and methods in classes? Or should it also include the parts which interact which the database or write to a xml file? OR are those taken care of in data model?


SCJP
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
Well if you know any books/references for designing,architecture of the requirements ,which will help me to develop this model as you have, mentioned with some examples to study and understand,it will save a lot of time
When I first started Java programming I used a very early edition of Jacquie Barker's book (on Amazon.com for example) - it's excellent for explaining how to develop a Java application from scratch. You'd find Parts 2 and 3 most useful as they walk through identifying object models using UML, to converting those into Java code. You can skip all the beginner Java code and you can apply the exact same principles to EE applications (also look at the Blueprints to reuse common ideas and save some time). You need to make a distinction between the object model (the basic POJOs based on your use case analysis) and the Web framework (servlet frontends, JSP views, and data storage).

The advantage of JPA is that it allows you to build database accesses into your POJO model without actually doing any database code explicitly - so you can use it to interface your object model with an SQL database without doing any extra work.
Charles Lyons
Author
Ranch Hand

Joined: Mar 27, 2003
Posts: 836
what does a object model need to include? ... should it also include the parts which interact which the database or write to a xml file? OR are those taken care of in data model?
The premise is that your entire application is object oriented so everything is describable as a class (with accompanying methods). The object model should describe everything there is to encapsulate from the real world into your application. The "plumbing code" (i.e. how that model is updated, what JSP views are needed etc.) is not specified in the basic description of the model. However, as I mention above, with Java Persistence Architecture (JPA) now being deployed in Web containers, you can easily annotate your object model to load and update from a database automatically so you don't need to worry too much about how the data is stored (other than designing the database structure).

Note JPA is a newer alternative to Hibernate; the real benefit since Java SE 5 is that you use annotations to do the persistence markup rather than ugly configuration files.
Preeti Yarla
Ranch Hand

Joined: Sep 08, 2007
Posts: 69
Thanks!
Sooraj Chandra
Greenhorn

Joined: Jul 12, 2008
Posts: 5
thanks charles
i will start working as you have advised
Sooraj Chandra
Greenhorn

Joined: Jul 12, 2008
Posts: 5
any other ideas for this post is welcome.Please contribute as there will be more people who are just beginners and can get clarity in thier approaches.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting a new java web application project
 
Similar Threads
URGENT GUYS PLEASE HELP ME !!!
Passed SCEA part II/III with 85%
Struts based Application Automation Tips Required
Different Versions Of Eclipse. What's the Difference???
"porting" a PHP application to Java...