code: @Override
      public String[] getjavaVMs() {
          final String methodName = "getjavaVMs";
          final boolean trace = TraceComponent.isAnyTracingEnabled();
          if (trace && tc.isEntryEnabled())
              Tr.entry(tc, methodName, this);
  
          ArrayList<String> jvmArrayList = new ArrayList<String>();
          ObjectName obnToFind = null;//WebSphere:name=JVM,J2EEServer=com.ibm.ws.jca.jdbc.mbean.fat,j2eeType=JVM
          final String obnStr = "WebSphere:j2eeType=JVM,*";
          final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
          try {
              obnToFind = new ObjectName(obnStr);
          } catch (MalformedObjectNameException e) {
              //Should never happen because we are building the ObjectName without any user input
              if (trace && tc.isDebugEnabled())
                  Tr.debug(tc, "Unable to create ObjectName with the string: " + obnStr, e);
          }
          Set<ObjectInstance> matchingMbeanList = mbs.queryMBeans(obnToFind, null);
          if (matchingMbeanList.size() == 0) {
              if (trace && tc.isDebugEnabled())
                  Tr.debug(tc, methodName + ": matchingMbeanList.size(): " + matchingMbeanList.size()
                               + ", We didn't find any Mbean matching: " + obnStr);
              if (trace && tc.isEntryEnabled())
                  Tr.exit(tc, methodName, this);
              return null;
          } else {
              for (ObjectInstance bean : matchingMbeanList) {
                  if (trace && tc.isDebugEnabled())
                      Tr.debug(tc, "**  Found a matching MBean: " + bean.getObjectName().toString());
                  jvmArrayList.add(bean.getObjectName().toString());
              }
          }
  
          if (trace && tc.isEntryEnabled())
              Tr.exit(tc, methodName, this);
  
          return jvmArrayList.toArray(new String[jvmArrayList.size()]);
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.websphere.jca.mbean.ResourceAdapterModuleMBean#getjavaVMs()