
PDKvȂ
@T[o
EPostgreSQL8.1ȏ
ETomcat5.5n
ERhythmoCiŃt@C rhythm_bin_xxxxx.tar.gz
ERhythm JARpbN rhythm_jar_xxxxx.tar.gz
iJakarta CommonSeasar2ȂǁARhythmŗpĂJARt@C܂Ƃ߂́j

@NCAg
EFlash Ver9ȏオ삷WEBuEU

PDPDmFꂽiLbNO̊Jj
 Debian GNU/Linux 3.1 i386 kernel 2.6.18
 Jakarta Tomcat 5.5.25
 PostgreSQL 8.1.9
 JDK 1.5.12
 

QDCXg[菇
 sɂĂLinuxł̑ƂȂĂ܂BWindows̏ꍇ́AKXǂݑւĂB

QDPDTomcat5.5̃CXg[
http://tomcat.apache.org/download-55.cgi
Corê̂ł̂Ń_E[hĂB
_E[ht@CTomcat5.5𓮍삳fBNgɉ𓀂܂B
fBNg͔Cӂ̖̂ł܂܂Bȉ̗ł́A/installto/ɃCXg[s܂B

sj
user@host:$ mkdir /installto/
user@host:$ cd /installto/
user@host:$ tar zxvf _E[hfBNg/apache-tomcat-5.5.xx.tar.gz


QDQDRhythmt@C̓WJ
Tomcat5.5WJfBNgɈړāARhythmoCiŃt@CRhythm JARpbNWJ܂B
ȂARhythmwebapps/rhythm/data/ƂfBNg쐬܂̂ŁÃfBNgʂ̖ړIŗpĂꍇ́AOɂ̃fBNgύXĂB
it@C܂ŁARhythm̃VXeƏdĂꍇAt@C㏑Ă܂܂BARhythm̐Vo[WWJꍇ́AfBNgĂ\܂Bj

sj
user@host:$ cd /installto/apache-tomcat-5.5.xx
user@host:$ tar zxvf rhythm_bin_xxxxx.tar.gz
user@host:$ tar zxvf rhythm_jar_xxxxx.tar.gz

Tomcat́ACXg[̓|[g8080œ삵܂B8080pς݂łÃ|[ggꍇ́A/installto/apache-tomcat-5.5.xx/conf/server.xmlύXĂB

QDRDǉŕKvJAR̃_E[h
CZX̓sɂAJavaMailŕKvJARt@C͊܂߂Ă܂B
http://java.sun.com/products/javamail/downloads/index.html
http://java.sun.com/products/javabeans/jaf/downloads/index.html
LURLAJavaMailJAF_E[hAꂼKȃfBNgɉ𓀂AɊ܂܂Ămail.jaractivation.jar/installto/apache-tomcat-5.5.xx/webapps/rhythm/WEB-INF/lib/ɃRs[ĂB

QDSDf[^x[X̃CXg[
R[hEUC-JPɂPostgreSQL̃f[^x[XVK쐬܂B
ȉ̃R}h́APostgreSQL֓[hŃANZXł郆[UŎsĂB
قƂǂ̏ꍇA[U postgres ȂǂƂȂĂł傤B

sj
postgres@host:~$ createdb -E EUC_JP rhythmdb

܂ARhythmVXeŃANZX邽߂ɐp̃AJEg쐬邱Ƃ߂܂B

sj
postgres@host:~$ psql 
Welcome to psql 8.x.x, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

postgres=# create user rhythmuser;
postgres=# alter user rhythmuser password 'rhythmpswd';
postgres=# grant all on database rhythmdb to rhythmuser;
postgres=# (CTRL+D)

ŌRhythm̃XL[}Əf[^쐬܂B

sj
postgres@host:~$ psql -U rhythmuser -f /installto/apache-tomcat-5.5.xx/data/rhythm_init.sql rhythmdb

QDTDeݒt@C̕ҏW

iPjFlash̃ANZXt@CҏW
/installto/apache-tomcat-5.5.xx/webapps/rhythm/crossdomain.xmlTomcatCXg[T[oFQDNAIPAhXLqĂB
<allow-access-from domain="*" />  "*"ύX܂B
ҏWAcrossdomain.xml/installto/apache-tomcat-5.5.xx/webapps/ROOTɈړĂB

ύXj
<allow-access-from domain="rhythmdemo.foo-bar.com" />

<allow-access-from domain="192.168.1.1" />

iQjTomcatsJAVAIvVݒ
/installto/apache-tomcat-5.5.xx/bin/catalina.shɈȉ̈sǉ܂B
JAVA_OPTS=" -Dkickmogu.property=flex.properties -Dsun.nio.cs.map=x-windows-iso2022jp/ISO-2022-JP"
ǉꏊ́Aŏ̃RgIi56sڕt߁jł܂܂B

ύXj
#
#   CATALINA_PID    (Optional) Path of the file which should contains the pid
#                   of catalina startup java process, when start (fork) is used
#
# $Id: INSTALL.txt,v 1.7 2007-10-26 13:08:05 mogu Exp $
# -----------------------------------------------------------------------------
JAVA_OPTS=" -Dkickmogu.property=flex.properties -Dsun.nio.cs.map=x-windows-iso2022jp/ISO-2022-JP"

iRjWebService삵ĂURLݒ
FlashRhythmNCAgǂRhythmT[oɃANZX邩ݒ肵܂B
/installto/apache-tomcat-5.5.xx/webapps/rhythm/index.html74sڕt߂
"flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '&soapRootUrl=http://192.168.1.1:8080/rhythm/services/&servletRootUrl=http://192.168.1.1:8080/rhythm/servlet/',
ƂȂĂӏC܂BCӏ
soapRootUrl=http://192.168.1.1:8080/@
servletRootUrl=http://192.168.1.1:8080/
2_łB
ꂼATomcatT[oCXg[IPAhXiFQDNjƃ|[gԍɕύX܂B


牺̃t@C͑S/installto/apache-tomcat-5.5.xx/webapps/rhythm/WEB-INF/classes/̒ɂ܂B
iSjRhythm̐ݒt@C(flex.properties)ҏW
path.sysrootTomcatCXg[fBNgɕύX܂B

ύXj
path.sysroot=/installto/apache-tomcat-5.5.xx

̑Amail.upload.tmpdirmail.attach.diŕAKȃe|fBNgw肵܂BUnixnOSł́AύXȂĂ삵܂B
܂Akickmogu.Config.portɂẮApĂȂ|[gԍw肵ĂB

iTjf[^x[XANZX̐ݒt@C(j2ee.dicon)ҏW
t@C78sڂPostgreSQL̐ݒL܂B
ύXӏ͈ȉ̕łB

    <property name="URL">
      "jdbc:postgresql://PostgreSQLCXg[T[o̖O/f[^x[X"
    </property>
    <property name="user">"DBɃANZX鎞̃[U"</property>
    <property name="password">"L[ŨpX[h"</property>

L̃P[XŁAPostgreSQLTomcat𓯂T[oɃCXg[ꍇ͈ȉ̂悤ɂȂ܂B
ύXj
    <property name="URL">
      "jdbc:postgresql://localhost/rhythmdb"
    </property>
    <property name="user">"rhythmuser"</property>
    <property name="password">"rhythmpswd"</property>
    
ȂAPostgreSQLʂ̃T[oɂꍇ́APostgreSQL̃ANZXݒKvɂȂ邩܂B
̍ۂɂ́APostgreSQLpg_hba.confύXĂB

RDN
lłBݒ͂ŏIłB
́ATomcatNāAuEURhythmTopy[WuEUŊJĂB

Tomcatsj
cd /installto/apache-tomcat-5.5.xx/
bin/startup.sh

RhythmTopy[W
http://ȂTomcatT[oIPAhX:Tomcat̃|[gԍ/rhythm/
ƂȂ܂B

OCID,pX[hƂ"root","root"ŃOCł悤ɂȂĂ܂AOCApX[h͂ɕύXقǂł傤B
pX[h̕ύX́Ãj[o[ǗyCIAlݒ胁j[IԂƂɂ\łB

