• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configure JForum from Java

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic