Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

adding users/categories from an external application

 
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 just installed 2.1.5 and I LOVE the SSO capability.
My question is this, I have an external application where I create/delete users. Is there a way to, at the same time, also create users in JForum.
I was thinking of sourcing in the appropriate java files and then calling the "addUser" function or something like that. Thanks so much.

Z-man
[originally posted on jforum.net by rzavi4jc]
 
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 do exactly what you describe for my application. I must, because I do not use SSO. What I did was simply define a new DataSource in my webapp (I am using Struts) and point it at the JForum DB. I then perform my own SQL directly on the database. Since I am doing only a few simple queries and one update, it is very simple code. Since the update is to store new users into the jforum_users table, and I know no other code is performing that step, I am fairly safe, with respent to concurrency.
[originally posted on jforum.net by time]
reply
    Bookmark Topic Watch Topic
  • New Topic