mbeans

    0熱度

    1回答

    我必須編寫一個獨立的Java應用程序,監視CQ5,部署在Weblogic內部(尤其是內存使用情況)。 我能夠使用下面的類(在文檔中找到)在weblogic中連接到域運行時服務器。 現在,我想知道我需要監視內存低點的MBean,所以只要某個閾值被擊中,我就可以觸發一個事件。 你們能給我一些見解嗎?這是一個純粹的JMX/Java問題,與CQ無關。 我想以編程方式重新創建Jconsole已經做了什麼。但

    2熱度

    1回答

    我正在嘗試爲Tomcat服務器監控註冊Mbeans。 我正在使用jdk 1.5。 對於HeapMemoryUsage.used參數,我收到以下錯誤: "The observed attribute must be accessible in the observed object." jmx.monitor.error.attribute. 如果我在JDK運行Tomcat服務器1.6版本,它

    0熱度

    1回答

    訪問JBoss 5.1.0.GA的mebeans時出現以下錯誤。 Exception in thread "main" javax.management.InstanceNotFoundException: jboss.system:type=ServerInfo at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean

    1熱度

    1回答

    我認爲聚合JMX聚合服務器已連接的遠程MBeanServers會很有用,但我發現將MBeanServerConnection註冊爲MBeanServer中的MBean會引發不符合MBean的異常。 當然有人必須這樣做之前,因此我想知道是否有一個標準的方式來完成這一點。當然,我可以爲MBeanServerConnection創建所需的動態MBean或一些包裝器,但是 - 正如我所說的 - 當然,這肯

    2熱度

    3回答

    @ManagedResource @Component public class MyBean { Map<String, Something> map = new HashMap<String, Something>(); @ManagedAttribute public Collection<Something> getFoo() { retur

    0熱度

    1回答

    我知道我可以在SimpleData中具有SimpleType.INTEGER,SimpleType.STRING等SimpleType值。但我想知道如何將CompositeData的另一個實例複製到CompositeData中。 E.摹: CompositeType type = new CompositeType("My Type", "My Type", new String[]{"item1

    1熱度

    1回答

    當從MBean的結合對象JNDI(遺留代碼到JBoss 7.1)我得到以下異常: Caused by: java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only at org.jboss.as.naming.WritableServiceBasedNamingStore.require

    0熱度

    1回答

    是否可以動態地添加和註冊新屬性的MBean 如: <server> <mbean code="org.jboss.example.MyMbean" name="jboss:service=myMbean,name=MyMbeanExample"> <attribute name="attribute1">value1</attribute> <attribute name="attri

    1熱度

    2回答

    我試圖通過JMX公開Apache Camels MBean,以便我可以在WebSphere Application Server(7.0)中管理已部署的Camel實例。 實際上,我不知道這是否與Camel有關,但更多的是如何從WebSphere公開MBeans的問題。 連接到JConsole也很好,並列出了Camel MBean。但是,當試圖調用任何操作時,我的訪問被拒絕。 The user UN

    1熱度

    1回答

    我有一個關於mbeans的問題。我已經創建了一個簡單的mbean,並且我已經在運行的默認mBeanServer(通過eclipse或java -jar mbean.jar)上註冊它,並且在同一個過程中,如果我試圖通過簡單的查詢註冊mbean: for (ObjectInstance instance : mbs.queryMBeans(ObjectNameMbean, null)) {