openfire

Sending and Receiving messages using Smack Api for Android

醉酒当歌 提交于 2019-11-29 09:14:05
问题 I'm trying since last four days to send and receive chat message using own XMPP and with Smack+OpenFire. According to Smack's "readme.txt' i set up the connection and got logged user in. The code of connection and login is this public static String TAG = "Test connection"; private static XMPPTCPConnection connection; private static String userName = "demo"; private static String Password = "demo"; static { // Create the configuration for this new connection XMPPTCPConnectionConfiguration

Smack 4.1 Android anonymous registration to Openfire

不羁的心 提交于 2019-11-29 08:09:34
I want connect anonymously to openfire server with Android Smack 4.1 client and register the new user (username = "wq", password="wq") with AccountManager, and then disconnect and login as non-anonymous registered user. 3.1.1 Registration with a Server Special care must be taken when an unregistered entity interacts with a server rather than a service. Normally, a server enables in-band registration so that entities can "bootstrap" their participation in the Jabber network; this bootstrapping happens when an unregistered and unauthenticated entity opens a TCP connection to a server and

openfire 开发环境搭建

情到浓时终转凉″ 提交于 2019-11-29 06:44:21
在了解了XMPP的基本结构和一些概念之后,我们暂时告别枯燥的理论学习,来动手搭建一下Openfire+Spark的开发环境,实际感受一下搭建整套IM通讯系统的过程。 开发环境:windows XP sp3,Eclipse3.6.1,jdk1.6.0_24,Ant1.7 首先从官网上下载最新版本的openfire源码 第二步,在Eclipse中创建名为openfire的java项目 将openfire源码中openfire_src下的所有文件复制到此项目中,效果如下 项目有错误是因为jar包没有加进来,右键点击项目选择Properties,添加build/lib下所有的jar包 为了方便编辑,我们要把各个插件的源代码抽出来,在Properties文件夹中选择Source,Add Folders,把src/java和plugins下面的所有插件前边打上勾。 效果如下 下一步,复制src/i18n/openfire_i18n_en.properties和src/resources/jar/admin-sidebar.xml两个文件,到项目下的bin目录。 然后,我们用ant来编译整个项目,选择项目下的build/build.xml文件,运行,若是出现BUILD SUCCESSFUL则编译成功,不行就多来几遍。 下面建立项目builder,选择src/java/org

XMPP协议学习笔记三(Openfire服务器端搭建开发环境)

醉酒当歌 提交于 2019-11-29 06:44:05
在了解了XMPP的基本结构和一些概念之后,我们暂时告别枯燥的理论学习,来动手搭建一下Openfire+Spark的开发环境,实际感受一下搭建整套IM通讯系统的过程。 开发环境:windows XP sp3,Eclipse3.6.1,jdk1.6.0_24,Ant1.7 首先从官网上下载最新版本的openfire源码 第二步,在Eclipse中创建名为openfire的java项目 将openfire源码中openfire_src下的所有文件复制到此项目中,效果如下 项目有错误是因为jar包没有加进来,右键点击项目选择Properties,添加build/lib下所有的jar包 为了方便编辑,我们要把各个插件的源代码抽出来,在Properties文件夹中选择Source,Add Folders,把src/java和plugins下面的所有插件前边打上勾。 效果如下 下一步,复制src/i18n/openfire_i18n_en.properties和src/resources/jar/admin-sidebar.xml两个文件,到项目下的bin目录。 然后,我们用ant来编译整个项目,选择项目下的build/build.xml文件,运行,若是出现BUILD SUCCESSFUL则编译成功,不行就多来几遍。 下面建立项目builder,选择src/java/org

跟我一步一步开发自己的Openfire插件

