- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jboss.wsf.spi.deployment.integration.WebServiceDeployment
类的一些代码示例,展示了WebServiceDeployment
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceDeployment
类的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.integration.WebServiceDeployment
类名称:WebServiceDeployment
[英]A web service deployment contains WebServiceDeclaration declarations.
[中]web服务部署包含WebServiceDeclaration声明。
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* Gets list of JAXWS EJBs meta data.
*
* @param unit deployment unit
* @return list of JAXWS EJBs meta data
*/
public static List<WebServiceDeclaration> getJaxwsEjbs(final DeploymentUnit unit)
{
final WebServiceDeployment wsDeployment = ASHelper.getRequiredAttachment(unit, WebServiceDeployment.class);
final List<WebServiceDeclaration> endpoints = new ArrayList<WebServiceDeclaration>();
final Iterator<WebServiceDeclaration> ejbIterator = wsDeployment.getServiceEndpoints().iterator();
while (ejbIterator.hasNext())
{
final WebServiceDeclaration ejbContainer = ejbIterator.next();
if (ASHelper.isWebServiceBean(ejbContainer))
{
endpoints.add(ejbContainer);
}
}
return endpoints;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss500x
@Override
public boolean isWebServiceDeployment(DeploymentUnit unit)
{
WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);
if (null == webServiceDeployment )
return false;
boolean isWebServiceDeployment = false;
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
if (isWebServiceBean(container))
{
isWebServiceDeployment = true;
break;
}
}
return isWebServiceDeployment;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1
@Override
public boolean isWebServiceDeployment(DeploymentUnit unit)
{
WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);
if (null == webServiceDeployment )
return false;
boolean isWebServiceDeployment = false;
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
if (isWebServiceBean(container))
{
isWebServiceDeployment = true;
break;
}
}
return isWebServiceDeployment;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
/**
* Gets list of JAXWS EJBs meta data.
*
* @param unit deployment unit
* @return list of JAXWS EJBs meta data
*/
public static List<WebServiceDeclaration> getJaxwsEjbs(final DeploymentUnit unit)
{
final WebServiceDeployment wsDeployment = ASHelper.getRequiredAttachment(unit, WebServiceDeployment.class);
final List<WebServiceDeclaration> endpoints = new ArrayList<WebServiceDeclaration>();
final Iterator<WebServiceDeclaration> ejbIterator = wsDeployment.getServiceEndpoints().iterator();
while (ejbIterator.hasNext())
{
final WebServiceDeclaration ejbContainer = ejbIterator.next();
if (ASHelper.isWebServiceBean(ejbContainer))
{
endpoints.add(ejbContainer);
}
}
return endpoints;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
@Override
public boolean isWebServiceDeployment(DeploymentUnit unit)
{
WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);
if (null == webServiceDeployment )
return false;
boolean isWebServiceDeployment = false;
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
if (isWebServiceBean(container))
{
isWebServiceDeployment = true;
break;
}
}
return isWebServiceDeployment;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* Gets list of JAXWS EJBs meta data.
*
* @param unit deployment unit
* @return list of JAXWS EJBs meta data
*/
public static List<WebServiceDeclaration> getJaxwsEjbs(final DeploymentUnit unit)
{
final WebServiceDeployment wsDeployment = ASHelper.getRequiredAttachment(unit, WebServiceDeployment.class);
final List<WebServiceDeclaration> endpoints = new ArrayList<WebServiceDeclaration>();
final Iterator<WebServiceDeclaration> ejbIterator = wsDeployment.getServiceEndpoints().iterator();
while (ejbIterator.hasNext())
{
final WebServiceDeclaration ejbContainer = ejbIterator.next();
if (ASHelper.isWebServiceBean(ejbContainer))
{
endpoints.add(ejbContainer);
}
}
return endpoints;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600x
@Override
public boolean isWebServiceDeployment(DeploymentUnit unit)
{
WebServiceDeployment webServiceDeployment = unit.getAttachment(WebServiceDeployment.class);
if (null == webServiceDeployment )
return false;
boolean isWebServiceDeployment = false;
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
if (isWebServiceBean(container))
{
isWebServiceDeployment = true;
break;
}
}
return isWebServiceDeployment;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
/**
* @see AbstractMetaDataBuilderEJB#buildEnterpriseBeansMetaData(Deployment, EJBArchiveMetaData)
*
* @param dep webservice deployment
* @param ejbArchiveMD EJB archive meta data
*/
@Override
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD)
{
final WebServiceDeployment ejb3Deployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>();
for (final WebServiceDeclaration jbossEjbMD : ejb3Deployment.getServiceEndpoints())
{
this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD);
}
ejbArchiveMD.setEnterpriseBeans(wsEjbsMD);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* @see AbstractMetaDataBuilderEJB#buildEnterpriseBeansMetaData(Deployment, EJBArchiveMetaData)
*
* @param dep webservice deployment
* @param ejbArchiveMD EJB archive meta data
*/
@Override
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD)
{
final WebServiceDeployment ejb3Deployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>();
for (final WebServiceDeclaration jbossEjbMD : ejb3Deployment.getServiceEndpoints())
{
this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD);
}
ejbArchiveMD.setEnterpriseBeans(wsEjbsMD);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* @see org.jboss.webservices.integration.tomcat.AbstractSecurityMetaDataAccessorEJB#getSecurityDomain(Deployment)
*
* @param dep webservice deployment
* @return security domain associated with EJB 3 deployment
*/
public String getSecurityDomain(final Deployment dep)
{
final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
String securityDomain = null;
final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();
while (ejbContainers.hasNext())
{
final WebServiceDeclaration ejbContainer = ejbContainers.next();
final SecurityDomain nextSecurityDomain = ejbContainer.getAnnotation(SecurityDomain.class);
securityDomain = this.getDomain(securityDomain, nextSecurityDomain);
}
return super.appendJaasPrefix(securityDomain);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* @see AbstractMetaDataBuilderEJB#buildEnterpriseBeansMetaData(Deployment, EJBArchiveMetaData)
*
* @param dep webservice deployment
* @param ejbArchiveMD EJB archive meta data
*/
@Override
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD)
{
final WebServiceDeployment ejb3Deployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>();
for (final WebServiceDeclaration jbossEjbMD : ejb3Deployment.getServiceEndpoints())
{
this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD);
}
ejbArchiveMD.setEnterpriseBeans(wsEjbsMD);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* @see org.jboss.webservices.integration.tomcat.AbstractSecurityMetaDataAccessorEJB#getSecurityDomain(Deployment)
*
* @param dep webservice deployment
* @return security domain associated with EJB 3 deployment
*/
public String getSecurityDomain(final Deployment dep)
{
final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
String securityDomain = null;
final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();
while (ejbContainers.hasNext())
{
final WebServiceDeclaration ejbContainer = ejbContainers.next();
final SecurityDomain nextSecurityDomain = ejbContainer.getAnnotation(SecurityDomain.class);
securityDomain = this.getDomain(securityDomain, nextSecurityDomain);
}
return super.appendJaasPrefix(securityDomain);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
/**
* @see org.jboss.webservices.integration.tomcat.AbstractSecurityMetaDataAccessorEJB#getSecurityDomain(Deployment)
*
* @param dep webservice deployment
* @return security domain associated with EJB 3 deployment
*/
public String getSecurityDomain(final Deployment dep)
{
final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
String securityDomain = null;
final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();
while (ejbContainers.hasNext())
{
final WebServiceDeclaration ejbContainer = ejbContainers.next();
final SecurityDomain nextSecurityDomain = ejbContainer.getAnnotation(SecurityDomain.class);
securityDomain = this.getDomain(securityDomain, nextSecurityDomain);
}
return super.appendJaasPrefix(securityDomain);
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep)
{
String securityDomain = null;
WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
if (webServiceDeployment != null)
{
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
SecurityDomain anSecurityDomain = container.getAnnotation(SecurityDomain.class);
if (anSecurityDomain != null)
{
if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
throw new IllegalStateException("Multiple security domains not supported");
securityDomain = anSecurityDomain.value();
}
}
}
if (securityDomain != null)
{
if (securityDomain.startsWith("java:/jaas/") == false)
securityDomain = "java:/jaas/" + securityDomain;
jbossWeb.setSecurityDomain(securityDomain);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss500x
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep)
{
String securityDomain = null;
WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
if (webServiceDeployment != null)
{
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
SecurityDomain anSecurityDomain = container.getAnnotation(SecurityDomain.class);
if (anSecurityDomain != null)
{
if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
throw new IllegalStateException("Multiple security domains not supported");
securityDomain = anSecurityDomain.value();
}
}
}
if (securityDomain != null)
{
if (securityDomain.startsWith("java:/jaas/") == false)
securityDomain = "java:/jaas/" + securityDomain;
jbossWeb.setSecurityDomain(securityDomain);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep)
{
String securityDomain = null;
WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
if (webServiceDeployment != null)
{
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
SecurityDomain anSecurityDomain = container.getAnnotation(SecurityDomain.class);
if (anSecurityDomain != null)
{
if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
throw new IllegalStateException("Multiple security domains not supported");
securityDomain = anSecurityDomain.value();
}
}
}
if (securityDomain != null)
{
if (securityDomain.startsWith("java:/jaas/") == false)
securityDomain = "java:/jaas/" + securityDomain;
jbossWeb.setSecurityDomain(securityDomain);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600x
public void addSecurityDomain(JBossWebMetaData jbossWeb, Deployment dep)
{
String securityDomain = null;
WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
if (webServiceDeployment != null)
{
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
SecurityDomain anSecurityDomain = container.getAnnotation(SecurityDomain.class);
if (anSecurityDomain != null)
{
if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
throw new IllegalStateException("Multiple security domains not supported");
securityDomain = anSecurityDomain.value();
}
}
}
if (securityDomain != null)
{
if (securityDomain.startsWith("java:/jaas/") == false)
securityDomain = "java:/jaas/" + securityDomain;
jbossWeb.setSecurityDomain(securityDomain);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss500x
public void addSecurityRoles(JBossWebMetaData webApp, Deployment dep)
{
WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
if (webServiceDeployment != null)
{
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
RolesAllowed anRolesAllowed = container.getAnnotation(RolesAllowed.class);
if (anRolesAllowed != null)
{
SecurityRolesMetaData securityRoles = webApp.getSecurityRoles();
for (String roleName : anRolesAllowed.value())
{
SecurityRoleMetaData role = new SecurityRoleMetaData();
role.setRoleName(roleName);
securityRoles.add(role);
}
}
}
}
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600x
public void addSecurityRoles(JBossWebMetaData webApp, Deployment dep)
{
WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
if (webServiceDeployment != null)
{
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
RolesAllowed anRolesAllowed = container.getAnnotation(RolesAllowed.class);
if (anRolesAllowed != null)
{
SecurityRolesMetaData securityRoles = webApp.getSecurityRoles();
for (String roleName : anRolesAllowed.value())
{
SecurityRoleMetaData role = new SecurityRoleMetaData();
role.setRoleName(roleName);
securityRoles.add(role);
}
}
}
}
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
public void addSecurityRoles(JBossWebMetaData webApp, Deployment dep)
{
WebServiceDeployment webServiceDeployment = dep.getAttachment(WebServiceDeployment.class);
if (webServiceDeployment != null)
{
Iterator<WebServiceDeclaration> it = webServiceDeployment.getServiceEndpoints().iterator();
while (it.hasNext())
{
WebServiceDeclaration container = it.next();
RolesAllowed anRolesAllowed = container.getAnnotation(RolesAllowed.class);
if (anRolesAllowed != null)
{
SecurityRolesMetaData securityRoles = webApp.getSecurityRoles();
for (String roleName : anRolesAllowed.value())
{
SecurityRoleMetaData role = new SecurityRoleMetaData();
role.setRoleName(roleName);
securityRoles.add(role);
}
}
}
}
}
}
我目前是一群学生的团队负责人,他们正在为一门类(class)的项目工作,该类(class)目前由电气和计算机工程专业的学生组成。我是一名电气工程专业的学生,我还没有开始研究该项目的软件组件。我觉得
我们对 spring-integration 非常满意,除非事情没有按预期工作。然后真的很难找出发生了什么(我们使用的是xml配置)。有人可以将我指向 spring 集成组件背后的 java 组件以便
我需要评估几个积分,我正在使用正常 (0,1) 密度来测试。 在 python 中 import scipy.integrate as integrate import scipy.stats imp
我想保留原始请求的原始有效负载并将其放在 xslt-transformer 或其他操作中。我丢失了它,因为我使用了 xslt-transformer,并且我只需要转换中的一些元素。所以我的场景是: 1
我想知道在 Spring Integration 中使消息不可变的原因是什么。 仅仅是因为多线程环境中的线程安全吗? 表现?当您每次要向现有消息添加某些内容时都必须创建新消息时,您不会受到性能惩罚吗?
我有一个偶尔会返回 503 错误的 http 网关调用。我想配置 retry advice围绕那个调用,但我不想为每个错误都这样做,只是 503s。 我已经配
我们正在使用 Spring Integration 4.2.3 聚合器组件和定义的组超时,并期望组在给定的超时值内超时,同时向组添加消息和发布大小标准不满足。 但我们看到了不同的结果,当我们向服务输入
我需要轮询邮件服务器。由于我的项目已经在 Spring 中,我使用 Spring-Integration 来轮询邮件服务器。我在这方面很成功。但现在我必须轮询多封电子邮件。有人可以告诉我该怎么做吗。
现在,我正在从事的项目已经达到了一个复杂的水平,需要完成多个步骤(实际上,它变得不可思议!)才能生产出完整/可用的产品。不幸的是,我们并不是从Continuos Integration的心态开始的,所
哪些指标表明应该使用企业集成模式框架?另一方面,哪些指标表明应该坚持使用简单的旧代码进行逻辑流? 就我而言,我们将 Spring Integration 应用于映射/处理应用程序,该应用程序从数据库读
我们在 XML 中有以下工作配置,并正在尝试转换为 DSL。不确定它们是否等效,也尝试使用 inboundAdapter。但是,我无法弄清楚如何在那里设置与并发相关的值。有人可以建议他们是否在 DSL
所以我在玩这个: factors :: Integral a => a -> [a] factors n = filter (\d -> n `rem` d == 0) . takeWhile (\d
我是 Spring 集成的新手,正在尝试建模一个流程,其中我通过 HTTP 进行同步请求和响应,但也是交付的同一流程的一部分将响应发送到队列,对其进行后处理,并让一个单独的进程使用该响应。所以从调用流
我有一个 Spring Integration Flow 项目,它公开了一个 Rest 网关,在收到 Rest POST 请求后,它会执行一些小逻辑。基于一些有效负载参数,我想动态激活另一个 Spri
我浏览了 Internet,在 Spring 论坛上发帖,并阅读了几乎全部在线文档,但我无法弄清楚 Spring Integration 是否可以在单个多资源 (JTA) 事务中处理多个消息。这对于我
我正在查看 spring-projects/spring-integration-samples 中的聚合器示例。 https://github.com/spring-projects/spring-
我正在查看 spring-projects/spring-integration-samples 中的聚合器示例。 https://github.com/spring-projects/spring-
我有一个 spring-integration接受 org.w3c.dom.Document 并返回域对象的转换器。这很好。如果缺少元素,我会引发应用程序异常。 但是,我想将该异常放到错误 chann
我显然已经通读了 documentation , 但我无法找到更详细的幕后情况描述。具体来说,有几个行为我很疑惑: 一般设置 import numpy as np from scipy.integra
我正在使用 Spring Integration 使用以下配置从目录中读取文件。但是,我希望在找到任何文件后停止轮询,直到服务不再重新启动为止。有什么方法可以在运行时更改轮询器延迟或在运行时启动/停止
我是一名优秀的程序员,十分优秀!