Commit c1b66ea5 authored by Quality Assurance's avatar Quality Assurance Committed by qa

CI & Automation support

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5769 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0dd16e08
......@@ -83,9 +83,12 @@
<property name="lib.web.dir" value="${web.dir}/WEB-INF/lib"/>
<property name="i18n.basename" value="wildfire_i18n"/>
<property name="i18n.default.locale" value="en"/>
<property name="target.dir" value="${basedir}/target"/>
<property name="target.wildfireHome" value="${target.dir}/wildfireHome"/>
<property name="temp.build.dir" value="${basedir}/target/tempbuild"/>
<property name="target.i18n.dir" value="${temp.build.dir}/i18n"/>
<property name="compile.dir" value="${target.dir}/classes"/>
<property name="jar.name" value="wildfire.jar"/>
<property name="jar.starter.name" value="startup.jar"/>
......@@ -338,22 +341,52 @@
<copy todir="${jar.dest.dir}">
<fileset dir="${lib.dist.dir}" includes="*.*"/>
</copy>
<!-- Copy in tag library support -->
<copy todir="${jar.dest.dir}">
<fileset dir="${lib.build.dir}" includes="commons-el.jar"/>
</copy>
<!-- Copy in jasper runtime jar -->
<copy todir="${jar.dest.dir}">
<fileset dir="${lib.build.dir}" includes="jasper-runtime.jar"/>
<fileset dir="${lib.build.dir}" includes="jasper-compiler.jar"/>
</copy>
<!-- Setup environment -->
<antcall target="-prepare"/>
<antcall target="wildfireHome"/>
</target>
<!-- run =================================================================================== -->
<target name="run" description="Starts Wildfire inline to the build process.">
<echo>Ensure that you have run ant jar!</echo>
<condition property="run.debug" value="-Xdebug -Xint -server -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000">
<isset property="debug"/>
</condition>
<java jar="${target.dir}/lib/startup.jar" fork="true" dir="${target.dir}/bin">
<property name="run.spawn" value="false"/>
<java jar="${target.wildfireHome}/lib/startup.jar" fork="true" spawn="${run.spawn}" dir="${target.wildfireHome}/bin">
<jvmarg line="${run.debug}"/>
</java>
</target>
<!-- run.test.init ========================================================================= -->
<target name="run.test.init">
<delete dir="${target.wildfireHome}" />
<property name="wildfireHome.preconfigured" value="true"/>
<property name="run.spawn" value="true"/>
</target>
<!-- run.test ============================================================================== -->
<target name="run.test" depends="run.test.init,wildfireHome,run" description="Starts Wildfire inline to the build process, with a clean pre-configured wildfireHome">
<echo>Wildfire server started.</echo>
</target>
<!-- deployjar ============================================================================= -->
<target name="deployjar" depends="jar" description="Pushes JARs to specified web location.">
<copy todir="${deploy.jar.dir}" overwrite="${overwrite}">
......@@ -362,7 +395,7 @@
</target>
<!-- war =================================================================================== -->
<target name="war" depends="jar" description="Creates a WAR of Wildfire">
<target name="war" depends="jar,adminPlugin" description="Creates a WAR of Wildfire">
<mkdir dir="${war.dest.dir}"/>
<mkdir dir="${war.dest.dir}/build"/>
<!-- Make a new web.xml file in the build dir -->
......@@ -382,9 +415,10 @@
<!-- Include compiled pages of the admin console -->
<lib dir="${target.dir}/plugins/admin/webapp/WEB-INF/lib"/>
</war>
<!-- Create a Wildfire home -->
<copy todir="${war.dest.dir}/wildfireHome">
<fileset dir="${target.dir}">
<fileset dir="${target.wildfireHome}">
<include name="conf/**/*.*"/>
<include name="resources/**/*"/>
<include name="plugins/*.*"/>
......@@ -558,33 +592,48 @@
</batchtest>
</junit>
</target>
<!-- wildfireHome ========================================================================== -->
<target name="wildfireHome" description="Create a wildfireHome directory in target.wildfireHome.">
<!-- Set this to true to enable a pre-setup wildfireHome directory -->
<property name="wildfireHome.preconfigured" value="false"/>
<target name="-prepare">
<property name="prepare.out.dir" value="${target.dir}"/>
<mkdir dir="${target.wildfireHome}" />
<!-- Copy lib dir -->
<copy todir="${prepare.out.dir}/lib">
<copy todir="${target.wildfireHome}/lib">
<fileset dir="${jar.dest.dir}" includes="*.*"></fileset>
</copy>
<!-- Copy conf dir -->
<copy todir="${prepare.out.dir}">
<fileset dir="${src.dir}" includes="conf/**/*.*"></fileset>
</copy>
<!-- Copy appropriate wildfireHome dir -->
<if>
<equals arg1="${wildfireHome.preconfigured}" arg2="true"/>
<then>
<!-- Copy pre-configured wildfireHome dir -->
<copy todir="${target.wildfireHome}">
<fileset dir="${basedir}/build/wildfireHome" includes="**/*.*" />
</copy>
</then>
<else>
<!-- Copy conf dir -->
<copy todir="${target.wildfireHome}">
<fileset dir="${src.dir}" includes="conf/**/*.*"></fileset>
</copy>
</else>
</if>
<!-- Copy database scripts -->
<if>
<equals arg1="${copy.dbscripts}" arg2="true"/>
<then>
<copy todir="${prepare.out.dir}/resources">
<copy todir="${target.wildfireHome}/resources">
<fileset dir="${src.dir}" includes="database/**/*.sql"></fileset>
</copy>
</then>
</if>
<!-- Copy security resources -->
<copy todir="${prepare.out.dir}/resources">
<copy todir="${target.wildfireHome}/resources">
<fileset dir="${src.dir}">
<include name="security/*"/>
<include name="security/*.*"/>
......@@ -592,28 +641,36 @@
</copy>
<!-- Copy native authentication files -->
<copy todir="${prepare.out.dir}/resources">
<copy todir="${target.wildfireHome}/resources">
<fileset dir="${src.dir}/resources">
<include name="nativeAuth/**"/>
</fileset>
</copy>
<!-- Copy admin Plugin -->
<antcall target="adminPlugin">
<param name="plugin.dest.dir" value="${target.wildfireHome}/plugins" />
</antcall>
<!-- Copy bin dir -->
<copy todir="${prepare.out.dir}">
<copy todir="${target.wildfireHome}">
<fileset dir="${src.dir}" includes="bin/**/*" />
</copy>
<fixcrlf srcdir="${prepare.out.dir}/bin" eol="lf" eof="remove" includes="*.sh,extra/*"/>
<fixcrlf srcdir="${target.wildfireHome}/bin" eol="lf" eof="remove" includes="*.sh,extra/*"/>
<!-- Create a logs dir in the binary release -->
<mkdir dir="${prepare.out.dir}/logs"/>
<mkdir dir="${target.wildfireHome}/logs"/>
</target>
<!-- Copy admin plugin source (if any) -->
<copy todir="${prepare.out.dir}">
<fileset dir="${src.dir}" includes="plugins/admin/*.*"/>
<!-- adminPlugin =========================================================================== -->
<target name="adminPlugin">
<!-- Copy admin plugin source (if any) -->
<copy todir="${plugin.dest.dir}">
<fileset dir="${src.dir}/plugins" includes="admin/*.*"/>
</copy>
<!-- Copy admin plugin resources -->
<copy todir="${prepare.out.dir}/plugins/admin/webapp">
<copy todir="${plugin.dest.dir}/admin/webapp">
<!-- All web resources minus jsp's and jspf's - those are precompiled -->
<fileset dir="${web.dir}">
<patternset refid="web.sources"/>
......@@ -622,31 +679,23 @@
</fileset>
</copy>
<!-- Copy other admin WEB-INF stuff -->
<copy todir="${prepare.out.dir}/plugins/admin/webapp">
<copy todir="${plugin.dest.dir}/admin/webapp">
<fileset dir="${webapp.dest.dir}"/>
</copy>
<!-- Copy help files -->
<available file="${src.dir}/help/help.zip" property="help.exists" />
<antcall target="-extract-help" />
<!-- Copy in tag library support -->
<copy todir="${prepare.out.dir}/lib">
<fileset dir="${lib.build.dir}" includes="commons-el.jar"/>
</copy>
<!-- Copy in pre-compiled JSP jar -->
<copy todir="${prepare.out.dir}/plugins/admin/webapp/WEB-INF/lib" overwrite="${overwrite}">
<copy todir="${plugin.dest.dir}/admin/webapp/WEB-INF/lib" overwrite="${overwrite}">
<fileset dir="${jspc.dest.dir}" includes="${jspc.jar.name}"/>
</copy>
<!-- Copy in jasper runtime jar -->
<copy todir="${prepare.out.dir}/lib">
<fileset dir="${lib.build.dir}" includes="jasper-runtime.jar"/>
<fileset dir="${lib.build.dir}" includes="jasper-compiler.jar"/>
</copy>
</target>
<target name="-extract-help" if="help.exists">
<unzip src="${src.dir}/help/help.zip" dest="${prepare.out.dir}/plugins/admin/webapp" />
<!-- Copy help files -->
<available file="${src.dir}/help/help.zip" property="help.exists" />
<antcall target="-extract-help" />
</target>
<target name="-extract-help" if="help.exists">
<unzip src="${src.dir}/help/help.zip" dest="${plugin.dest.dir}/admin/webapp" />
</target>
<!-- release =============================================================================== -->
<target name="release" depends="jar,javadoc" description="Creates a distribution">
......@@ -679,9 +728,9 @@
<antcall target="enterprise" />
<!-- Copy all prepare dirs to the binary dist -->
<ant antfile="${basedir}/build/build.xml" target="-prepare">
<property name="prepare.out.dir" value="${release.out.dir}"/>
</ant>
<antcall target="wildfireHome">
<param name="target.wildfireHome" value="${release.out.dir}"/>
</antcall>
<!-- Remove the development scripts -->
<delete file="${release.out.dir}/bin/wildfire-dev.bat"/>
......@@ -891,6 +940,8 @@
>
<property name="no.jspc" value="true"/>
</ant>
<mkdir dir="${plugin.dest.dir}" />
<!-- Get a list of subdirs of the main plugins dir. This tells us which plugins to make. -->
<subdirinfo dir="${plugin.src.dir}" property="dirlist" ifexists="plugin.xml" except="admin"/>
......@@ -1198,7 +1249,7 @@
<!-- clean-plugins ========================================================================= -->
<target name="clean-plugins" description="Cleans all generated plugins">
<delete includeemptydirs="true">
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${plugin.dest.dir}" excludes="admin/**/*.*" />
</delete>
<!--<delete dir="${plugin.dest.dir}"/> -->
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file stores bootstrap properties needed by Wildfire.
Property names must be in the format: "prop.name.is.blah=value"
That will be stored as:
<prop>
<name>
<is>
<blah>value</blah>
</is>
</name>
</prop>
Most properties are stored in the Wildfire database. A
property viewer and editor is included in the admin console.
-->
<!-- root element, all properties must be under this element -->
<jive>
<adminConsole>
<!-- Disable either port by setting the value to -1 -->
<port>9090</port>
<securePort>9091</securePort>
</adminConsole>
<admin>
<!-- Use this section to define users that will have admin privileges. Below,
you will find two ways to specify which users are admins. Admins will
have access to the admin console (only local users) and may have also access
to other functionalities like ad-hoc commands. -->
<!-- By default, only the user with the username "admin" can login
to the admin console. Alternatively, you can specify a comma-delimitted
list usernames that should be authorized to login to the admin console
by setting the <authorizedUsernames> field below. -->
<!-- <authorizedUsernames></authorizedUsernames> -->
<!-- Comma-delimitted list of bare JIDs. The JIDs may belong to local
or remote users. -->
<!-- <authorizedJIDs></authorizedJIDs> -->
</admin>
<locale>en</locale>
<!-- Network settings. By default, Wildfire will bind to all network interfaces.
Alternatively, you can specify a specific network interfaces that the server
will listen on. For example, 127.0.0.1. This setting is generally only useful
on multi-homed servers. -->
<!--
<network>
<interface></interface>
</network>
-->
<!-- Example LDAP settings -->
<!-- Note, for Active Directory, try usernameField=sAMAccountName, nameField=displayName,
emailField=mail -->
<!--
<ldap>
<host></host>
<port>389</port>
<usernameField>uid</usernameField>
<nameField>cn</nameField>
<emailField>mail</emailField>
<baseDN></baseDN>
<adminDN></adminDN>
<adminPassword></adminPassword>
</ldap>
<provider>
<user>
<className>org.jivesoftware.wildfire.ldap.LdapUserProvider</className>
</user>
<auth>
<className>org.jivesoftware.wildfire.ldap.LdapAuthProvider</className>
</auth>
</provider>
-->
<!-- End example LDAP settings -->
<connectionProvider>
<className>org.jivesoftware.database.EmbeddedConnectionProvider</className>
</connectionProvider>
<setup>true</setup>
</jive>
#HSQL Database Engine
#Fri Oct 13 13:40:31 PDT 2006
hsqldb.script_format=0
runtime.gc_interval=0
sql.enforce_strict_size=false
hsqldb.cache_size_scale=8
readonly=false
hsqldb.nio_data_file=true
hsqldb.cache_scale=14
version=1.8.0
hsqldb.default_table_type=memory
hsqldb.cache_file_scale=1
hsqldb.log_size=200
modified=yes
hsqldb.cache_version=1.7.0
hsqldb.original_version=1.8.0
hsqldb.compatible_version=1.8.0
CREATE SCHEMA PUBLIC AUTHORIZATION DBA
CREATE MEMORY TABLE JIVEUSER(USERNAME VARCHAR(64) NOT NULL,PASSWORD VARCHAR(32),ENCRYPTEDPASSWORD VARCHAR(255),NAME VARCHAR(100),EMAIL VARCHAR(100),CREATIONDATE VARCHAR(15) NOT NULL,MODIFICATIONDATE VARCHAR(15) NOT NULL,CONSTRAINT JIVEUSER_PK PRIMARY KEY(USERNAME))
CREATE INDEX JIVEUSER_CDATE_IDX ON JIVEUSER(CREATIONDATE)
CREATE MEMORY TABLE JIVEUSERPROP(USERNAME VARCHAR(64) NOT NULL,NAME VARCHAR(100) NOT NULL,PROPVALUE VARCHAR(4000) NOT NULL,CONSTRAINT JIVEUSERPROP_PK PRIMARY KEY(USERNAME,NAME))
CREATE MEMORY TABLE JIVEPRIVATE(USERNAME VARCHAR(64) NOT NULL,NAME VARCHAR(100) NOT NULL,NAMESPACE VARCHAR(200) NOT NULL,VALUE LONGVARCHAR NOT NULL,CONSTRAINT JIVEPRIVATE_PK PRIMARY KEY(USERNAME,NAME,NAMESPACE))
CREATE MEMORY TABLE JIVEOFFLINE(USERNAME VARCHAR(64) NOT NULL,MESSAGEID BIGINT NOT NULL,CREATIONDATE VARCHAR(15) NOT NULL,MESSAGESIZE INTEGER NOT NULL,MESSAGE LONGVARCHAR NOT NULL,CONSTRAINT JIVEOFFLINE_PK PRIMARY KEY(USERNAME,MESSAGEID))
CREATE MEMORY TABLE JIVEROSTER(ROSTERID BIGINT NOT NULL,USERNAME VARCHAR(64) NOT NULL,JID VARCHAR(1024) NOT NULL,SUB INTEGER NOT NULL,ASK INTEGER NOT NULL,RECV INTEGER NOT NULL,NICK VARCHAR(255),CONSTRAINT JIVEROSTER_PK PRIMARY KEY(ROSTERID))
CREATE INDEX JIVEROSTER_USERNAME_IDX ON JIVEROSTER(USERNAME)
CREATE MEMORY TABLE JIVEROSTERGROUPS(ROSTERID BIGINT NOT NULL,RANK INTEGER NOT NULL,GROUPNAME VARCHAR(255) NOT NULL,CONSTRAINT JIVEROSTERGROUPS_PK PRIMARY KEY(ROSTERID,RANK))
CREATE INDEX JIVEROSTERGROUP_ROSTERID_IDX ON JIVEROSTERGROUPS(ROSTERID)
CREATE MEMORY TABLE JIVEVCARD(USERNAME VARCHAR(64) NOT NULL,VALUE LONGVARCHAR NOT NULL,CONSTRAINT JIVEVCARD_PK PRIMARY KEY(USERNAME))
CREATE MEMORY TABLE JIVEGROUP(GROUPNAME VARCHAR(50) NOT NULL,DESCRIPTION VARCHAR(255),CONSTRAINT JIVEGROUP_PK PRIMARY KEY(GROUPNAME))
CREATE MEMORY TABLE JIVEGROUPPROP(GROUPNAME VARCHAR(50) NOT NULL,NAME VARCHAR(100) NOT NULL,PROPVALUE VARCHAR(4000) NOT NULL,CONSTRAINT JIVEGROUPPROP_PK PRIMARY KEY(GROUPNAME,NAME))
CREATE MEMORY TABLE JIVEGROUPUSER(GROUPNAME VARCHAR(50) NOT NULL,USERNAME VARCHAR(100) NOT NULL,ADMINISTRATOR INTEGER NOT NULL,CONSTRAINT JIVEGROUPUSER_PK PRIMARY KEY(GROUPNAME,USERNAME,ADMINISTRATOR))
CREATE MEMORY TABLE JIVEID(IDTYPE INTEGER NOT NULL,ID BIGINT NOT NULL,CONSTRAINT JIVEID_PK PRIMARY KEY(IDTYPE))
CREATE MEMORY TABLE JIVEPROPERTY(NAME VARCHAR(100) NOT NULL,PROPVALUE VARCHAR(4000) NOT NULL,CONSTRAINT JIVEPROPERTY_PK PRIMARY KEY(NAME))
CREATE MEMORY TABLE JIVEVERSION(NAME VARCHAR(50) NOT NULL,VERSION INTEGER NOT NULL,CONSTRAINT JIVEVERSION_PK PRIMARY KEY(NAME))
CREATE MEMORY TABLE JIVEEXTCOMPONENTCONF(SUBDOMAIN VARCHAR(255) NOT NULL,SECRET VARCHAR(255),PERMISSION VARCHAR(10) NOT NULL,CONSTRAINT JIVEEXTCOMPONENTCONF_PK PRIMARY KEY(SUBDOMAIN))
CREATE MEMORY TABLE JIVEREMOTESERVERCONF(DOMAIN VARCHAR(255) NOT NULL,REMOTEPORT INTEGER,PERMISSION VARCHAR(10) NOT NULL,CONSTRAINT JIVEREMOTESERVERCONF_PK PRIMARY KEY(DOMAIN))
CREATE MEMORY TABLE JIVEPRIVACYLIST(USERNAME VARCHAR(64) NOT NULL,NAME VARCHAR(100) NOT NULL,ISDEFAULT INTEGER NOT NULL,LIST LONGVARCHAR NOT NULL,CONSTRAINT JIVEPRIVACYLIST_PK PRIMARY KEY(USERNAME,NAME))
CREATE INDEX JIVEPLIST_DEFAULT_IDX ON JIVEPRIVACYLIST(USERNAME,ISDEFAULT)
CREATE MEMORY TABLE JIVESASLAUTHORIZED(USERNAME VARCHAR(64) NOT NULL,PRINCIPAL VARCHAR(4000) NOT NULL,CONSTRAINT JIVESASLAUTHORIZED_PK PRIMARY KEY(USERNAME,PRINCIPAL))
CREATE MEMORY TABLE MUCROOM(ROOMID BIGINT NOT NULL,CREATIONDATE CHAR(15) NOT NULL,MODIFICATIONDATE CHAR(15) NOT NULL,NAME VARCHAR(50) NOT NULL,NATURALNAME VARCHAR(255) NOT NULL,DESCRIPTION VARCHAR(255),LOCKEDDATE CHAR(15) NOT NULL,EMPTYDATE CHAR(15),CANCHANGESUBJECT INTEGER NOT NULL,MAXUSERS INTEGER NOT NULL,PUBLICROOM INTEGER NOT NULL,MODERATED INTEGER NOT NULL,MEMBERSONLY INTEGER NOT NULL,CANINVITE INTEGER NOT NULL,PASSWORD VARCHAR(50),CANDISCOVERJID INTEGER NOT NULL,LOGENABLED INTEGER NOT NULL,SUBJECT VARCHAR(100),ROLESTOBROADCAST INTEGER NOT NULL,USERESERVEDNICK INTEGER NOT NULL,CANCHANGENICK INTEGER NOT NULL,CANREGISTER INTEGER NOT NULL,CONSTRAINT MUCROOM_PK PRIMARY KEY(NAME))
CREATE INDEX MUCROOM_ROOMID_IDX ON MUCROOM(ROOMID)
CREATE MEMORY TABLE MUCROOMPROP(ROOMID BIGINT NOT NULL,NAME VARCHAR(100) NOT NULL,PROPVALUE VARCHAR(4000) NOT NULL,CONSTRAINT MUCROOMPROP_PK PRIMARY KEY(ROOMID,NAME))
CREATE MEMORY TABLE MUCAFFILIATION(ROOMID BIGINT NOT NULL,JID VARCHAR(1024) NOT NULL,AFFILIATION INTEGER NOT NULL,CONSTRAINT MUCAFFILIATION_PK PRIMARY KEY(ROOMID,JID))
CREATE MEMORY TABLE MUCMEMBER(ROOMID BIGINT NOT NULL,JID VARCHAR(1024) NOT NULL,NICKNAME VARCHAR(255),FIRSTNAME VARCHAR(100),LASTNAME VARCHAR(100),URL VARCHAR(100),EMAIL VARCHAR(100),FAQENTRY VARCHAR(100),CONSTRAINT MUCMEMBER_PK PRIMARY KEY(ROOMID,JID))
CREATE MEMORY TABLE MUCCONVERSATIONLOG(ROOMID BIGINT NOT NULL,SENDER VARCHAR(1024) NOT NULL,NICKNAME VARCHAR(255),TIME CHAR(15) NOT NULL,SUBJECT VARCHAR(255),BODY LONGVARCHAR)
CREATE INDEX MUCLOG_TIME_IDX ON MUCCONVERSATIONLOG(TIME)
CREATE MEMORY TABLE PUBSUBNODE(SERVICEID VARCHAR(100) NOT NULL,NODEID VARCHAR(100) NOT NULL,LEAF INTEGER NOT NULL,CREATIONDATE CHAR(15) NOT NULL,MODIFICATIONDATE CHAR(15) NOT NULL,PARENT VARCHAR(100),DELIVERPAYLOADS INTEGER NOT NULL,MAXPAYLOADSIZE INTEGER,PERSISTITEMS INTEGER,MAXITEMS INTEGER,NOTIFYCONFIGCHANGES INTEGER NOT NULL,NOTIFYDELETE INTEGER NOT NULL,NOTIFYRETRACT INTEGER NOT NULL,PRESENCEBASED INTEGER NOT NULL,SENDITEMSUBSCRIBE INTEGER NOT NULL,PUBLISHERMODEL VARCHAR(15) NOT NULL,SUBSCRIPTIONENABLED INTEGER NOT NULL,CONFIGSUBSCRIPTION INTEGER NOT NULL,ACCESSMODEL VARCHAR(10) NOT NULL,PAYLOADTYPE VARCHAR(100),BODYXSLT VARCHAR(100),DATAFORMXSLT VARCHAR(100),CREATOR VARCHAR(1024) NOT NULL,DESCRIPTION VARCHAR(255),LANGUAGE VARCHAR(255),NAME VARCHAR(50),REPLYPOLICY VARCHAR(15),ASSOCIATIONPOLICY VARCHAR(15),MAXLEAFNODES INTEGER,CONSTRAINT PUBSUBNODE_PK PRIMARY KEY(SERVICEID,NODEID))
CREATE MEMORY TABLE PUBSUBNODEJIDS(SERVICEID VARCHAR(100) NOT NULL,NODEID VARCHAR(100) NOT NULL,JID VARCHAR(1024) NOT NULL,ASSOCIATIONTYPE VARCHAR(20) NOT NULL,CONSTRAINT PUBSUBJID_PK PRIMARY KEY(SERVICEID,NODEID,JID))
CREATE MEMORY TABLE PUBSUBNODEGROUPS(SERVICEID VARCHAR(100) NOT NULL,NODEID VARCHAR(100) NOT NULL,ROSTERGROUP VARCHAR(100) NOT NULL)
CREATE INDEX PUBSUBNODEGROUPS_IDX ON PUBSUBNODEGROUPS(SERVICEID,NODEID)
CREATE MEMORY TABLE PUBSUBAFFILIATION(SERVICEID VARCHAR(100) NOT NULL,NODEID VARCHAR(100) NOT NULL,JID VARCHAR(1024) NOT NULL,AFFILIATION VARCHAR(10) NOT NULL,CONSTRAINT PUBSUBAFFIL_PK PRIMARY KEY(SERVICEID,NODEID,JID))
CREATE MEMORY TABLE PUBSUBITEM(SERVICEID VARCHAR(100) NOT NULL,NODEID VARCHAR(100) NOT NULL,ID VARCHAR(100) NOT NULL,JID VARCHAR(1024) NOT NULL,CREATIONDATE CHAR(15) NOT NULL,PAYLOAD VARCHAR(4000),CONSTRAINT PUBSUBITEM_PK PRIMARY KEY(SERVICEID,NODEID,ID))
CREATE MEMORY TABLE PUBSUBSUBSCRIPTION(SERVICEID VARCHAR(100) NOT NULL,NODEID VARCHAR(100) NOT NULL,ID VARCHAR(100) NOT NULL,JID VARCHAR(1024) NOT NULL,OWNER VARCHAR(1024) NOT NULL,STATE VARCHAR(15) NOT NULL,DELIVER INTEGER NOT NULL,DIGEST INTEGER NOT NULL,DIGEST_FREQUENCY INTEGER NOT NULL,EXPIRE CHAR(15),INCLUDEBODY INTEGER NOT NULL,SHOWVALUES VARCHAR(30) NOT NULL,SUBSCRIPTIONTYPE VARCHAR(10) NOT NULL,SUBSCRIPTIONDEPTH INTEGER NOT NULL,KEYWORD VARCHAR(200),CONSTRAINT PUBSUBSUBS_PK PRIMARY KEY(SERVICEID,NODEID,ID))
CREATE MEMORY TABLE PUBSUBDEFAULTCONF(SERVICEID VARCHAR(100) NOT NULL,LEAF INTEGER NOT NULL,DELIVERPAYLOADS INTEGER NOT NULL,MAXPAYLOADSIZE INTEGER NOT NULL,PERSISTITEMS INTEGER NOT NULL,MAXITEMS INTEGER NOT NULL,NOTIFYCONFIGCHANGES INTEGER NOT NULL,NOTIFYDELETE INTEGER NOT NULL,NOTIFYRETRACT INTEGER NOT NULL,PRESENCEBASED INTEGER NOT NULL,SENDITEMSUBSCRIBE INTEGER NOT NULL,PUBLISHERMODEL VARCHAR(15) NOT NULL,SUBSCRIPTIONENABLED INTEGER NOT NULL,ACCESSMODEL VARCHAR(10) NOT NULL,LANGUAGE VARCHAR(255),REPLYPOLICY VARCHAR(15),ASSOCIATIONPOLICY VARCHAR(15) NOT NULL,MAXLEAFNODES INTEGER NOT NULL,CONSTRAINT PUBSUBDEFCONF_PK PRIMARY KEY(SERVICEID,LEAF))
CREATE USER SA PASSWORD ""
GRANT DBA TO SA
SET WRITE_DELAY 20
SET SCHEMA PUBLIC
INSERT INTO JIVEUSER VALUES('admin','admin',NULL,'Administrator','admin@example.com','001160771782343','0')
INSERT INTO JIVEID VALUES(18,1)
INSERT INTO JIVEID VALUES(19,1)
INSERT INTO JIVEID VALUES(23,1)
INSERT INTO JIVEPROPERTY VALUES('xmpp.auth.anonymous','true')
INSERT INTO JIVEPROPERTY VALUES('xmpp.domain','localhost')
INSERT INTO JIVEPROPERTY VALUES('xmpp.muc.history.type','number')
INSERT INTO JIVEPROPERTY VALUES('xmpp.session.conflict-limit','0')
INSERT INTO JIVEPROPERTY VALUES('xmpp.socket.ssl.active','true')
INSERT INTO JIVEVERSION VALUES('wildfire',10)
INSERT INTO PUBSUBNODE VALUES('pubsub','',0,'001160771783203','001160771783203',NULL,0,0,0,0,1,1,1,0,0,'publishers',1,0,'open','','','','admin@localhost','','English','',NULL,'all',-1)
INSERT INTO PUBSUBAFFILIATION VALUES('pubsub','','admin@localhost','owner')
INSERT INTO PUBSUBSUBSCRIPTION VALUES('pubsub','','j606VYMfTW99CAkvfsfOAO1m99JTKW0gxaaGq96X','admin@localhost','admin@localhost','subscribed',1,0,86400000,NULL,0,' ','nodes',1,NULL)
INSERT INTO PUBSUBDEFAULTCONF VALUES('pubsub',0,0,0,0,0,1,1,1,0,0,'publishers',1,'open','English',NULL,'all',-1)
INSERT INTO PUBSUBDEFAULTCONF VALUES('pubsub',1,1,5120,0,-1,1,1,1,0,1,'publishers',1,'open','English',NULL,'all',-1)
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