2013年4月8日

openfire 允许同一账号多处登陆

摘要: 1、openfire client 多用户可以接受消息,在系统属性设置里添加 route.all-resources 为true。 阅读全文

posted @ 2013-04-08 14:00 big-dream 阅读(412) 评论(0) 推荐(0) 编辑

openfire整合外部数据库

摘要: 1、openfire整合已有数据库,编辑ofproperty表,(myuser为外部数据库名称,muser为外部用户表名称)jdbcAuthProvider.passwordSQL SELECT password FROM muser WHERE username=?jdbcAuthProvider.passwordType plain/md5jdbcProvider.connectionString jdbc:mysql://127.0.0.1:3306/myuser?user=root&password=SeekMeiMeijdbcProvider.driver com.mysql 阅读全文

posted @ 2013-04-08 13:58 big-dream 阅读(745) 评论(0) 推荐(0) 编辑

2012年11月19日

Android消息推送方案

摘要: 1、服务器端采用Openfire开源服务器(项目地址:http://www.igniterealtime.org/)2、安卓端采用asmack包(项目地址:http://code.google.com/p/asmack/)连接Openfire服务器。3、安卓端连接配置代码:package com.android.tool;import org.jivesoftware.smack.Connection;import org.jivesoftware.smack.ConnectionConfiguration;import org.jivesoftware.smack.XMPPConnectio 阅读全文

posted @ 2012-11-19 14:54 big-dream 阅读(743) 评论(0) 推荐(0) 编辑

导航