okamoto (dm-webV3.7) | 2013-02-25 08:55 |
There is a cmpatibility issue of Timestampe of MySQL 5,x,
http://dev.mysql.com/doc/refman/5.1/en/datetime.html
You will need to configure a JDBC driver. Here is a example of install.properties,
jdbc.classpath=/usr/local/jdk1.7.0_10/jre/lib/ext/mysql-connector-java-5.1.22-bin.jar jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost/fnbl_dm?zeroDateTimeBehavior=convertToNull jdbc.user=fnbl_dm jdbc.password=fnbl_dm jdbc.file=mysql-connector-java-5.1.22-bin.jar jdbc.module=com.mysql
# ============================================================================== # Funambol Device Management Server # ============================================================================== # Installation properties # ============================================================================== # The server URI server-name=http://xxx90:8080/funambol/dm # The context path to use to access DM Server context-path=/funambol # # The DBMS name. One of: # - mysql # - postgresql # dbms=mysql # # JDBC settings: # classpath: the classpath of the JDBC driver # url: the url to access the database with the choosen JDBC driver # user: the db user # password: the user's password # file: the file name of the JDBC driver # module: the module name of the JDBC driver # # PostgreSQL # ========== # # jdbc.classpath=<somepath>/postgresql.jar # jdbc.driver=org.postgresql.Driver # jdbc.url=jdbc:postgresql://<hostname>/funambol # jdbc.user=funambol # jdbc.password=funambol # jdbc.file=postgresql.jar # jdbc.module=org.postgresql # # MySQL # ===== # # jdbc.classpath=<somepath>/mysql-connector-java-bin.jar # jdbc.driver=com.mysql.jdbc.Driver # jdbc.url=jdbc:mysql://[hostname][,failoverhost...][:port]/[dbname][?param1=value1][¶m2=value2] # jdbc.user=funambol # jdbc.password=funambol # jdbc.file=mysql-connector-java-bin.jar # jdbc.module=com.mysql # ###jdbc.classpath=/opt/postgresql/share/java/postgresql.jar ###jdbc.driver=org.postgresql.Driver ###jdbc.url=jdbc:postgresql://localhost/fnbl_dm ###jdbc.user=fnbl_dm ###jdbc.password=fnbl_dm ###jdbc.file=postgresql.jar ###jdbc.module=org.postgresql jdbc.classpath=/usr/local/jdk1.7.0_10/jre/lib/ext/mysql-connector-java-5.1.22-bin.jar jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost/fnbl_dm?zeroDateTimeBehavior=convertToNull jdbc.user=fnbl_dm jdbc.password=fnbl_dm jdbc.file=mysql-connector-java-5.1.22-bin.jar jdbc.module=com.mysql
Please refer logging about JBoss AS 7,
JBoss AS 7 Admin Guide:
https://docs.jboss.org/author/display/AS71/Documentation
Default setting are,
Log Level is able to be changed by JBoss management console(or CLI)
You configure sender component to support device address list.
1.Java Beans
<?xml version="1.0" encoding="UTF-8"?> <java version="1.4.2_01" class="java.beans.XMLDecoder"> <object class="com.funambol.server.notification.HttpSender2"> <void property="deviceFile"> <string>/path/to/devices.properties</string> </void> </object> </java>
<?xml version="1.0" encoding="UTF-8"?> <java version="1.4.2_01" class="java.beans.XMLDecoder"> <object class="com.funambol.server.notification.HttpSender2"> <void property="deviceFile"> <string>/Funambol/dm-server/dmdemo/devices.properties</string> </void> </object> </java>
device1:url1 device2:url2
device01=http://xxx21:80 device02=http://xxx06:80
device1
You send a notification to the device wth device_id:deviceid01 by following command:
bin/notification.sh device1 operation1
a. Change the configuration file: "conf.priv" as following,
DeviceID: dm-client StartOnLAN: 1 DefaultAccountName: funambolb. Change your profile as following,
./DevDetail/LrgObj: true ./DevDetail/URI/MaxDepth: 0 ./DevDetail/URI/MaxSegLen: 0 ./DevDetail/URI/MaxTotLen: 0 ./DevInfo/DevId: dm-clientc. Change your account information as following,
Name: funambol Server ID: funambol Address: http://localhost/funambol/dm Port number: 8080 Server authentification: DIGEST Server password: srvpwd Client authentification: DIGEST User name: funambol User password: funambol ServerNonce: 5678 ClientNonce: 1234
a.install service,
oma_dm_client.exe -ib.start service,
oma_dm_client.exe -sc.start a UI stub,
UIAPIClientTest.exed.start a client adapter stub to connect to the Server,
TestClientAdapter1.exe startDMSession
chnage your account information as following,
ClientPW: funambol UserName: funambol Addr: http://localhost:8080/funambol/dm PortNumber: 8080 ServerID: funambol ServerNonce: 5678 ClientNonce: 1234Note: Device ID is w32dm.
Eecute,
dm.cmdNote: functions of this client are very limited.
see koneki project:
http://www.eclipse.org/koneki/omadm-simulator/