扶醉桌前 提交于 2019-11-29 06:43:54
这篇是简单插件开发,下篇聊天记录插件。 开发环境: System:Windows WebBrowser:IE6+、Firefox3+ JavaEE Server:tomcat5.0.2.8、tomcat6 IDE:eclipse、MyEclipse 8 开发依赖库: Jdk1.6、jasper-compiler.jar、jasper-runtime.jar、openfire.jar、servlet.jar Email:hoojo_@126.com Blog: http://blog.csdn.net/IBM_hoojo http://hoojo.cnblogs.com/ 在开始之前,如果你不知道怎么使用openfire,安装openfire服务器,建议你看这篇文章: http://www.cnblogs.com/hoojo/archive/2012/05/17/2506769.html http://www.cnblogs.com/hoojo/archive/2012/05/13/2498151.html 一、准备工作 1、 下载相关jar包和openfire源码 Openfire源码下载: http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire_src_3_8_0

Openfire offline notification through PHP

白昼怎懂夜的黑 提交于 2019-11-29 02:15:14
I have installed Openfire 3.10.2 on Ubuntu 12.04 . Chat is working fine and for offline message management I have installed the CallbackOnOffline plugin. When the recipient is offline, a url is called. The plugin loads the url from the plugin.callback_on_offline.url property, adds 'to' and 'from' parameters and executes an asynchronous GET request. Sample Link . I checked what information I get from that and I got a "to" and "from", but I also need those along with the message for the push notifications. Important Part :- I want to customize CallbackOnOffline plugin of openfire and I want to

jvm支持的最大线程数

情到浓时终转凉″ 提交于 2019-11-28 22:24:25
最近想测试下Openfire下的最大并发数,需要开大量线程来模拟客户端。对于一个JVM实例到底能开多少个线程一直心存疑惑,所以打算实际测试下,简单google了把,找到影响线程数量的因素有下面几个: -Xms intial java heap size -Xmx maximum java heap size -Xss the stack size for each thread 系统限制 系统最大可开线程数 测试程序如下: Java代码 : import java.util.concurrent.atomic.AtomicInteger; public class TestThread extends Thread { private static final AtomicInteger count = new AtomicInteger(); public static void main(String[] args) { while (true) (new TestThread()).start(); } @Override public void run() { System.out.println(count.incrementAndGet()); while (true) try { Thread.sleep(Integer.MAX_VALUE); } catch

Smack “No Response From Server”. Not sure why am i getting this error

拥有回忆 提交于 2019-11-28 20:57:51
I have an openfire server setted up on my local machine. I am trying to connect this server, but getting "No response from server" error. Not sure why? I have spark client on the same machine that is getting connected to the server successfully. Can you please help me out to identify the problem? Below is the log details that might help 07-30 01:01:02.570: I/System.out(424): 01:01:02 AM SENT (1156489960): <stream:stream to="192.168.1.3" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0"> 07-30 01:01:02.593: I/System.out(424): 01:01:02 AM RCV (1156489960): <?xml

send push notification to ios for chat to offline user, openfire xmpp

懵懂的女人 提交于 2019-11-28 17:18:23
I have an ios chat application that uses openfire, what I need to do is send push notification when the message (1) can't be delivered for any reason, (2) app is in suspended state, i.e. can't generate a notification on its own. I have read most of the related questions/suggestions on this on stackoverflow and elsewhere and I have concluded few solutions to my problem. I am not an ios developer nor did I know anything about openfire or xmpp before a couple of days, so I am afraid my understanding of things may not be complete and my solutions might be flawed. Kindly confirm my understanding of

在Openfire源码中添加自己的插件

一个人想着一个人 提交于 2019-11-28 09:51:28
参考: http://redhacker.iteye.com/blog/1919329 Openfire源码的编译请查看另一篇文章: Ubuntu12.04(64bit)上部署编译运行Openfire+Spark环境 一、基于 Openfire 源码安装自定义插件 创建自己的插件路径 编写 plugin.xml,注意路径,是创建在插件的根目录下。否则即使编译出jar包,管控平台也不识别。 这里偷懒直接在其他插件中复制过来的。 <? xml version="1.0" encoding="UTF-8"?> <plugin> <!--插件JAVA文件路径--> <class> org.jivesoftware.example.plugin.ExamplePlugin </class> <!-- Plugin meta-data --> <name>Example Plugin </name> <description>This is an example plugin .</description> <author> Jive Software</author> <version>1.0</version> <date>07/01/2006</date> <url> http://www.igniterealtime.org/projects/openfire/plugins.jsp<