• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Java Framework for Forum Application

 
Ranch Hand
Posts: 141
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a simple Web application that is implemented using Struts2, Hibernate, and MYSQL.

The current application's features are just
       - Retrieve the data from the Data provider (let's say the end of the day stock price) and store it in DB,
       - Present the data to visitors
      -  Also maintaining sessions of User's who logged in to access advanced analytics.

Now I am looking to upgrade the Application with the below features. Along with the above features...
         - A Blog ( is there any framework available in Java to implement Blog ?)
         - A forum where users can start a new thread and discuss on just like our CodeRanch ( Again is there any framework in Java that can integrate with Current Struts2)
         - Want to implement server-side Cache ( just like QuickCashe in PHP) where I can use the parsed HTML unless there is an updated Record to avoid parsing of JSP every time. This to reduce the page load time compared to a competitor website which was implemented in PHP.

Please suggest to me if there are frameworks available that can integrate with current Struts 2.0? Or Should I move to PHP ( I have to learn ..:-( ) to get frameworks for the above features..

Thanks in advance.  Stay Home Stay Safe.
Regards,
Bala.
 
Saloon Keeper
Posts: 6835
162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My first question would be: why write blog or forum software when excellent choices for those exist? https://roller.apache.org/ and https://www.jforum.net/ are probably the best-known Java solutions in their respective spaces. Rather than reinvent the wheel, maybe you can adapt those to your purposes?

As to caching, that sounds like premature optimization. Are you certain it is the HTML generation that makes your site slower than you think it should be? Are you using all that HTTP offers you regarding caching? See https://www.digitalocean.com/community/tutorials/web-caching-basics-terminology-http-headers-and-caching-strategies and https://www.keycdn.com/blog/http-cache-headers to get started with those. It does make sense to cache some things on the serve to avoid hitting the DB over and over, and something like EhCache may help with that.

As to moving to PHP, there's nothing PHP can do that Java can't, and vice-versa (but the more advanced a site gets, the more Java can do for you, and do so more easily, IMO).
 
Bala Tilak
Ranch Hand
Posts: 141
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot for the reply @Tim Moores. It really helped me to move further..

I am able to build sample applications using both roller and jforum

Jforum suites my requirements for the Forum application and stated integrating with my existing Struts2 application.

As far as, Roller is concerned it's a very huge multi-user, multi-blog application which is heavyweight for my need. I am just looking for a single blog application. Any other simple framework for Blogging application?


Thanks,
Bala.
 
Tim Moores
Saloon Keeper
Posts: 6835
162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

As far as, Roller is concerned it's a very huge multi-user, multi-blog application which is heavyweight for my need. I am just looking for a single blog application. Any other simple framework for Blogging application?


There is http://pebble.sourceforge.net/. It's also multi-user, but has single-blog and multi-blog modes, but is still fairly limited in size. It's also extensible via a number of plugins APIs, so if you were planning to customize it anyway, it may be a good fit. The worst thing one could say about it is that it hasn't been maintained for years.
 
Whatever you say buddy! And I believe this tiny ad too:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic