WebLogic 12.1 기준이다.
기본적인 access는 Admin 서버와 Managed 서버 간에 차이가 있다.
1. Admin 서버인 경우
- DomainRuntimeServiceMBean
- ServerRuntimes를 통해 도메인 내 전 서버의 정보를 access
ObjectName service = new ObjectName(com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean); ObjectName[] serverRuntimes = (ObjectName[]) connection.getAttribute(service, "ServerRuntimes");
2. Managed 서버
- RuntimeServiceMBean
- ServerRuntime를 통해 자기 자신의 정보를 access
ObjectName service = new ObjectName(com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean); ObjectName serverRuntime = (ObjectName)connection.getAttribute(service, "ServerRuntime");
JDBCDataSourceRuntimeMBean 중 다음 속성의 경우 RemoteException가 발생하는 경우가 있다.
- getDatabaseProductName
- getDatabaseProductVersion
- getDriverName
- getDriverVersion
RemoteException - Thrown when the operation is unable to obtain the attribute from the JDBC meta data.