0

jmx-console に MBean を追加する必要があります。これは、SNMP get 要求を取得し、それらに応答するためのものです。通常の方法で MBean を作成しましたが、この MBean を Slee システムに追加する方法を説明している n00b 互換の資料はどこにも見つかりません。

SIPRec の例では、次のように追加された MBean が記述されています。

MBeanServer mbs = SleeContainer.lookupFromJndi().getMBeanServer();
ObjectName on = null;
try {
    on = new ObjectName(PREFIX + this.name);

if (mbs.getObjectInstance(on) != null) {
    mbs.unregisterMBean(on);
}
mbs.registerMBean(this, on);


} catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}

しかし、Sbb にSleeContainerクラスをインポートさせることができません。これをプロジェクトにインポートする依存関係/ステップは何ですか?

この MBean を SLEE に追加し、snmp アダプターの attributes.xml を使用して SNMP get 要求をルーティングするために、どこを見ればよいか教えてください。

ありがとう。

4

1 に答える 1

0

友人に助けてもらったところ、SIP 11 RA をプロジェクトに追加するとこのクラスが追加されると指摘されました。ここでのコツは、v 2.7.0.FINAL として追加しないことです。

クラスを正しくインポートする sip 11 バージョンは v 2.6.0.FINALです。

プラグインを使用して依存関係を追加している場合は、依存関係を追加するときにポップアップする Eclipse ダイアログ ボックスで変更するだけです。

これは、sbb ディレクトリにある pom.xml の依存関係リストです。

<dependencies>
    <dependency>
      <groupId>javax.slee</groupId>
      <artifactId>jain-slee</artifactId>
    </dependency>
    <dependency>
      <groupId>org.mobicents.servers.jainslee.api</groupId>
      <artifactId>jain-slee-11-ext</artifactId>
    </dependency>
    <dependency>
      <groupId>org.mobicents.resources</groupId>
      <artifactId>http-servlet-ratype</artifactId>
      <version>2.4.0.FINAL</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.mobicents.resources</groupId>
      <artifactId>sip11-ratype</artifactId>
      <version>2.6.0.FINAL</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
于 2015-12-04T06:01:42.613 に答える