No Custom Operations If the MDF for your custom Auditing provider does Custom Operations If the MDF for your custom Auditing provider does

10-12 Developing Security Providers for Oracle WebLogic Server

10.5.2.2.1 No Custom Operations If the MDF for your custom Auditing provider does

not include any custom operations, follow these steps: 1. Create a new DOS shell. 2. Type the following command: java -DMDF=xmlfile -Dfiles=filesdir -DcreateStubs=true weblogic.management.commo.WebLogicMBeanMaker where the -DMDF flag indicates that the WebLogic MBeanMaker should translate the MDF into code, xmlFile is the MDF the XML MBean Description File and filesdir is the location where the WebLogic MBeanMaker will place the intermediate files for the MBean type. Whenever xmlfile is provided, a new set of output files is generated. Each time you use the -DcreateStubs=true flag, it overwrites any existing MBean implementation file. 3. Proceed to Section 10.5.2.3, Use the WebLogic MBeanMaker to Create the MBean JAR File MJF.

10.5.2.2.2 Custom Operations If the MDF for your custom Auditing provider does

include custom operations, consider the following: Are you creating an MBean type for the first time? If so, follow these steps: 1. Create a new DOS shell. 2. Type the following command: java -DMDF=xmlfile -Dfiles=filesdir -DcreateStubs=true weblogic.management.commo.WebLogicMBeanMaker where the -DMDF flag indicates that the WebLogic MBeanMaker should translate the MDF into code, xmlFile is the MDF the XML MBean Description File and filesdir is the location where the WebLogic MBeanMaker will place the intermediate files for the MBean type. Whenever xmlfile is provided, a new set of output files is generated. Each time you use the -DcreateStubs=true flag, it overwrites any existing MBean implementation file. Note: As of version 9.0 of WebLogic Server, you can also provide a directory that contains multiple MDFs by using the -DMDFDIR MDF directory name option. In prior versions of WebLogic Server, the WebLogic MBeanMaker processed only one MDF at a time. Therefore, you had to repeat this process if you had multiple MDFs in other words, multiple Auditing providers. Note: As of version 9.0 of WebLogic Server, you can also provide a directory that contains multiple MDFs by using the -DMDFDIR MDF directory name option. In prior versions of WebLogic Server, the WebLogic MBeanMaker processed only one MDF at a time. Therefore, you had to repeat this process if you had multiple MDFs in other words, multiple Auditing providers. Auditing Providers 10-13 3. For any custom operations in your MDF, implement the methods using the method stubs. 4. Save the file. 5. Proceed to Section 10.5.2.3, Use the WebLogic MBeanMaker to Create the MBean JAR File MJF. Are you updating an existing MBean type? If so, follow these steps: 1. Copy your existing MBean implementation file to a temporary directory so that your current method implementations are not overwritten by the WebLogic MBeanMaker. 2. Create a new DOS shell. 3. Type the following command: java -DMDF=xmlfile -Dfiles=filesdir -DcreateStubs=true weblogic.management.commo.WebLogicMBeanMaker where the -DMDF flag indicates that the WebLogic MBeanMaker should translate the MDF into code, xmlFile is the MDF the XML MBean Description File and filesdir is the location where the WebLogic MBeanMaker will place the intermediate files for the MBean type. Whenever xmlfile is provided, a new set of output files is generated. Each time you use the -DcreateStubs=true flag, it overwrites any existing MBean implementation file. 4. If you modified the MDF to include any custom operations that were not in the original MDF, implement the methods using the method stubs. 5. Save the version of the MBean implementation file that is complete that is, has all methods implemented. 6. Copy this MBean implementation file into the directory where the WebLogic MBeanMaker placed the intermediate files for the MBean type. You specified this as filesdir in step 3. You will be overriding the MBean implementation file generated by the WebLogic MBeanMaker as a result of step 3. 7. Proceed to Section 10.5.2.3, Use the WebLogic MBeanMaker to Create the MBean JAR File MJF.

10.5.2.2.3 About the Generated MBean Interface File