File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Architecture for my new project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Architecture for my new project" Watch "Architecture for my new project" New topic

Architecture for my new project

Kavita Shivani
Ranch Hand

Joined: Aug 14, 2009
Posts: 45
Hi everyone,
I am working on a new project as a freelancer. Its web application but not a website as such. Just a small application with few JSPs to give some functionality for goods and sales details for a small firm. Basically to generate invoice, to maintain inventory, delivery details for the sold goods , update stock and generate all sorts fo reports.. There may be some 20 to 50 users for this application. I am using MySql and JSP and want to use a simple but a really robust and scalable web architecture. I have decided to use spring framework and if needed hibernate else just the regular jdbc dao classes. I do have a few questions in this regards,

1. Would it be necessary to have connection pooling (its the same set of 20-50 users logging in and updating some stock details and logging out)
2. what is the best suitable architecture. I am thinking of front controller pattern. A controller servlet with handlers for each kind of request and probably one or at the most 2 dao related classes, exception handling and a simple logging mechanism.

This is a pilot project if looks fine it may be later done in a large scale (500 users).

Its a one month fulltime project where I am the only developer.

P.S: I have not been working on java in the last 4 years, There are a lot of things changed in the technology and the way projects are worked. I am looking for some tips that you feel might help me.

Please reply back with your ideas. I will research further on it and use it for my project.

Thank you,
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

1) I use connection pooling even for the smallest of projects. Hibernate makes it easy so there's not reason not to.

2) If you're looking for simple, check out Front Man (see my signature line)

[Asking smart questions] [About Bear] [Books by Bear]
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
May I recommend maven and appfuse. You have a basic application running in about 5 minutes. After that you can start setting up controllers and wiring them through xml. Takes a while to figure out how the page decoration and menus work and a bit of other details, but it saves you a lot of work and scales pretty well.
Kavita Shivani
Ranch Hand

Joined: Aug 14, 2009
Posts: 45
Bear and Gerardo , Thanks a lot for your suggestions.

@Gerardo, I have not worked on spring or maven before, but I did a self study long ago on spring framework. So I might go with spring framework as I dont have time to upgrade myself right now. But definitely I shall investigate on maven appfuse to help myself with this or the later projects.

@Bear, I did have a look at the Front Man and downloaded it. I shall try a sample application, if it sounds easy and quick I will use it.

Thank you once again. You both have been a great help.

I agree. Here's the link:
subject: Architecture for my new project
It's not a secret anymore!