openfire

openfire插件开发环境搭建

社会主义新天地 提交于 2020-01-02 03:34:44
openfire的搭建与运行 1 Check Source svn http://svn.igniterealtime.org/svn/repos/openfire/trunk check整个openfire 项目 check完成后,首先右键项目 ---》 Team -- 》 断开连接 --》勾选'并且从文件中删除svn信息',然后删除整个项目,不要勾选那个'删除磁盘上内容' 然后再导入原项目 或者下载整个openfire 源代码,解压 新建一个Java Project 项目,命名为openfire,勾选下面Contents 的 'create project from existing source' 浏览到解压的'openfire_src',点击完成。 如果报找不到包的错,请按如下添加jar包 2 添加jar包 右键项目 --> BuildPath -->Configure BuildPath-->library --add jars 把openfire下所有的lib 及其子目录中的jar包都添加到进来 把插件中的lib目录下的jar 包添加进来 3 配置运行参数 Run::Open Run Dialog... menu. 或者 Run -- Run configuration 选择Java Application 右键 新建一个Java application

部署Openfire源码

与世无争的帅哥 提交于 2020-01-02 03:34:20
1. 获取Openfire 3.5.1源代码 官方主页: http://www.igniterealtime.org/ (1)从官方网站上直接下载官方发布版本的源代码Openfire_3_5_1.zip源代码压缩包; 但是,2008年4月24官方发布的源代码中使用了import testng.xxx语句,所以额外需要下载并导入testng-5.8-jdk15.jar类库。否则会提示错误信息。 (2)也从官方网站上可以下载最新版(nightly builds),如源代码压缩包openfire_src_2008-05-31.zip (3)使用Eclipse的版本控制插件SVN获取(检出为),具体步骤为: * 在eclipse中,选择Windows->Open Perspective->Other * 在弹出的窗口中,选择SVN Repository Exploring, 然后点OK * 在SVN Repositories 视图中单击右键,选择 New->Repository Location... *在弹出的New Repository Location对话框的输入URL文本框中输入: http://svn.igniterealtime.org/svn/repos/openfire/trunk 然后,单击Finish. 你将会看到页面中出现URL地址 *

eclipse下编译openfire3.9.1源码

让人想犯罪 __ 提交于 2020-01-02 03:33:10
[一]、下载源码 打开网址: http://www.igniterealtime.org/downloads/source.jsp 选择目前最新版本 openfire_src_3_9_1.zip 下载。 [二]、配置Eclipse项目 1、把下载好的 openfire_src_3_9_1.zip 压缩包直接解压到Eclipse的工作目录(以 D:\openfire\ 如下图为例) 2、把 openfire_src\build\eclipse 目录下的文件夹setting、文件classpth、文件project全部copy到 openfire_src\ 目录下,然后把openfire_src\classpth、openfire_src\project修改成Eclipse工程配置文件格式:openfire_src \.classpath 、openfire_src \.project (如果无法修改文件名,copy任一现有项目的文件后修改其内容亦可)。 3、然后打开Eclipse,选择 File –> Import… –> Existing Projects into Workspace 选择D:\openfire 导入即可: 导入后目录结构如下: 3、项目导入后编译错误的解决 目录:/openfire/src/plugins/clustering/src/java

OpenFire源码学习之三:在Eclipse中构建源码

雨燕双飞 提交于 2020-01-02 03:32:46
源码搭建 下载地址: 地址: http://www.igniterealtime.org/downloads/source.jsp 环境准备 第1步: 在官网上在下最新源码,这里是3.8.1。解压后得到如下图所示: 第2 步: 在IDE工具上新建一个java普通工程命名openfire 第3步: 将解压后的openfire_src目录的下的所有文件源码复制到此项目下,例图所示 这里稍等片刻后,看到如下效果图: 上图中在工程上出现了错误信息报告,不用着急。原因是刚导入的项目还有些jar包没有加进来。继续往下看吧! 第4步: 右键点击项目选择Properties,在"Java Build Path"的"Libraries"中添加build/lib下所有的jar包。如下图所示: 注意:这个lib包下还有三个3包,全都加进来吧: 第5步: 加载完这些jar后,不要关闭当前窗口。继续点击Source选项卡 第6步: 点击Add Folder...如图选择: 为了方便编辑,把插件的源代码显示出来,在Properties文件夹中选择Source,Add Folders,在Build Path配置中把 /openfire_src/src/i18n 、 /openfire_src/src/resources/jar 、 /openfire_src/build/lib/dist 文件夹添加到

How to add more attributes to Openfire MySQL database?

走远了吗. 提交于 2020-01-01 15:03:27
问题 I setup a Openfire server with external MySQL database using the openfire_mysql.sql file from the openfire installation directory to populate the database, the connection and everything basic seems to be ok. However I need to add another attribute of a User instead of just "name", "email", I need to add "phone" and a long text field for users to save some notes. Actually using the Smack API there are already enough attributes that can be stored in a User's data based on the API doc: http:/

Unable to get presence of roster by using smack, openfire

天大地大妈咪最大 提交于 2020-01-01 09:57:14
问题 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

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

大憨熊 提交于 2020-01-01 08:54:10
问题 This question already has answers here : Closed 6 years ago . 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

How to use smack with Openfire

给你一囗甜甜゛ 提交于 2020-01-01 05:19:08
问题 Hi I am planning to develop a chat client which can connect to gtalk facebook etc...I have decided to use the smack API along with openfire.. But I need little guidance as to how to use it with openfire server.. And does the openfire provide a basic UI like log in box chat window etc... I need to know how to plug or use smack with openfire Thanks:) 回答1: I have decided to use the smack API along with openfire.. But I need little guidance as to how to use it with openfire server.. What about

XMPPFramework TLS/SSL connection with Openfire

不羁岁月 提交于 2019-12-30 11:31:33
问题 I'm trying to set up a secure connection TLS/SSL beetween my client apps and an OPENFIRE server. I'm using the XMPPFramework for iOS, how can i do that? I have already tried to change the openfire security settings to made required a secured connection, but in this way, my app won't connect to server. I think that i have to set something in the xmppframework but i can't find any instruction. My connection code : - (void)setupStream { NSAssert(xmppStream == nil, @"Method setupStream invoked

SOCKS5 connection times out (GCDAsyncSocket). (OpenFire, XEP-0065 and iOS XMPPFramework)

落花浮王杯 提交于 2019-12-30 05:22:10
问题 Problem : I am attempting a TURNSocket (XEP-0065 - SOCKS5) using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and receive files. However, in most scenarios, the receiver returns no response. I currently suspect the problem is to do with the OpenFire proxy server, which times out! This is set up on the local network, and I have edited the hosts file to point to it. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone