Skip to content

Commit 5113248

Browse files
authored
Merge pull request #1705 from tharindu1st/wss4j-removal
remove wss4j
2 parents 9e39e68 + cb50d98 commit 5113248

File tree

15 files changed

+2
-698
lines changed

15 files changed

+2
-698
lines changed

components/business-adaptors/hl7/org.wso2.carbon.business.messaging.hl7.samples/dist/assembly-bin-descriptor.xml

-9
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@
2626
<dependencySet>
2727
<outputDirectory>lib</outputDirectory>
2828
</dependencySet>
29-
30-
<dependencySet>
31-
<outputDirectory>samples/client_repo/modules</outputDirectory>
32-
<includes>
33-
<include>org.apache.axis2:addressing:mar</include>
34-
<include>org.apache.rampart:rampart:mar</include>
35-
<include>org.apache.sandesha2:sandesha2:mar</include>
36-
</includes>
37-
</dependencySet>
3829
</dependencySets>
3930
<files>
4031
<file>

components/business-adaptors/hl7/org.wso2.carbon.business.messaging.hl7.samples/pom.xml

-15
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,6 @@
9494
</exclusions>
9595
<type>mar</type>
9696
</dependency>
97-
<dependency>
98-
<groupId>org.apache.rampart</groupId>
99-
<artifactId>rampart</artifactId>
100-
<exclusions>
101-
<exclusion>
102-
<groupId>org.apache.woden</groupId>
103-
<artifactId>woden-api</artifactId>
104-
</exclusion>
105-
<exclusion>
106-
<groupId>org.slf4j</groupId>
107-
<artifactId>log4j-over-slf4j</artifactId>
108-
</exclusion>
109-
</exclusions>
110-
<type>mar</type>
111-
</dependency>
11297
</dependencies>
11398

11499
</project>

components/mediation-admin/org.wso2.carbon.proxyadmin.common/pom.xml

-10
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@
4848
</exclusion>
4949
</exclusions>
5050
</dependency>
51-
<dependency>
52-
<groupId>org.apache.rampart.wso2</groupId>
53-
<artifactId>rampart-core</artifactId>
54-
<exclusions>
55-
<exclusion>
56-
<groupId>org.slf4j</groupId>
57-
<artifactId>log4j-over-slf4j</artifactId>
58-
</exclusion>
59-
</exclusions>
60-
</dependency>
6151
<dependency>
6252
<groupId>org.wso2.org.ops4j.pax.logging</groupId>
6353
<artifactId>pax-logging-api</artifactId>

components/mediation-admin/org.wso2.carbon.proxyadmin/pom.xml

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@
5252
<groupId>org.wso2.carbon.deployment</groupId>
5353
<artifactId>org.wso2.carbon.service.mgt</artifactId>
5454
</dependency>
55-
<dependency>
56-
<groupId>org.apache.rampart.wso2</groupId>
57-
<artifactId>rampart-core</artifactId>
58-
<exclusions>
59-
<exclusion>
60-
<groupId>org.slf4j</groupId>
61-
<artifactId>log4j-over-slf4j</artifactId>
62-
</exclusion>
63-
</exclusions>
64-
</dependency>
6555
<dependency>
6656
<groupId>org.wso2.org.ops4j.pax.logging</groupId>
6757
<artifactId>pax-logging-api</artifactId>

components/mediation-admin/org.wso2.carbon.proxyadmin/src/main/java/org/wso2/carbon/proxyadmin/ProxyAdminServiceComponent.java

