• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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]
 
Attractive, successful people love this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic