本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}