Commit 3d7b1a8b authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Updated install docs after running through process.

Adjusted fastpath startup routine to refuse startup if enterprise is installed.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@10273 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1993d8d2
...@@ -95,11 +95,12 @@ we need to clean up the old database a bit and change the names of a couple of ...@@ -95,11 +95,12 @@ we need to clean up the old database a bit and change the names of a couple of
things. So the steps you will need to perform are as follows: things. So the steps you will need to perform are as follows:
<ol> <ol>
<li>Shut down your server.</li> <li>Shut down your server.</li>
<li>Remove <b>enterprise.jar</b> and the directory <b>enterprise</b>.</li>
<li>Log into your database, you can use the embedded-db-viewer scripts in bin/extra to access the Embedded database.</li> <li>Log into your database, you can use the embedded-db-viewer scripts in bin/extra to access the Embedded database.</li>
<li>Execute the following SQL: <tt>DELETE FROM jiveVersion WHERE name = "fastpath"</tt></li> <li>Execute the following SQL: <tt>DELETE FROM jiveVersion WHERE name = 'fastpath'</tt></li>
<li>Execute the following SQL (this may fail if you never had enterprise instaled, that is ok): <tt>UPDATE fpWorkgroupProp SET propValue = REPLACE(propValue, 'com.jivesoftware.openfire.fastpath','org.jivesoftware.openfire.fastpath')</tt></li> <li>Execute the following SQL (this may fail if you never had enterprise instaled, that is ok): <tt>UPDATE fpWorkgroupProp SET propValue = REPLACE(propValue, 'com.jivesoftware.openfire.fastpath','org.jivesoftware.openfire.fastpath')</tt></li>
<li>Execute the following SQL (this may fail if you never had enterprise installed, that is ok): <tt>UPDATE fpAgentProp SET propValue = REPLACE(propValue, 'com.jivesoftware.openfire.fastpath','org.jivesoftware.openfire.fastpath')</tt></li> <li>Execute the following SQL (this may fail if you never had enterprise installed, that is ok): <tt>UPDATE fpAgentProp SET propValue = REPLACE(propValue, 'com.jivesoftware.openfire.fastpath','org.jivesoftware.openfire.fastpath')</tt></li>
<li>Start up your server. If you had enterprise installed, you -will- see an SQL error show up, but it should only show up once and is ok. (it is an attempt to recreate a table that already exists)</li> <li>Start up your server. If you had enterprise installed, you -will- see an SQL error show up, but it should only show up once and is ok. (it is an attempt to recreate a table that already exists) The error will look like: <tt>fastpath - Database update failed. Please manually upgrade your database.</tt></li>
</ol> </ol>
<b>You only need to do these steps once when moving to this Fastpath plugin. <b>You only need to do these steps once when moving to this Fastpath plugin.
......
...@@ -28,6 +28,7 @@ import org.xmpp.component.ComponentException; ...@@ -28,6 +28,7 @@ import org.xmpp.component.ComponentException;
import org.xmpp.packet.JID; import org.xmpp.packet.JID;
import java.io.File; import java.io.File;
import java.io.FileFilter;
/** /**
* Openfire Fastpath plugin. * Openfire Fastpath plugin.
...@@ -44,7 +45,21 @@ public class FastpathPlugin implements Plugin, ClusterEventListener { ...@@ -44,7 +45,21 @@ public class FastpathPlugin implements Plugin, ClusterEventListener {
public void initializePlugin(PluginManager manager, File pluginDirectory) { public void initializePlugin(PluginManager manager, File pluginDirectory) {
System.out.println("Starting Fastpath Server"); System.out.println("Starting Fastpath Server");
// Make sure that the enteprise folder exists under the home directory // Check if we Enterprise is installed and stop loading this plugin if found
File pluginDir = new File(JiveGlobals.getHomeDirectory(), "plugins");
File[] jars = pluginDir.listFiles(new FileFilter() {
public boolean accept(File pathname) {
String fileName = pathname.getName().toLowerCase();
return (fileName.equalsIgnoreCase("enterprise.jar"));
}
});
if (jars.length > 0) {
// Do not load this plugin since Enterprise is still installed
System.out.println("Enterprise plugin found. Stopping Fastpath Plugin");
throw new IllegalStateException("This plugin cannot run next to the Enterprise plugin");
}
// Make sure that the fastpath folder exists under the home directory
File fastpathDir = new File(JiveGlobals.getHomeDirectory() + File fastpathDir = new File(JiveGlobals.getHomeDirectory() +
File.separator + "fastpath"); File.separator + "fastpath");
if (!fastpathDir.exists()) { if (!fastpathDir.exists()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment