LiveTribe SLP モジュール (http://livetribe.codehaus.org/LiveTribe-SLP) を使用して、アプリケーションに SLP サービスを提供しようとしています。ポートを 427 から別のものに完全に変更したい。ドキュメントはまばらで、さらに紛らわしいのは、FAQ で、私が探しているものを正確に示す例へのリンクを主張していることです。残念ながら、そうではありません(私が何かを見落としていない限り)。誰もこれを行う方法を知っていますか?
2 に答える
2
ここにクライアントとサーバーの例があります:
http://livetribe.org/SLP-Examples-JMX
(リンク切れ)
サーバー側の重要な行は次のとおりです。
// Allow this code to be run by non-root users on Linux/Unix
Settings settings = new MapSettings();
settings.put(Keys.PORT_KEY, 4427);
// Create the SLP ServiceAgent that advertises the JMX service
ServiceAgent serviceAgent = SLP.newServiceAgent(settings);
そしてクライアント側では:
// Allow this code to be run by non-root users on Linux/Unix
Settings settings = new MapSettings();
settings.put(Keys.PORT_KEY, 4427);
// Create the SLP UserAgentClient that discovers services
UserAgentClient userAgentClient = SLP.newUserAgentClient(settings);
于 2012-04-04T16:42:27.337 に答える
1
悪いドキュメントについて申し訳ありません。サイトのL&FをTwitter Bootstrapを使用するように変更して以来、問題が発生しています。
これで、ページが完全にレンダリングされるはずです。http:
//livetribe.org/SLP-Examples-JMX
リンクが壊れています。
于 2012-04-05T14:37:19.070 に答える