aspose file tools*
The moose likes JForum and the fly likes Integrating jforum and other web applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Integrating jforum and other web applications" Watch "Integrating jforum and other web applications" New topic
Author

Integrating jforum and other web applications

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Integrating jforum and other web applications

Hi everybody.
I work on integration jforum and other web application on Ruby.
I have access to forum DB schema, but then I change DB data I don�t see changes in interface.
For example, then I deleting permissions on some forum via SQL like
delete from jforum_role_values
where role_id=(
select role_id from jforum_groups g
inner join jforum_roles r on g.group_id=r.group_id
where g.group_name='<group name>'
and r.name='perm_forum')
and role_value= < deleted forum id >


the changes are applied only after I restarted Tomcat.
I read about cache and how to disable it (http://www.coderanch.com/t/575990 #8451) but then I add follow:
posts.cache.enabled = false
topic.cache.enabled = false
security.cache.enabled = false
forum.cache.enabled = false

in my SystemGlobals.properties or jforum-custom.conf the cache is not disabled.
It �s not disabled after restarting Tomcat also.
I can change DB but the interface is cached. I can see all forums on forum�s list but all data in jforum_forums tables deleted.
Used:
Postgress DB
Tomcat 5.20
JForum 2.1.7 / (2.1.8 to)

I want to disable cache and make forum more interactive with database.
[originally posted on jforum.net by Eugene.Ershov]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm afraid it won't be that easy, as a lot of stuff are always cached, without an option to disable. The best I can suggest is to use jforum actions via http requests (for example, to change permissions, call the page that does that, passing the expected parameters).

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
i would like know if it was easy implement web services to create a new topic and list topics, and how can i do this to integrate in Jforum core?

thanks.
[originally posted on jforum.net by feusebio]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Your code will have to emit a HTTP call to JForum to do the desired work. (Aka, your webservice calls jforum)

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi, I was just trying to figure out the same problem, so thank you very much :-) for the HTTP tip

1.- Any pointers on how I can authenticate myself when making the HTTP connection? I need to create forums and so I need administrator privileges.

2.- In which cases should code integration be used? I tried to make it work but could not get it right for creating forums from a different web application, because I had too many classloader issues and I think I left a lot of uninitialized objects (ForumRepository, DataAccessDriver).

Thanks in advance,
Diego

PS: I have completed the PrivateMessage attachment functionality, let me know if you want me to post it, send it or commit it.
[originally posted on jforum.net by andune76]
 
jQuery in Action, 2nd edition
 
subject: Integrating jforum and other web applications