wood burning stoves 2.0*
The moose likes JForum and the fly likes Configure JForum from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Configure JForum from Java" Watch "Configure JForum from Java" New topic
Author

Configure JForum from Java

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
So, it definitely is possible to administer JForum from another application.

This should be made possible by a mixture of these code samples: Code (at the bottom) and Execution Context?

Am I correct?
[originally posted on jforum.net by jeetn]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,

I want to be able to configure JForum from java or via a webservice. Is this possible? If yes, how?


A bit more explained:

We have several applications used in the company. We're creating a central "Admin Section" for all applications. So what I need to be able to do is when in that "Admin Section" clicked on JForum, I'll need to be able to create category's, forums, etc. Actually do the whole admin thing of JForum from the centralized "Admin Section".

Is this possible?

And if so, How would this need to be implemented?
[originally posted on jforum.net by jeetn]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The easiest way would be to use SSO and IFrames in the admin section to display the jForum admin screen in you main app. Doing it this way would minimize the changes needed for future version of jForum.

Second easiest would be to use HTTPClient to take form info from your admin app and send it to the appropriate action in the jforum webapp. Sort of a poor man's REST API...

The reason you need to do it this way is that jForum uses a lot of cached information. If you just change the DB from another web app, the changes won't be reflected in the in-memory repository objects.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Are their also other ways to possibly do this?

For the moment all I need to do is to figure out if it would be possible to configure JForum either via Java or with Web Services.
[originally posted on jforum.net by jeetn]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Well, with the source available, anything is possible. How you do it depends on what you are trying to integrate into. E.g., mulitple jforum webapp instances (e.g., separate sites/clients) or a single jforum webapp instance. Is the management "app" going to be a separate web-app from Jforum or not?

If it's all one big happy webapp, then looking at the JForumExecutionContext code makes sense. If it's separate webapps, then you'll need think about HTTPClient requests or adding code to jforum to support a REST web services API. (FWIW, this is on the ToDo for V3.0... but I don't think it has made it to the beta).

Bottom line is, you know your environment, you know what you want, jforum source code is available and very readable.. (hint look at my bookmarks for some tips on URLs to code, etc). Basically, you'll need to roll up your sleeves and think through your application needs and stuff like: how much customization of jforum do you want to do.. how does that play against allowing for upgrades to future versions.. and the like.

We can't do this for you... Well, Raphael does consulting on Jforum.. so he'll do it for you for a fee...


[originally posted on jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configure JForum from Java
 
Similar Threads
Controlling group membership programatically
How can I configure parameters of my webapp using tomcat admin interface
Using JForum as a Backend service
Added documentation for code integration
How to configure POP/SMTP stuff?