Skip to content

Commit 05f8c96

Browse files
committed
Revert "Merge pull request #30619 from jonhawkes/container-auth"
This reverts commit 2e36b1f, reversing changes made to f1bb43b.
1 parent bfc003c commit 05f8c96

File tree

88 files changed

+31
-3621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+31
-3621
lines changed

dev/com.ibm.rls.jdbc/src/com/ibm/ws/recoverylog/custom/jdbc/impl/SQLNonTransactionalDataSource.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2012, 2025 IBM Corporation and others.
2+
* Copyright (c) 2012, 2021 IBM Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
@@ -21,7 +21,6 @@
2121
import com.ibm.ws.recoverylog.spi.CustomLogProperties;
2222
import com.ibm.ws.recoverylog.spi.InternalLogException;
2323
import com.ibm.ws.recoverylog.spi.TraceConstants;
24-
import com.ibm.wsspi.resource.ResourceConfig;
2524
import com.ibm.wsspi.resource.ResourceFactory;
2625

2726
//------------------------------------------------------------------------------
@@ -99,13 +98,7 @@ public DataSource getDataSource() throws InternalLogException {
9998
}
10099

101100
try {
102-
// Retrieve the resourceConfig from the custom log properties. This may be null, in which case the "old"
103-
// behaviour will pertain with application authentication. A non-null resourceConfig will have been
104-
// configured if container authentication has been specified.
105-
ResourceConfig resourceConfig = _customLogProperties.resourceConfig();
106-
if (tc.isDebugEnabled())
107-
Tr.debug(tc, "create resource with ResourceConfig ", resourceConfig);
108-
nonTranDataSource = (DataSource) dataSourceFactory.createResource(resourceConfig);
101+
nonTranDataSource = (DataSource) dataSourceFactory.createResource(null);
109102
} catch (Exception e) {
110103
//e.printStackTrace();
111104
if (tc.isEntryEnabled())

dev/com.ibm.tx.jta/src/com/ibm/tx/jta/config/DefaultConfigurationProvider.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2007, 2025 IBM Corporation and others.
2+
* Copyright (c) 2007, 2024 IBM Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
@@ -21,7 +21,6 @@
2121
import com.ibm.tx.config.RuntimeMetaDataProvider;
2222
import com.ibm.tx.jta.util.alarm.AlarmManagerImpl;
2323
import com.ibm.tx.util.alarm.AlarmManager;
24-
import com.ibm.wsspi.resource.ResourceConfig;
2524
import com.ibm.wsspi.resource.ResourceFactory;
2625

2726
public class DefaultConfigurationProvider implements ConfigurationProvider {
@@ -236,11 +235,6 @@ public ResourceFactory getResourceFactory() {
236235
return null;
237236
}
238237

239-
@Override
240-
public ResourceConfig getResourceConfig() {
241-
return null;
242-
}
243-
244238
protected boolean _propagateXAResourceTransactionTimeout = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
245239
@Override
246240
public Boolean run() {

dev/com.ibm.tx.jta/src/com/ibm/tx/jta/impl/TxRecoveryAgentImpl.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2002, 2025 IBM Corporation and others.
2+
* Copyright (c) 2002, 2024 IBM Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
@@ -62,7 +62,6 @@
6262
import com.ibm.ws.recoverylog.spi.SharedServerLeaseLog;
6363
import com.ibm.ws.recoverylog.spi.TerminationFailedException;
6464
import com.ibm.wsspi.classloading.ClassLoadingService;
65-
import com.ibm.wsspi.resource.ResourceConfig;
6665
import com.ibm.wsspi.resource.ResourceFactory;
6766

6867
public class TxRecoveryAgentImpl implements RecoveryAgent {
@@ -300,12 +299,11 @@ public void initiateRecovery(FailureScope fs) throws RecoveryFailedException {
300299
Tr.exit(tc, "initiateRecovery", "ConfigurationProvider is null");
301300
throw new RecoveryFailedException("ConfigurationProvider is null");
302301
}
303-
final ResourceFactory nontranDSResourceFactory = cp.getResourceFactory();
302+
ResourceFactory nontranDSResourceFactory = cp.getResourceFactory();
303+
if (tc.isDebugEnabled())
304+
Tr.debug(tc, "Retrieved non tran DS Resource Factory, ", nontranDSResourceFactory);
304305
((CustomLogProperties) transactionLogProps).setResourceFactory(nontranDSResourceFactory);
305306
((CustomLogProperties) partnerLogProps).setResourceFactory(nontranDSResourceFactory);
306-
final ResourceConfig resConfig = cp.getResourceConfig();
307-
((CustomLogProperties) transactionLogProps).setResourceConfig(resConfig);
308-
((CustomLogProperties) partnerLogProps).setResourceConfig(resConfig);
309307
} else {
310308
// Set up FileLogProperties
311309
String recLogDirStem = tlc.expandedLogDirectory().trim();
@@ -1035,7 +1033,6 @@ public HeartbeatLog getHeartbeatLog(FailureScope fs) {
10351033
Tr.debug(tc, "Retrieved non tran DS Resource Factory {0}", nontranDSResourceFactory);
10361034

10371035
((CustomLogProperties) partnerLogProps).setResourceFactory(nontranDSResourceFactory);
1038-
((CustomLogProperties) partnerLogProps).setResourceConfig(cp.getResourceConfig());
10391036

10401037
//
10411038
// Get the Partner (XAResources) log

dev/com.ibm.tx.util/src/com/ibm/tx/config/ConfigurationProvider.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2013, 2025 IBM Corporation and others.
2+
* Copyright (c) 2013, 2024 IBM Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
@@ -16,7 +16,6 @@
1616
import java.util.logging.Level;
1717

1818
import com.ibm.tx.util.alarm.AlarmManager;
19-
import com.ibm.wsspi.resource.ResourceConfig;
2019
import com.ibm.wsspi.resource.ResourceFactory;
2120

2221
public interface ConfigurationProvider {
@@ -209,13 +208,6 @@ public interface ConfigurationProvider {
209208
*/
210209
public ResourceFactory getResourceFactory();
211210

212-
/**
213-
* Allows the retrieval of the ResourceConfig specified for a Resource
214-
*
215-
* @return
216-
*/
217-
public ResourceConfig getResourceConfig();
218-
219211
/**
220212
* Returns whether we will propagate the transaction timeout to XAResources
221213
*/

dev/com.ibm.websphere.appserver.features/visibility/protected/com.ibm.websphere.appserver.transaction-1.1.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ IBM-API-Service: com.ibm.wsspi.uow.UOWManager, \
2626
com.ibm.tx.util, \
2727
com.ibm.rls.jdbc, \
2828
com.ibm.ws.tx.embeddable, \
29-
com.ibm.ws.recoverylog, \
30-
com.ibm.ws.security.auth.data.common
29+
com.ibm.ws.recoverylog
3130
-jars=com.ibm.websphere.appserver.spi.transaction; location:=dev/spi/ibm/
3231
-files=dev/spi/ibm/javadoc/com.ibm.websphere.appserver.spi.transaction_1.1-javadoc.zip
3332
kind=ga

dev/com.ibm.websphere.appserver.features/visibility/protected/com.ibm.websphere.appserver.transaction-1.2.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ IBM-API-Service: com.ibm.wsspi.uow.UOWManager, \
2929
com.ibm.rls.jdbc, \
3030
com.ibm.ws.tx.embeddable, \
3131
com.ibm.ws.recoverylog, \
32-
com.ibm.ws.security.auth.data.common, \
3332
com.ibm.ws.cdi.interfaces
3433
-jars=com.ibm.websphere.appserver.spi.transaction; location:=dev/spi/ibm/
3534
-files=dev/spi/ibm/javadoc/com.ibm.websphere.appserver.spi.transaction_1.1-javadoc.zip

dev/com.ibm.websphere.appserver.features/visibility/protected/com.ibm.websphere.appserver.transaction-2.0.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Subsystem-Name: Jakarta Transactions 2.0
3030
com.ibm.rls.jdbc.jakarta, \
3131
com.ibm.ws.tx.embeddable.jakarta, \
3232
com.ibm.ws.recoverylog, \
33-
com.ibm.ws.security.auth.data.common, \
3433
com.ibm.ws.cdi.interfaces.jakarta
3534
-jars=com.ibm.websphere.appserver.spi.transaction; location:=dev/spi/ibm/
3635
-files=dev/spi/ibm/javadoc/com.ibm.websphere.appserver.spi.transaction_1.1-javadoc.zip

dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/CustomLogProperties.java

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
2-
* Copyright (c) 2010, 2025 IBM Corporation and others.
2+
* Copyright (c) 2010, 2021 IBM Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License 2.0
55
* which accompanies this distribution, and is available at
66
* http://www.eclipse.org/legal/epl-2.0/
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Contributors:
@@ -16,8 +16,6 @@
1616

1717
import com.ibm.websphere.ras.Tr;
1818
import com.ibm.websphere.ras.TraceComponent;
19-
import com.ibm.websphere.ras.annotation.Trivial;
20-
import com.ibm.wsspi.resource.ResourceConfig;
2119
import com.ibm.wsspi.resource.ResourceFactory;
2220

2321
//------------------------------------------------------------------------------
@@ -91,11 +89,6 @@ public class CustomLogProperties implements LogProperties {
9189
*/
9290
private ResourceFactory _resourceFactory;
9391

94-
/**
95-
* The Resource Config associated with this log implementation
96-
*/
97-
private ResourceConfig _resourceConfig;
98-
9992
//------------------------------------------------------------------------------
10093
// Method: CustomLogProperties.CustomLogProperties
10194
//------------------------------------------------------------------------------
@@ -249,10 +242,11 @@ public static void setDefaultLogType(int t) {
249242
defaultLogType = t;
250243
}
251244

252-
@Trivial
253245
public void setResourceFactory(ResourceFactory fac) {
254-
if (tc.isDebugEnabled())
255-
Tr.debug(tc, "setResourceFactory", fac);
246+
if (tc.isEntryEnabled())
247+
Tr.entry(tc, "setResourceFactory", this);
248+
if (tc.isEntryEnabled())
249+
Tr.exit(tc, "setResourceFactory", fac);
256250
_resourceFactory = fac;
257251
}
258252

@@ -266,31 +260,11 @@ public void setResourceFactory(ResourceFactory fac) {
266260
* @return ResourceFactory associated with this log
267261
* implementation
268262
*/
269-
@Trivial
270263
public ResourceFactory resourceFactory() {
271-
if (tc.isDebugEnabled())
272-
Tr.debug(tc, "resourceFactory", _resourceFactory);
264+
if (tc.isEntryEnabled())
265+
Tr.entry(tc, "resourceFactory", this);
266+
if (tc.isEntryEnabled())
267+
Tr.exit(tc, "resourceFactory", _resourceFactory);
273268
return _resourceFactory;
274269
}
275-
276-
@Trivial
277-
public void setResourceConfig(ResourceConfig conf) {
278-
if (tc.isDebugEnabled())
279-
Tr.debug(tc, "setResourceConfig", conf);
280-
_resourceConfig = conf;
281-
}
282-
283-
/**
284-
* Returns the Resource Config associated with this log
285-
* implementation
286-
*
287-
* @return ResourceConfig associated with this log
288-
* implementation
289-
*/
290-
@Trivial
291-
public ResourceConfig resourceConfig() {
292-
if (tc.isDebugEnabled())
293-
Tr.debug(tc, "resourceConfig", _resourceConfig);
294-
return _resourceConfig;
295-
}
296270
}

dev/com.ibm.ws.transaction.fat.util/resources/ourbuckets.txt

Lines changed: 0 additions & 101 deletions
This file was deleted.

dev/com.ibm.ws.transaction/bnd.bnd

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#*******************************************************************************
2-
# Copyright (c) 2017, 2025 IBM Corporation and others.
2+
# Copyright (c) 2017, 2023 IBM Corporation and others.
33
# All rights reserved. This program and the accompanying materials
44
# are made available under the terms of the Eclipse Public License 2.0
55
# which accompanies this distribution, and is available at
@@ -23,13 +23,10 @@ Service-Component: com.ibm.ws.transaction; \
2323
implementation:=com.ibm.ws.transaction.services.JTMConfigurationProvider; \
2424
locationService=com.ibm.wsspi.kernel.service.location.WsLocationAdmin; \
2525
dataSourceFactory=com.ibm.wsspi.resource.ResourceFactory; \
26-
resourceConfigFactory=com.ibm.wsspi.resource.ResourceConfigFactory; \
27-
authData=com.ibm.websphere.security.auth.data.AuthData; \
2826
transactionSettingsProvider=com.ibm.tx.jta.embeddable.TransactionSettingsProvider ;\
2927
runningCondition='org.osgi.service.condition.Condition';\
30-
optional:='dataSourceFactory,transactionSettingsProvider,runningCondition,authData';\
28+
optional:='dataSourceFactory,transactionSettingsProvider,runningCondition';\
3129
dynamic:='dataSourceFactory,transactionSettingsProvider,runningCondition';\
32-
multiple:='authData';\
3330
configuration-policy:=require;\
3431
properties:='\
3532
service.vendor=IBM,\
@@ -132,8 +129,6 @@ instrument.classesExcludes: com/ibm/ws/transaction/services/TransactionMessages*
132129
com.ibm.ws.tx.embeddable;version=latest,\
133130
com.ibm.ws.tx.jta.extensions;version=latest,\
134131
com.ibm.ws.webcontainer;version=latest, \
135-
com.ibm.ws.security.auth.data.common;version=latest,\
136-
com.ibm.ws.security.jca;version=latest,\
137132
com.ibm.wsspi.org.osgi.service.component.annotations
138133

139134
-testpath: \

0 commit comments

Comments
 (0)