actually, I want to know how forums work. I want to know if information written by people are going to insert in database or somewhere in hard disk? I dont think it persist in the database because there are many information and everytime it is growing up. any way, I want to write a forum like application not a forum, and I dont have any experience in this field. so any suggestion or comment about this will be appreciated. Is there any Api for using in java for forums?
To go to your specific question of how data is stored ... if you design and build just right, this can be the last decision you make. Imagine an interface Repository that has all the store() and fetch() methods. There could be an implementation that uses a database, another that uses flat files, another that uses messages to a remote store.
So, that's among the least of your worries right now. Think about the user scenarios ... somebody views a forum list, picks one, views a message list, picks one, etc. Then you can see what kind of architecture fits ... maybe a web app is a given, but there are many options in even a simple servlet app. Then you can think about designs.
Whew, a long way to go, no? This is a pretty significant kind of application so there will be lots and lots to think about. The suggestion to look at other open source forum products is one way to explore your options. Or we could try to help you through an agile approach and start with the simplest part of the system we can think of and build from there.
Hope that helps set the stage. What would you like to do next?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Don't mean to hijack but thanks for the link to JForum. I've done almost no J2EE and was considering exploring it for purely academic reasons and writing some forum software so I'm glad to see there's some open source Java implementation I can examine.