| Author |
installing the jforum database and populating externally
|
Peter Kiragu
Greenhorn
Joined: Apr 25, 2012
Posts: 5
|
|
Hey,
I'm trying to install Jforum from an external application,what I am currently trying to do is call the <code>doInstall()</code> method of the InstallAction class.
I tried declaring variables that are input in the installation form and setting the variable values from the external class.
The problem comes in when the <code>SystemGlobals.get* </code>(the * representing the value to be returned) returns a null value in all instances but if I revert to getting values from the session the get method returns an actual value.
My question is what exactly do I need to do to install JForum within my application instead of using the install page?
Thanks in advance.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26216
|
|
Peter Kiragu wrote:My question is what exactly do I need to do to install JForum within my application instead of using the install page?
What we did was instal it using the install page once. Then we captured the database state in ddl/sql and used that going forward. We also removed the code for the install action so nobody accidentally ran it and wiped us out!
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Peter Kiragu
Greenhorn
Joined: Apr 25, 2012
Posts: 5
|
|
|
unfortunately I don't have that option because the system I'm working on dynamically creates database schema and hence the jforum tables has to be created along with the rest of the application's tables.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26216
|
|
Peter Kiragu wrote:unfortunately I don't have that option because the system I'm working on dynamically creates database schema and hence the jforum tables has to be created along with the rest of the application's tables.
That doesn't mean you can't script it. Your program can call out to run the external ddl/sql at the time it creates its own tables.
|
 |
Peter Kiragu
Greenhorn
Joined: Apr 25, 2012
Posts: 5
|
|
I should have seen this before. I used HtmlUnit to call the form that creates the forum and it worked.
Thanks for the help.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26216
|
|
|
Good idea!
|
 |
 |
|
|
subject: installing the jforum database and populating externally
|
|
|