I am trying to develop a plug-in for OEM 12c. I have successfully hosted the DemoHost sample plugin provided with the EDK and also able to host a sample plugin from the DemoHost code. Now I want to show Logs of my Sample plugin in existing EM UI. I saw the menu Logs in Enterprise>Monitoring in EM Grid control and in that an option for selecting the targets too. But I couldn't find the sample plugin or even DemoHost sample listed in the Select targets - Dialogue.
Now my question is:
1) Is it possible to add the Sample plugin created also to be listed when selecting the targets from Enterprise>Monitoring>Logs? If yes, how can I do that.
2) If the above thing can done, then is it possible to add a custom ui(instead of table) when selecting the Sample plugin.
Please follow the below steps to get the Logs/View Log Messages menu item enabled for your target:
1) Create the log viewer registration xml file for your target type. The DTD for this xml file is oracle/sysman/emSDK/logmgmt/registration/LogMgmtTargetTypeRegistration.xsd
2) Make sure the created log viewer registration xml file is accessible from $PLUGIN_ROOT/metadata/logmgmt/ folder.
3) Install your Plugin.
A sample registration xml file content is,
<LogMgmtUITargetConfig TARGET_TYPE="%your targe type%">
OOB Log Viewer supports the FMW & FA targets which includes WebLogic J2EE Server, J2EE Applications, Custom J2EE Applications, HTTP Server, etc.. If your target is in this list, then the above registration is sufficient to get the logs for your target.
But if your target is not part of this list, then a custom log viewer implementation is required which should extend the oracle/sysman/emSDK/logmgmt/LogViewer.java and include this in the above registration xml.
I couldn't get this working yet. I have created a folder named "logmgmt" inside metadata folder and added an xml file "LogMgmtsamplepluginRegistration". Now when i create plugin using command empdk create_plugin. It creates an error report which contains
+"Could not find the corresponding xsd to validate the Metadata serviceException while trying to write to C:\Users\TestUser\AppData\Local\Temp\logMgmt\partner\LogMgmtTargetTypeRegistration.xsd_partner: The meta data registration service Log Management Target Type Registration is not published to the plug-in Sample.Plugin.Demo"+
I think I am missing something else. Could you please help to identify the issue.
The Log Viewer functionality will not be available for partner plugins or external plugins which are installed on top of EM 220.127.116.11 (PS1). This functionality is recently included and will be available in EM 18.104.22.168 (PS2). Hope this clarifies.
Thank you for the reply. I have been using the version 22.214.171.124.0. Will check this in the PS2 and let you know.
Meantime, was the plugin validation error I posted earlier is because of older version or am I missing something. Could you please clarify on that point too.
I am trying to figure out how to extend oracle/sysman/emSDK/logmgmt/LogViewer.java in our implementation. Could you please elaborate how to import this or where can I find this class. In my Flex implementation I tried importing oracle.sysman.emx but couldn't find emSDK or logmgmnt. Do I need to install anything else? Please help.