本文整理汇总了Java中org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationContextFactory.createConfigurationContext方法的具体用法?Java ConfigurationContextFactory.createConfigurationContext怎么用?Java ConfigurationContextFactory.createConfigurationContext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.axis2.context.ConfigurationContextFactory
的用法示例。
在下文中一共展示了ConfigurationContextFactory.createConfigurationContext方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getClientCfgCtx
import org.apache.axis2.context.ConfigurationContextFactory; //导入方法依赖的package包/类
public ConfigurationContext getClientCfgCtx() throws Exception {
ConfigurationContext cfgCtx =
ConfigurationContextFactory.createConfigurationContext(new CustomAxisConfigurator());
AxisConfiguration axisCfg = cfgCtx.getAxisConfiguration();
axisCfg.engageModule("addressing");
TransportInDescription trpInDesc = new TransportInDescription("udp");
trpInDesc.setReceiver(new UDPListener());
axisCfg.addTransportIn(trpInDesc);
TransportOutDescription trpOutDesc = new TransportOutDescription("udp");
trpOutDesc.setSender(new UDPSender());
axisCfg.addTransportOut(trpOutDesc);
return cfgCtx;
}
示例2: getConfiguration
import org.apache.axis2.context.ConfigurationContextFactory; //导入方法依赖的package包/类
private synchronized ConfigurationContext getConfiguration() throws AxisFault
{
Institution inst = CurrentInstitution.get();
ConfigurationContext config = CONFIG_CACHE.getIfPresent(inst);
if( config == null )
{
config = ConfigurationContextFactory.createConfigurationContext(new CustomConfigurator());
CONFIG_CACHE.put(inst, config);
}
return config;
}
示例3: UtilsTransportServer
import org.apache.axis2.context.ConfigurationContextFactory; //导入方法依赖的package包/类
public UtilsTransportServer() throws AxisFault {
cfgCtx = ConfigurationContextFactory.
createConfigurationContext(new CustomAxisConfigurator());
// create listener manager
listnMgr = new ListenerManager();
cfgCtx.setTransportManager(listnMgr);
}
示例4: startConfigurationContext
import org.apache.axis2.context.ConfigurationContextFactory; //导入方法依赖的package包/类
public synchronized void startConfigurationContext(Dictionary dictionary) throws AxisFault {
AxisConfigurator configurator = new OSGiServerConfigurator(context);
configCtx = ConfigurationContextFactory.createConfigurationContext(configurator);
ListenerManager listenerManager = new ListenerManager();
listenerManager.init(configCtx);
listenerManager.start();
}
示例5: initConfigContext
import org.apache.axis2.context.ConfigurationContextFactory; //导入方法依赖的package包/类
/**
* Initialize the Axis configuration context
*
* @param config Servlet configuration
* @return ConfigurationContext
* @throws ServletException
*/
protected ConfigurationContext initConfigContext(ServletConfig config) throws ServletException {
try {
ConfigurationContext configContext =
ConfigurationContextFactory
.createConfigurationContext(new WarBasedAxisConfigurator(config));
configContext.setProperty(Constants.CONTAINER_MANAGED, Constants.VALUE_TRUE);
return configContext;
} catch (Exception e) {
log.info(e);
throw new ServletException(e);
}
}
示例6: ClientConfigurationFactory
import org.apache.axis2.context.ConfigurationContextFactory; //导入方法依赖的package包/类
/**
* Create a ConfigurationContext from the specified configurator
*
* @param configurator
*/
public ClientConfigurationFactory(AxisConfigurator configurator) {
try {
configContext = ConfigurationContextFactory.createConfigurationContext(configurator);
} catch (AxisFault e) {
throw ExceptionFactory.makeWebServiceException(Messages.getMessage("clientConfigCtxtErr", e.getMessage()));
}
}