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 How to write a forum application in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to write a forum application in Java" Watch "How to write a forum application in Java" New topic
Author

How to write a forum application in Java

Mohamad Norouzi
Greenhorn

Joined: Oct 12, 2004
Posts: 18
Hi all,

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?

thank you in advance


<a href="http://pixelshot.wordpress.com" target="_blank" rel="nofollow">http://pixelshot.wordpress.com</a><br /><a href="http://brainable.blogspot.com" target="_blank" rel="nofollow">http://brainable.blogspot.com</a>
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Download Opensource forum from below link, they provide souce code aslo, so you can see what they are doing and how they are doing.

JForum


My blood is tested +ve for Java.
Mohamad Norouzi
Greenhorn

Joined: Oct 12, 2004
Posts: 18
thanks for you rreply, but I dont want use such these applications, because I want to add some specific features and I dont need many features of these forums.

I want to know how they work, so I use those methods in my program.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Originally posted by mohammad norouzee:
I dont have any experience in this field. so any suggestion or comment about this will be appreciated.


This is why I am suggesting you jForum.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
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.
Mohamad Norouzi
Greenhorn

Joined: Oct 12, 2004
Posts: 18
Stan,

Thank you so much, yes you right I should design the application that work with any method of persisting data, and I should seperate and decouple the persistance layer of the application.

using database, is simple just you should design the tables and try to optimise the database, but how about using files and directory?

any way, I am going to use the JForum to see what they did in their application.

thanks again to all who reply me.
 
Don't get me started about those stupid light bulbs.
 
subject: How to write a forum application in Java
 
Similar Threads
java application with mysql database
PDF to database
connet to sql server and run query
java application with form and mysql database
Regarding JETSPEED