-27
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@
3232
import org.wso2.carbon.mediation.initializer.ServiceBusUtils;
3333
import org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService;
3434
import org.wso2.carbon.mediation.initializer.services.SynapseRegistrationsService;
35-
import org.wso2.carbon.proxyadmin.observer.ProxyObserver;
3635
import org.wso2.carbon.proxyadmin.observer.ProxyServiceParameterObserver;
3736
import org.wso2.carbon.proxyadmin.service.ProxyDeployerService;
3837
import org.wso2.carbon.proxyadmin.service.ProxyDeployerServiceImpl;
3938
import org.wso2.carbon.proxyadmin.util.ConfigHolder;
40-
import org.wso2.carbon.registry.core.exceptions.RegistryException;
4139
import org.wso2.carbon.registry.core.service.RegistryService;
4240
import org.wso2.carbon.service.mgt.ServiceAdmin;
4341
import org.wso2.carbon.utils.AbstractAxis2ConfigurationContextObserver;
@@ -86,14 +84,6 @@ protected void activate(ComponentContext context) {
8684
if (synEnvService != null) {
8785
AxisConfiguration axisConf = synEnvService.getConfigurationContext().getAxisConfiguration();
8886
try {
89-
if (!Boolean.parseBoolean(System.getProperty("NonRegistryMode"))) {
90-
ProxyObserver proxyObserver = new ProxyObserver(synEnvService, ConfigHolder.getInstance()
91-
.getRegistryService().getConfigSystemRegistry());
92-
ConfigHolder.getInstance().addProxyObserver(MultitenantConstants.SUPER_TENANT_ID,
93-
proxyObserver);
94-
axisConf.addObservers(proxyObserver);
95-
proxyObserver.setSynapseEnvironmentService(synEnvService);
96-
}
9787
registerDeployer(synEnvService.getConfigurationContext().getAxisConfiguration(), synEnvService
9888
.getSynapseEnvironment());
9989
bindProxyParameterObserver(axisConf);
@@ -179,24 +169,12 @@ protected void setSynapseEnvironmentService(SynapseEnvironmentService synapseEnv
179169
int tenantId = synapseEnvironmentService.getTenantId();
180170
AxisConfiguration axisConfiguration = synapseEnvironmentService.getConfigurationContext()
181171
.getAxisConfiguration();
182-
ProxyObserver observer;
183172
if (!alreadyCreated) {
184173
try {
185174
registerDeployer(synapseEnvironmentService.getConfigurationContext().getAxisConfiguration(),
186175
synapseEnvironmentService.getSynapseEnvironment());
187-
observer = new ProxyObserver(synapseEnvironmentService, ConfigHolder.getInstance()
188-
.getRegistryService().getConfigSystemRegistry(tenantId));
189-
axisConfiguration.addObservers(observer);
190-
ConfigHolder.getInstance().addProxyObserver(tenantId, observer);
191176
} catch (ProxyAdminException e) {
192177
log.error("Error while initializing the proxy admin.", e);
193-
} catch (RegistryException e) {
194-
log.error("Error while initializing the proxy admin.", e);
195-
}
196-
} else {
197-
observer = ConfigHolder.getInstance().getProxyObsever(tenantId);
198-
if (observer != null) {
199-
observer.setSynapseEnvironmentService(synapseEnvironmentService);
200178
}
201179
}
202180
}
@@ -303,12 +281,7 @@ public void createdConfigurationContext(ConfigurationContext configContext) {
303281
SynapseEnvironmentService synEnvService = ConfigHolder.getInstance().getSynapseEnvironmentService
304282
(tenantId);
305283
if (synEnvService != null) {
306-
ProxyObserver proxyObserver = new ProxyObserver(synEnvService, ConfigHolder.getInstance()
307-
.getRegistryService().getConfigSystemRegistry(tenantId));
308-
ConfigHolder.getInstance().addProxyObserver(tenantId, proxyObserver);
309-
axisConfig.addObservers(proxyObserver);
310284
registerDeployer(axisConfig, synEnvService.getSynapseEnvironment());
311-
proxyObserver.setSynapseEnvironmentService(synEnvService);
312285
}
313286
} else {
314287
log.error("Error while initialzing AxisConfiguration", null);

0 commit comments

Comments
 (0)