如何在 JBoss 7 中加载 APR 连接器(本机) [英] How to load APR Connector (Native) in JBoss 7
问题描述
我想使用 Atmosphere XMPP,但我需要加载本机连接器 APR.我对 JBoss 7 还不是很熟悉,所以我想知道是否有人知道如何做到这一点?WINdows x64 或 Linux x64 环境.没关系.谢谢
这里假设 Linux x64.我使用的是 Ubuntu 11.04 x64.
- 下载 JBoss7 发行版并将其解压缩到合适的目录(从这里我假设您在/home/myname/tools/jboss701/"文件夹中.
使用/jboss701/bin/standalone.sh 启动它并验证它是否正常启动(检查 localhost:8080 url).暂时关闭 jboss.
从这里下载本地库http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html.我已经下载了这个 jboss-native-2.0.9-linux2-x64-ssl.tar.gz
将其解压到/home/myname/tools/jboss701/"文件夹.您应该在/home/myname/tools/jboss701/bin"文件夹中看到存档的内容.另外,请确认您在/home/myname/tools/jboss701/bin"下有native"文件夹
重要提示:不幸的是,它不是开箱即用的.您必须进行以下更改:添加
<块引用>
JAVA_OPTS="$JAVA_OPTS-Djava.library.path=/home/myname/tools/jboss701/bin/native:$PATH"
字符串到您的standalone.conf"文件中.
使用standalone.sh"脚本启动 JBoss.验证 JBoss 启动期间控制台中是否有以下行:'org.apache.coyote.http11.Http11AprProtocol'.如果您看到org.apache.coyote.http11.Http11AprProtocol"而不是org.apache.coyote.http11.Http11Protocol",那么一切都按预期工作.
I want to use Atmosphere XMPP but i need to load native connector APR. I am not very familiar as of yet with JBoss 7 so i was wondering if anyone knows how to do this? WIndows x64 or Linux x64 environment. Doesn't matter. Thanks
Assuming Linux x64 here. I am using Ubuntu 11.04 x64.
- Download JBoss7 distribution and unzip it to a suitable directory ( from here I am assuming that you have it in your '/home/myname/tools/jboss701/' folder.
Start it using /jboss701/bin/standalone.sh and verify that it started properly ( check localhost:8080 url). Close the jboss for now.
Download the native libraries from here http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-9.html . I have downloaded this one jboss-native-2.0.9-linux2-x64-ssl.tar.gz
Unpack it to the '/home/myname/tools/jboss701/' folder. You should see the contents of the archive in '/home/myname/tools/jboss701/bin' folder. Also, verify that you have 'native' folder under the '/home/myname/tools/jboss701/bin'
IMPORTANT: unfortunately, it doesn't work out of the box. You must make the following change: add the
JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/home/myname/tools/jboss701/bin/native:$PATH"
string to your 'standalone.conf' file.
Start JBoss with the 'standalone.sh' script. Verify that you have the following line in the console during the JBoss startup: 'org.apache.coyote.http11.Http11AprProtocol'. If you see 'org.apache.coyote.http11.Http11AprProtocol' instead of 'org.apache.coyote.http11.Http11Protocol' then everything is working as expected.
这篇关于如何在 JBoss 7 中加载 APR 连接器(本机)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!