• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to - Advanced Integration Existing Webapp

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, what i want to have is jforum completely integrated into my webapp, I have searched the forums, and a number of posts raise this, however no one explains how,

So hopefully, by the time this is done at my end .. we should have a good set of notes that everyone can follow.


http://www.jforum.net/confluence/display/integration/Overview

The question i guess that needs to be answered is this one ...

"You can incorporte many JForum features directly into your application, including sign-on and login management. Other examples include displaying most recent posts on your web-site's main pages and accessing users Private Messages."

How?

I tried following some threads about integration but all seem to have made a start and then got stuck .. and then found the solution and then disappeared

What I would like to know where do i begin ..

Basically what would be good would be this.

1. when some does a login action on my site they are automatically logged in to JForums, no JOSSO or SSO ..

2. the URL for JForums becomes becomes http://myapp/forums/

So basically when they login to the site, they can post messages etc ..
when not logged in they can only view ..

I am sure this has been done a million times before .. I just do not have a clue where to begin ..


Also lets assume this is on Tomcat.

Thanx ..


[originally posted on jforum.net by balman222]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok So I have copied the Jforums db structure into my DB structure

merged the web.xml files

copied the jforum directory structure into my app ..

Ran through the jforum install, and now I can see jforum when i go to the URL

http://myhost/forums/list.page

Things I am still trying to figure out.

1. I already have a login/registration form. So how do I make these users visible to JForums. If i use that UserAction class .. does this mean the user has to exist in both tables;

2. What do i have to do when a user logs into the the website ..

Also, I now have 2 user tables, the first mine, the second the jforum one .. do i need both.

[originally posted on jforum.net by balman222]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't want to use SSO, you will necessarily need to have JForum and your application on the same context.

Then, when the user log in through your application, you will have to put a set of properties in his session.

Take a look on the class ControllerUtils.java, method "checkAutoLogin"

Rafael
[originally posted on jforum.net by Rafael Steil]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!