Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
create LogFilter, XMLEntity Cache, and XML Registry earlier in the fl…
…ow. Server/Log depends on LogFilter. Fixes #871
  • Loading branch information
ddsharpe committed Apr 15, 2021
commit ea619694103de616a3dd5b244421f78986dc1bac
15 changes: 11 additions & 4 deletions core/src/main/python/wlsdeploy/tool/create/domain_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ def __extend_domain_with_select_template(self, domain_home):

resources_dict = self.model.get_model_resources()
jdbc_names = self.topology_helper.create_placeholder_jdbc_resources(resources_dict)
self.__create_mbeans_used_by_topology_mbeans(topology_folder_list)
self.__create_machines_clusters_and_servers(delete_now=False)

server_groups_to_target = self._domain_typedef.get_server_groups_to_target()
Expand Down Expand Up @@ -622,7 +623,8 @@ def __apply_base_domain_config(self, topology_folder_list):

topology_folder_list.remove(SECURITY_CONFIGURATION)

self.__create_mbeans_used_by_topology_mbeans(location, topology_folder_list)
self.__create_reliable_delivery_policy(location)
topology_folder_list.remove(WS_RELIABLE_DELIVERY_POLICY)

# these deletions were intentionally skipped when these elements are first created.
self.topology_helper.remove_deleted_clusters_and_servers(location, self._topology)
Expand Down Expand Up @@ -663,16 +665,21 @@ def __set_core_domain_params(self):
self.logger.exiting(class_name=self.__class_name, method_name=_method_name)
return

def __create_mbeans_used_by_topology_mbeans(self, location, topology_folder_list):
def __create_mbeans_used_by_topology_mbeans(self, topology_folder_list):
"""
Create the entities that are referenced by domain, machine, server and server template attributes.
:param location: current location
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this javadoc is out of date.

:raises: CreateException: if an error occurs
"""
_method_name = '__create_mbeans_used_by_topology_mbeans'
location = LocationContext()
domain_name_token = self.aliases.get_name_token(location)
location.add_name_token(domain_name_token, self._domain_name)

self.logger.entering(str(location), class_name=self.__class_name, method_name=_method_name)
self.__create_log_filters(location)
topology_folder_list.remove(LOG_FILTER)
self.__create_reliable_delivery_policy(location)
topology_folder_list.remove(WS_RELIABLE_DELIVERY_POLICY)

self.__create_xml_entity_cache(location)
topology_folder_list.remove(XML_ENTITY_CACHE)
self.__create_xml_registry(location)
Expand Down