Skip to content

Commit 6813ec4

Browse files
Issue#599 add cdi container mbean (#600)
* Fix java.lang.Boolean issues for ActiveDirectoryAuthenticator * Add CdiContainer mbean * Put CDIContainer in topology deployer * Update CdiContainer.json
1 parent 6d65f4b commit 6813ec4

File tree

6 files changed

+44
-0
lines changed

6 files changed

+44
-0
lines changed

core/src/main/python/wlsdeploy/aliases/alias_entries.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class AliasEntries(object):
8787

8888
__topology_top_level_folders = [
8989
'AdminConsole',
90+
'CdiContainer',
9091
'Cluster',
9192
'EmbeddedLDAP',
9293
'JMX',

core/src/main/python/wlsdeploy/aliases/model_constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
AUTHENTICATION_PROVIDER = 'AuthenticationProvider'
3838
AUTHORIZER = 'Authorizer'
3939
CAPACITY = 'Capacity'
40+
CDI_CONTAINER = 'CdiContainer'
4041
CERT_PATH_PROVIDER = 'CertPathProvider'
4142
CERTIFICATE_REGISTRY = 'CertificateRegistry'
4243
CLASSPATH = 'ClassPath'

core/src/main/python/wlsdeploy/tool/deploy/topology_updater.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""
55
from wlsdeploy.aliases.location_context import LocationContext
66
from wlsdeploy.aliases.model_constants import ADMIN_CONSOLE
7+
from wlsdeploy.aliases.model_constants import CDI_CONTAINER
78
from wlsdeploy.aliases.model_constants import CLUSTER
89
from wlsdeploy.aliases.model_constants import CREATE_ONLY_DOMAIN_ATTRIBUTES
910
from wlsdeploy.aliases.model_constants import MACHINE
@@ -95,6 +96,7 @@ def update(self):
9596
self._set_domain_attributes()
9697

9798
self._process_section(self._topology, folder_list, ADMIN_CONSOLE, location)
99+
self._process_section(self._topology, folder_list, CDI_CONTAINER, location)
98100
self._process_section(self._topology, folder_list, MACHINE, location)
99101
self._process_section(self._topology, folder_list, UNIX_MACHINE, location)
100102

core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ def discover_domain_parameters(self):
271271

272272
model_folder_name, folder_result = self._get_admin_console()
273273
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
274+
model_folder_name, folder_result = self._get_cdi_container()
275+
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
274276
model_folder_name, folder_result = self._get_jta()
275277
discoverer.add_to_model_if_not_empty(self._dictionary, model_folder_name, folder_result)
276278
model_folder_name, folder_result = self._get_jmx()
@@ -366,6 +368,25 @@ def _get_admin_console(self):
366368
_logger.exiting(class_name=_class_name, method_name=_method_name)
367369
return model_top_folder_name, result
368370

371+
def _get_cdi_container(self):
372+
"""
373+
Discover the domain level CdiContainer configuration attributes.
374+
:return: model name for CdiContainer: dictionary containing the discovered CdiContainer attributes
375+
"""
376+
_method_name = '_get_cdi_container'
377+
_logger.entering(class_name=_class_name, method_name=_method_name)
378+
model_top_folder_name = model_constants.CDI_CONTAINER
379+
result = OrderedDict()
380+
location = LocationContext(self._base_location)
381+
location.append_location(model_top_folder_name)
382+
name = self._find_singleton_name_in_folder(location)
383+
if name is not None:
384+
_logger.info('WLSDPLY-06643', class_name=_class_name, method_name=_method_name)
385+
location.add_name_token(self._alias_helper.get_name_token(location), name)
386+
self._populate_model_parameters(result, location)
387+
_logger.exiting(class_name=_class_name, method_name=_method_name)
388+
return model_top_folder_name, result
389+
369390
def _get_jta(self):
370391
"""
371392
Discover the domain level JTA configuration attributes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"copyright": "Copyright (c) 2020, Oracle Corporation and/or its affiliates.",
3+
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
4+
"wlst_type": "CdiContainer",
5+
"version": "[12.2.1,)",
6+
"child_folders_type": "single_unpredictable",
7+
"default_name_value": "${NO_NAME_0:%DOMAIN%}",
8+
"folders": {},
9+
"attributes": {
10+
"ImplicitBeanDiscoveryEnabled": [ {"version": "[12.2.1,)", "wlst_mode": "both", "wlst_name": "ImplicitBeanDiscoveryEnabled", "wlst_path": "WP001", "value": {"default": "true" }, "wlst_type": "boolean" } ],
11+
"Notes": [ {"version": "[12.2.1,)", "wlst_mode": "both", "wlst_name": "Notes", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string" } ],
12+
"Policy": [ {"version": "[12.2.1.1,)", "wlst_mode": "both", "wlst_name": "Policy", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string" } ]
13+
},
14+
"wlst_attributes_path": "WP001",
15+
"wlst_paths": {
16+
"WP001": "/CdiContainer/%CdiContainer%"
17+
}
18+
}

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ WLSDPLY-06641=Custom Keystore file name at location {0} is {1}
698698
WLSDPLY-06642=Custom Keystore file {0} at location {1} is a kss type which is not currently supported. \
699699
The Custom Keystore file will not be added to the archive file. Use export / import to \
700700
add the file to the target domain
701+
WLSDPLY-06643=Adding Domain CdiContainer
701702

702703

703704
# multi_tenant_discoverer.py, multi_tenant_resources_dsi

0 commit comments

Comments
 (0)