• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Integrating jforum and other web applications

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 (https://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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
I'm so happy! And I wish to make this tiny ad happy too:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic