当前位置: 首页>>代码示例>>Java>>正文


Java MessageContext.getTargetService方法代码示例

本文整理汇总了Java中org.apache.axis.MessageContext.getTargetService方法的典型用法代码示例。如果您正苦于以下问题:Java MessageContext.getTargetService方法的具体用法?Java MessageContext.getTargetService怎么用?Java MessageContext.getTargetService使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.axis.MessageContext的用法示例。


在下文中一共展示了MessageContext.getTargetService方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public static ISO21090ReferenceServiceConfiguration getConfiguration() throws Exception {
	if (ISO21090ReferenceServiceConfiguration.configuration != null) {
		return ISO21090ReferenceServiceConfiguration.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/serviceconfiguration";
	try {
		javax.naming.Context initialContext = new InitialContext();
		ISO21090ReferenceServiceConfiguration.configuration = (ISO21090ReferenceServiceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		throw new Exception("Unable to instantiate service configuration.", e);
	}

	return ISO21090ReferenceServiceConfiguration.configuration;
}
 
开发者ID:NCIP,项目名称:iso21090,代码行数:19,代码来源:ISO21090ReferenceServiceConfiguration.java

示例2: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public CaNanoLabServiceResourceConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();
	servicePath = servicePath.substring(0,servicePath.lastIndexOf("/"));
	servicePath+="/CaNanoLabService";

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (CaNanoLabServiceResourceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e, e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:cananolab,代码行数:22,代码来源:CaNanoLabServiceResourceBase.java

示例3: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public static AuthenticationServiceConfiguration getConfiguration() throws Exception {
	if (AuthenticationServiceConfiguration.configuration != null) {
		return AuthenticationServiceConfiguration.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/serviceconfiguration";
	try {
		javax.naming.Context initialContext = new InitialContext();
		AuthenticationServiceConfiguration.configuration = (AuthenticationServiceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		throw new Exception("Unable to instantiate service configuration.", e);
	}

	return AuthenticationServiceConfiguration.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:19,代码来源:AuthenticationServiceConfiguration.java

示例4: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public TavernaWorkflowServiceImplResourceConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();
	servicePath = servicePath.substring(0,servicePath.lastIndexOf("/"));
	servicePath+="/TavernaWorkflowServiceImpl";

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (TavernaWorkflowServiceImplResourceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e, e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:22,代码来源:TavernaWorkflowServiceImplResourceBase.java

示例5: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public MetadataConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (MetadataConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-general,代码行数:20,代码来源:BaseResource.java

示例6: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public ServiceConfiguration getConfiguration() throws Exception {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/serviceconfiguration";
	try {
		javax.naming.Context initialContext = new InitialContext();
		this.configuration = (ServiceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		throw new Exception("Unable to instantiate service configuration.", e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:19,代码来源:SimpleMethodImpl.java

示例7: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public static TransferServiceConfiguration getConfiguration() throws Exception {
	if (TransferServiceConfiguration.configuration != null) {
		return TransferServiceConfiguration.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/serviceconfiguration";
	try {
		javax.naming.Context initialContext = new InitialContext();
		TransferServiceConfiguration.configuration = (TransferServiceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		throw new Exception("Unable to instantiate service configuration.", e);
	}

	return TransferServiceConfiguration.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:19,代码来源:TransferServiceConfiguration.java

示例8: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public MetadataModelServiceResourceConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();
	servicePath = servicePath.substring(0,servicePath.lastIndexOf("/"));
	servicePath+="/MetadataModelService";

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (MetadataModelServiceResourceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e, e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:22,代码来源:MetadataModelServiceResourceBase.java

示例9: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public static CredentialDelegationServiceConfiguration getConfiguration() throws Exception {
	if (CredentialDelegationServiceConfiguration.configuration != null) {
		return CredentialDelegationServiceConfiguration.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/serviceconfiguration";
	try {
		javax.naming.Context initialContext = new InitialContext();
		CredentialDelegationServiceConfiguration.configuration = (CredentialDelegationServiceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		throw new Exception("Unable to instantiate service configuration.", e);
	}

	return CredentialDelegationServiceConfiguration.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:19,代码来源:CredentialDelegationServiceConfiguration.java

示例10: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public TavernaWorkflowServiceResourceConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();
	servicePath = servicePath.substring(0,servicePath.lastIndexOf("/"));
	servicePath+="/TavernaWorkflowService";

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (TavernaWorkflowServiceResourceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e, e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:22,代码来源:TavernaWorkflowServiceResourceBase.java

示例11: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public static FederatedQueryProcessorConfiguration getConfiguration() throws Exception {
	if (FederatedQueryProcessorConfiguration.configuration != null) {
		return FederatedQueryProcessorConfiguration.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/serviceconfiguration";
	try {
		javax.naming.Context initialContext = new InitialContext();
		FederatedQueryProcessorConfiguration.configuration = (FederatedQueryProcessorConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		throw new Exception("Unable to instantiate service configuration.", e);
	}

	return FederatedQueryProcessorConfiguration.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:19,代码来源:FederatedQueryProcessorConfiguration.java

示例12: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public FederatedQueryResultsResourceConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();
	servicePath = servicePath.substring(0,servicePath.lastIndexOf("/"));
	servicePath+="/FederatedQueryResults";

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (FederatedQueryResultsResourceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e, e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:22,代码来源:FederatedQueryResultsResourceBase.java

示例13: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public IdentifiersNAServiceResourceConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();
	servicePath = servicePath.substring(0,servicePath.lastIndexOf("/"));
	servicePath+="/IdentifiersNAService";

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (IdentifiersNAServiceResourceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e, e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:gsid,代码行数:22,代码来源:IdentifiersNAServiceResourceBase.java

示例14: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public static DorianConfiguration getConfiguration() throws Exception {
	if (DorianConfiguration.configuration != null) {
		return DorianConfiguration.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/serviceconfiguration";
	try {
		javax.naming.Context initialContext = new InitialContext();
		DorianConfiguration.configuration = (DorianConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		throw new Exception("Unable to instantiate service configuration.", e);
	}

	return DorianConfiguration.configuration;
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:19,代码来源:DorianConfiguration.java

示例15: getConfiguration

import org.apache.axis.MessageContext; //导入方法依赖的package包/类
public StudyServiceResourceConfiguration getConfiguration() {
	if (this.configuration != null) {
		return this.configuration;
	}
	MessageContext ctx = MessageContext.getCurrentContext();

	String servicePath = ctx.getTargetService();
	servicePath = servicePath.substring(0,servicePath.lastIndexOf("/"));
	servicePath+="/StudyService";

	String jndiName = Constants.JNDI_SERVICES_BASE_NAME + servicePath + "/configuration";
	logger.debug("Will read configuration from jndi name: " + jndiName);
	try {
		Context initialContext = new InitialContext();
		this.configuration = (StudyServiceResourceConfiguration) initialContext.lookup(jndiName);
	} catch (Exception e) {
		logger.error("when performing JNDI lookup for " + jndiName + ": " + e, e);
	}

	return this.configuration;
}
 
开发者ID:NCIP,项目名称:labviewer,代码行数:22,代码来源:StudyServiceResourceBase.java


注:本文中的org.apache.axis.MessageContext.getTargetService方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。