From 0afd30fc8ae5234c2015a7eb7d742b2a8869651a Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 1 Feb 2010 11:33:58 +0000 Subject: A couple of comments to remind me where policy things go git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@905259 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/binding/ws/axis2/Axis2EngineIntegration.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src') diff --git a/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2EngineIntegration.java b/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2EngineIntegration.java index 8cd963f4ca..790b8083b7 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2EngineIntegration.java +++ b/sca-java-2.x/trunk/modules/binding-ws-axis2-15-runtime/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/Axis2EngineIntegration.java @@ -168,7 +168,6 @@ public class Axis2EngineIntegration { this.modelFactories = modelFactories; this.assemblyFactory = (RuntimeAssemblyFactory)modelFactories.getFactory(AssemblyFactory.class); - final boolean isRampartRequired = AxisPolicyHelper.isRampartRequired(wsBinding); // get the axis configuration context from the Tuscany axis2.xml file // TODO - java security @@ -197,7 +196,18 @@ public class Axis2EngineIntegration { // MTOM // JMS // Security (turn rampart on) - // Enable MTOM if the policy intent is specified. + final boolean isRampartRequired = true; //AxisPolicyHelper.isRampartRequired(wsBinding); + + if (isRampartRequired){ + // TODO - do we need to go back to configurator? + } + + final boolean isJMSRequired = false; + + if (isJMSRequired){ + // TODO - do we need to o go back to configurator? + } + if (AxisPolicyHelper.isIntentRequired(wsBinding, AxisPolicyHelper.MTOM_INTENT)) { configContext.getAxisConfiguration().getParameter(Configuration.ENABLE_MTOM).setLocked(false); configContext.getAxisConfiguration().getParameter(Configuration.ENABLE_MTOM).setValue("true"); -- cgit v1.2.3