接着前面的工作,消息接收之后,要推送给不同的客户端。关于消息推送,网上有很多方式,http长连接,xmpp协议,还有一个谷歌的貌似叫C2DM的东西。在此之前,用openfire做了一个小demo,例子是在网上找到的。也可以实现和AndroidPn差不多的一些功能,包括点对点,广播消息,反正都是xmp...
分类:
移动开发 时间:
2014-08-07 18:23:30
阅读次数:
258
最近要压openfire,于是找到这篇文章,先做个记号1. 参考http://blog.csdn.net/foxisme2/article/details/7521139http://blog.csdn.net/foxisme2/article/details/7528148其中生成测试报告的 命令...
分类:
其他好文 时间:
2014-08-05 10:58:39
阅读次数:
221
openfire 访问 user service 插件 访问不到安照说明文档,我访问创建用户的url 如下http://127.0.0.1:9090/plugins/userservice/userservice?type=add&secret=bigsecret&username=kafka&pa...
分类:
其他好文 时间:
2014-08-01 10:46:01
阅读次数:
152
在centos x64 上安装openfire,运行/etc/init.d/openfire start后发现服务器没法开启,查看log日志:nohup: failed to run command `/opt/openfire/jre/bin/java': No such file or dire...
分类:
其他好文 时间:
2014-08-01 04:48:11
阅读次数:
182
下载地址http://www.igniterealtime.org/downloads/index.jsp#openfire安装openfire#rpm -ivh openfire-3.7.1-1.i386.rpm启动服务# service openfire start设置开机自启动# chkcon...
分类:
其他好文 时间:
2014-07-31 20:34:27
阅读次数:
152
Are you a hacker?How to build another QQ/Wechat/whatsapp/skype/imessage?Let's go through this!!!!Materials:A linux/unix/windows/mac computer/server, a...
分类:
数据库 时间:
2014-07-23 20:44:35
阅读次数:
568
1、首先数据库的编码设置为UTF-8
2、项目的编码也要设置为UTF-8
如果数据保存到数据库的时候还有乱码 就要修改openfire配置文件
在openfire主目录\conf\openfire.xml 修改相关配置
把 jdbc:mysql://localhost:3306/openfire
改成 jdbc:mysql://localhost:...
分类:
数据库 时间:
2014-07-23 13:05:26
阅读次数:
215
发送文件需要提供准确的接收放用户名称(例:user2@192.168.1.100)、本地文件全路径(例:E:\\xxx\\xxx.zip)
接收文件必须声明一个文件监听器用于监听有可能发送过来的文件。
客户端发送文件代码片断
public void sendFire(XMPPConnection conn,String toUser,String filePath)throws XMPPEx...
分类:
其他好文 时间:
2014-07-19 14:03:57
阅读次数:
242
如果你对web聊天这个事情没什么概念,那么最佳做法可能是:openfire+jsjac...
分类:
Web程序 时间:
2014-07-17 19:18:56
阅读次数:
230