Java Code Examples for org.apache.synapse.config.SynapseConfiguration#setAxisConfiguration()
The following examples show how to use
org.apache.synapse.config.SynapseConfiguration#setAxisConfiguration() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediationPersistenceTest.java From micro-integrator with Apache License 2.0 | 6 votes |
public void setUp() { File tmpDir = new File(System.getProperty("basedir") + File.separator + "target" + File.separator + "tmp"); if (!tmpDir.exists()) { tmpDir.mkdirs(); } System.setProperty("java.io.tmpdir", tmpDir.getAbsolutePath()); SynapseConfiguration synapseConfig = SynapseConfigurationBuilder.getDefaultConfiguration(); synapseConfig.setAxisConfiguration(new AxisConfiguration()); MultiXMLConfigurationSerializer serializer = new MultiXMLConfigurationSerializer(path); serializer.serialize(synapseConfig); synapseConfigSvc = new SynapseConfigurationServiceImpl(synapseConfig, Constants.SUPER_TENANT_ID, null); /*getMediationPersistenceManager().init(null, path, synapseConfigSvc.getSynapseConfiguration(), 500L);*/ }
Example 2
Source File: DispatcherTestCase.java From micro-integrator with Apache License 2.0 | 5 votes |
private MessageContext createMessageContext() throws AxisFault { SynapseConfiguration synConfig = new SynapseConfiguration(); AxisConfiguration axisConfig = new AxisConfiguration(); synConfig.setAxisConfiguration(axisConfig); org.apache.axis2.context.MessageContext axis2Ctx = new org.apache.axis2.context.MessageContext(); ConfigurationContext cfgCtx = new ConfigurationContext(axisConfig); axis2Ctx.setConfigurationContext(cfgCtx); MessageContextCreatorForAxis2.setSynConfig(synConfig); MessageContextCreatorForAxis2.setSynEnv(new Axis2SynapseEnvironment(synConfig)); return MessageContextCreatorForAxis2.getSynapseMessageContext(axis2Ctx); }