Hi
This was the basis of my earlier question about wlshell support for
WL9.
I never really worked out a proper solution and others it appears
have reverted to direct java queries (as you describe).
Paco - any thoughts/comments?
JC
--- In wlshell@yahoogroups.com, "neowu0326" <neowu0326@...> wrote:
>
> Hi, All
> It seems the structure of Weblogic9 MBeans change a lot.
> I can't access JVMRuntime anymore. (with latest wlshell)
>
> say. Now I have to use:
> "get runtime.com.bea:/ServerRuntime/$Server/State"
> to get state rather than "get /ServerRuntime/$Server/State"
>
> and there is no JVMRuntime under first level as well as
ServerRuntime
> I can't use "get /JVMRuntime/$Server/HeapFreeCurrent"
> and neither "get /ServerRuntime/$Server/JVMRuntime/HeapFreeCurrent"
>
> Is there any way to support it in wlshell?
>
> BTW: I can get this by Java Code:
>
> ObjectName runtimeService = new
> ObjectName
("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanserv
ers.domainruntime.DomainRuntimeServiceMBean");
> //MBeanInfo info = conn.getMBeanInfo(runtimeService);
> ObjectName[] serverRuntimes = (ObjectName[])
> conn.getAttribute(runtimeService, "ServerRuntimes");
> ObjectName jvmRuntime = (ObjectName)
> conn.getAttribute(serverRuntime, "JVMRuntime");
> Long heapFree = (Long) conn.getAttribute(jvmRuntime,
> "HeapFreeCurrent");
> }
>
> Thanks!
> Neo
>