|
41 | 41 | from wlsdeploy.aliases.model_constants import DRIVER_PARAMS_TRUSTSTORETYPE_PROPERTY
|
42 | 42 | from wlsdeploy.aliases.model_constants import DRIVER_PARAMS_TRUSTSTORE_PROPERTY
|
43 | 43 | from wlsdeploy.aliases.model_constants import DRIVER_PARAMS_USER_PROPERTY
|
| 44 | +from wlsdeploy.aliases.model_constants import ENABLE_JMS_DB_PERSISTENCE |
| 45 | +from wlsdeploy.aliases.model_constants import ENABLE_JTALOG_DB_PERSISTENCE |
44 | 46 | from wlsdeploy.aliases.model_constants import FRONTEND_HOST
|
45 | 47 | from wlsdeploy.aliases.model_constants import JDBC_DRIVER_PARAMS_PROPERTIES
|
46 | 48 | from wlsdeploy.aliases.model_constants import JDBC_SYSTEM_RESOURCE
|
|
78 | 80 | from wlsdeploy.aliases.model_constants import WEB_SERVICE_SECURITY
|
79 | 81 | from wlsdeploy.aliases.model_constants import XML_ENTITY_CACHE
|
80 | 82 | from wlsdeploy.aliases.model_constants import XML_REGISTRY
|
| 83 | +from wlsdeploy.aliases.validation_codes import ValidationCodes |
81 | 84 | from wlsdeploy.exception import exception_helper
|
82 | 85 | from wlsdeploy.exception.expection_types import ExceptionType
|
83 | 86 | from wlsdeploy.tool.create import atp_helper
|
@@ -618,6 +621,10 @@ def __extend_domain_with_select_template(self, domain_home):
|
618 | 621 |
|
619 | 622 | self.__set_core_domain_params()
|
620 | 623 | self.__set_app_dir()
|
| 624 | + |
| 625 | + self.__enable_jms_db_persistence_if_set() |
| 626 | + self.__enable_jta_tlog_db_persistence_if_set() |
| 627 | + |
621 | 628 | if len(extension_templates) > 0:
|
622 | 629 | self.__configure_fmw_infra_database()
|
623 | 630 | self.__configure_opss_secrets()
|
@@ -1333,6 +1340,45 @@ def __set_app_dir(self):
|
1333 | 1340 | self.logger.exiting(class_name=self.__class_name, method_name=_method_name)
|
1334 | 1341 | return
|
1335 | 1342 |
|
| 1343 | + def __enable_jms_db_persistence_if_set(self): |
| 1344 | + """ |
| 1345 | + Enable jms db persistence if set |
| 1346 | + """ |
| 1347 | + _method_name = '__enable_jms_db_persistence_if_set' |
| 1348 | + |
| 1349 | + self.logger.entering(class_name=self.__class_name, method_name=_method_name) |
| 1350 | + if ENABLE_JMS_DB_PERSISTENCE in self._domain_info: |
| 1351 | + location = self.aliases.get_model_section_attribute_location(DOMAIN_INFO) |
| 1352 | + result, __ = self.aliases.is_valid_model_attribute_name(location, |
| 1353 | + ENABLE_JMS_DB_PERSISTENCE) |
| 1354 | + |
| 1355 | + if result == ValidationCodes.VALID: |
| 1356 | + enable_jms_db = self._domain_info[ENABLE_JMS_DB_PERSISTENCE] |
| 1357 | + self.wlst_helper.enable_jms_store_db_persistence(enable_jms_db) |
| 1358 | + |
| 1359 | + self.logger.exiting(class_name=self.__class_name, method_name=_method_name) |
| 1360 | + return |
| 1361 | + |
| 1362 | + def __enable_jta_tlog_db_persistence_if_set(self): |
| 1363 | + """ |
| 1364 | + Enable jta tlog db persistence if set |
| 1365 | + """ |
| 1366 | + _method_name = '__enable_jta_tlog_db_persistence_if_set' |
| 1367 | + |
| 1368 | + self.logger.entering(class_name=self.__class_name, method_name=_method_name) |
| 1369 | + if ENABLE_JTALOG_DB_PERSISTENCE in self._domain_info: |
| 1370 | + location = self.aliases.get_model_section_attribute_location(DOMAIN_INFO) |
| 1371 | + result, __ = self.aliases.is_valid_model_attribute_name(location, |
| 1372 | + ENABLE_JTALOG_DB_PERSISTENCE) |
| 1373 | + |
| 1374 | + if result == ValidationCodes.VALID: |
| 1375 | + enable_jta_db = self._domain_info[ENABLE_JTALOG_DB_PERSISTENCE] |
| 1376 | + self.wlst_helper.enable_jta_tlog_store_db_persistence(enable_jta_db) |
| 1377 | + |
| 1378 | + |
| 1379 | + self.logger.exiting(class_name=self.__class_name, method_name=_method_name) |
| 1380 | + return |
| 1381 | + |
1336 | 1382 | def __set_domain_name(self):
|
1337 | 1383 | _method_name = '__set_domain_name'
|
1338 | 1384 | # Stash the default name since the SecurityConfiguration subfolder name does not change
|
|
0 commit comments