openfire

centos 安装openfire

非 Y 不嫁゛ 提交于 2019-12-04 09:07:34
##centos 安装openfire## ###第一步### 准备好openfire包: openfire-3.9.1-1.i386.rpm 这个包已经包含了JRE <!--lang:shell--> rpm -ivh openfire-3.9.1-1.i386.rpm 安装完可以用下面的命令启动服务 /opt/openfire/bin/openfire.sh 运行后会出现下面的这个错误: opt/openfire/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 解决方案: 这是由于系统环境引起的,系统是64位的,包里的文件是32位的 <!--lang:shell--> yum install libldb.i686 重启启动openfire,正常了 <!--lang:shell--> /etc/init.d/openfire restart|status|start|stop 注意:这里如果你是远程通过SSH操作,可能遇到一个问题,就是当你离开界面后服务就关闭了。如果你看过Linux的入门书可能就会了解其中的关于shell的概念。可是由于很多人像我一样一知半解,所以出现这种问题。解决的办法是要将openfire.sh提交到后台去运行,命令如下 setsid /opt

Unable to get presence of roster by using smack, openfire

梦想与她 提交于 2019-12-04 06:51:51
I am new to smack API. I am trying to develop a chat application where I was trying for setting and getting the presence. When I change the presence of a user, its working perfectly fine and it is getting reflected in the Openfire Server. But when I tries to get the Presence of a user, I am always getting the status as 'unavailable' even if his presence in openfire is showing as 'available'. I am using the following code to set the status. Presence presence = new Presence(Presence.Type.available); presence.setStatus("Online, Programmatically!"); presence.setPriority(24); presence.setMode

Openfire Sending Push notification when user is offline

谁都会走 提交于 2019-12-04 05:56:01
I am using openfire 3.9.3 server and Android and IOS as client. I want to send messages via push notification to both clients when recipient user is offline. And when push is sent sender should get message receipt. for this, i tried : making interceptor: In this, i didn't get any exception or message failure for which i can track. modify openfire code also. But i don't think it is a good solution. I just want to know that, is there any plugin for it or modifying the openfire code is the last solution for it? Ok I got the answer after searching and reading docs.. Openfire provides custom plugin

Smack on Android, getting error code=“404” remote-server-not-found while sending packets/message between two users via local Openfire server

[亡魂溺海] 提交于 2019-12-04 04:10:15
问题 I was glad to implement smack on android via local Openfire server where it connects to Gmail server-host and it worked like charm. The tutorial found here But I'm getting an error (pasted below) when I'm trying to connect two users via android emulators with a local Openfire server installed. 03-23 16:24:01.392: DEBUG/SMACK(233): 04:24:01 PM SENT (1155246128): <message id="t0tgA-5" to="justestingchat2" type="chat"><body>hi</body></message> 03-23 16:24:07.032: DEBUG/SMACK(233): 04:24:07 PM

Does openfire support User / contact blocking?

点点圈 提交于 2019-12-04 04:00:55
问题 Does openfire support User / contact blocking?? I am creating a XMPP based chat. Now i want my users to have a facility by which they can actively block a certain person from chatting with them. I know XMPP have defined an extension for communications blocking (defined in Privacy Lists[XEP-0016]), as well as a stripped-down interface to privacy lists (defined in Simple Communications Blocking [XEP-0191]). But when implementing these extension a server request of blocking the user gives me a

how to get user online or offline in asmack, android [duplicate]

筅森魡賤 提交于 2019-12-04 02:48:50
Possible Duplicate: XMPP aSmack - How can I get the current user state (offline/online/away/etc.)? I am developing chat app on Android base on asmack lib. I display all the user on the ListView but I use an image to show online/offline user. But It return offline image only, even the user is online, here is my code @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.buddies); Controller.getInstance().roster = Controller.getInstance().connection.getRoster(); // ArrayList<Buddy> buddies = new ArrayList<Buddy>(); Collection

send and receiving message using smack API

為{幸葍}努か 提交于 2019-12-04 00:36:10
问题 I have setup my open fire(jabber server) on local machine with two user testuser1 and testuser2 .using Spark client both users perform chat without any issue,it's nice. openfire IP -192.168.1.65 I want to use smack API(3.3.0) for send and receiving message. i have write sender side code to send message(with testuser1) and tested with Spark client(with testuser2) message received on testuser2 side,but when i try with java code to receive sender message ,i am not able to receive those publish

item-not-found(404) when trying to get a node using Smackx pubsub

删除回忆录丶 提交于 2019-12-03 20:45:26
I'm trying to use the latest Smackx trunk to get and then subscribe to a pubsub node. However, openfire just sends me a back an error: item not found (404). I am instantiating the java objects from ColdFusion, so my code snippets might look funny but maybe someone will be able to tell me what I've forgotten. Here's how I create the node: ftype = createObject("java", "org.jivesoftware.smackx.pubsub.FormType"); cform = createObject("java", "org.jivesoftware.smackx.pubsub.ConfigureForm").init(ftype.submit); cform.setPersistentItems(true); cform.setDeliverPayloads(true); caccess = createObject(

基于openfire+smack的Android、Web、PC开发(一)

别说谁变了你拦得住时间么 提交于 2019-12-03 20:33:55
前言 Java领域的即时通信的解决方案可以考虑openfire+spark+smack。当然也有其他的选择。 Openfire是基于Jabber协议(XMPP)实现的即时通信服务器端版本,目前建议使用3.8.1版本,这个版本是当前最新的版本,而且网上可以找到下载的源代码。 即时通信客户端可使用spark2.6.3,这个版本是目前最新的release版本,经过测试发现上一版本在视频支持,msn网关支持上可能有问题,所以选择openfire3.8.1+spark2.6.3是最合适的选择。 Smack是即时通信客户端编程库,目前我已测通通过jsp使用smack的API向openfire注册用户发送消息,并且可以通过监听器获得此用户的应答消息。 通过smack向msn用户和QQ用户,gtalk用户发送消息应该也可以实现,关于向gtalk用户发送消息的例子较多。这个留待以后研究。至少目前可以通过程序向spark发消息了。对于局域网内部应用足以解决系统与用户交互的问题,甚至可以做自动应答机器人。 Spark支持聊天,语音,视频,会议,文件收发,截屏,连接msn等功能。 同时在Android移动端和Web端也有相应的编程库支持,在后面的章节会为大家逐步更新介绍,接下来我们首先要对几个重点的技术环节做些必要的讲解。 1.什么是XMPP XMPP(Extensible Messaging and

OPENFIRE 4.0.2最新版安装记录

感情迁移 提交于 2019-12-03 15:36:35
openfire更新也算很快了,已经到4.0.2,目前生产版本是3.9.3,二次开发后,优化很大,且运行稳定。但技术习惯一直保持版本跟踪,今天试安装了一下,遇到一些问题,记录。 1,建库表: CREATE DATABASE of4d DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; --# 导入 openfire_mysql.sql #-- -- CREATE USER 'of4'@'%' IDENTIFIED BY '123456'; -- GRANT ALL ON of4d.* TO 'of4'@'%'; #openfire.xml# jdbc:mysql://mysql-server:3306/db?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=utf8 2,debug运行的时候,无法登陆: 此乃openfire的一个bug,修改: LockOutManager->getUserLockOut(),lockOutCache.put(username, flag);此时flag有可能为null,是无法存储到cache的,需要添加判断,修改后,以admin用户进入系统。, 3,创建用户test1,test2,test3 4,用spark登陆