I do this in my app, and so far I find it to be very simple. Just define a new datasource that points to the jforum database and start writing queries. Most of them are pretty obvious. [originally posted on jforum.net by time]
That's the thing, I don't want to define a new datasource, I would like to use the objects that already exist for querying the database inside the application itself.
There are methods that return you the recent topics, the count of users etc, etc.
Currently my site uses jsp and I use phpBB methods to query my phpBB forum as these methods exist in phpBB but it's a bit of a pain calling php from jsp as some of you probably know, so I moved to using straight jdbc calls, which isn't the greatest either.
I thought when moving to jforum, methods would exist to allow me to do this in java (and I've seen the methods) but I can't get access to them. [originally posted on jforum.net by degsy]
Integrating JForum 2.1.4 inside JetNuke was not easy at all. And the source code couldn't help you very much.
JForum 2.1.5 (cvs version) is instead much more pluggable. Let the servlet net.jforum.JForum do its work (managing URL pattern in the '*.page' form) and don't forget to use the session listener. If you wish to call the DAO from your pages you have to be sure to set the JDBC connection.
JForum.DataHolder dataHolder = new JForum.DataHolder();
I hope this can help you [originally posted on jforum.net by mazzolini]