biemond-orawls icon indicating copy to clipboard operation
biemond-orawls copied to clipboard

wls_datasource doesnt update DatasourceType

Open cbrdy opened this issue 7 years ago • 4 comments

@biemond,

I'm seeing this weird issue not sure why it happens but this is what I have seen so far. I tried to get the attribute details using what you do in set_attribute_value and get_attribute_value. This is what I see. Why is DatasourceType shows None while for others the values are just fine.


wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> fields=getMBI().getAttribute('DatasourceType').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> print fields
array(java.lang.Object,[None, None, None])
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> fields=getMBI().getAttribute('Name').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS !> print fields
array(java.lang.Object,[None, None, None])
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCXAParams/omdbDS !> fields=getMBI().getAttribute('KeepXaConnTillTxComplete').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCXAParams/omdbDS !> print fields
array(java.lang.Object,['boolean', 1, None])
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCDataSourceParams/omdbDS !> fields=getMBI().getAttribute('GlobalTransactionsProtocol').getDescriptor().getFieldValues(attribute_fields)
wls:/J2EE_domain/edit/JDBCSystemResources/omdbDS/Resource/omdbDS/JDBCDataSourceParams/omdbDS !> print fields
array(java.lang.Object,[None, 'OnePhaseCommit', None])

cbrdy avatar Jul 06 '17 21:07 cbrdy

what I noticed, I cannot set my datasource type to GENERIC. the module is resetting the type to AGL.

cbrdy avatar Jul 10 '17 14:07 cbrdy

ok, I guess wls does this on purpose or it is a bug. I will check it out

biemond avatar Jul 10 '17 15:07 biemond

that's what I think too. could be a weblogic bug.

cbrdy avatar Jul 10 '17 15:07 cbrdy

My sincere apologies. There was an issue with our r10k which caused our old code to send to the servers. This has been rectified now. I can update the datasource from AGL to GENERIC.

cbrdy avatar Jul 10 '17 16:07 cbrdy