- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration
类的一些代码示例,展示了WebServiceDeclaration
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceDeclaration
类的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.integration.WebServiceDeclaration
类名称:WebServiceDeclaration
[英]A minimum web service meta data representation that offers a generic way to access more fine grained meta data through #getAnnotation(Class)
[中]一种最小的web服务元数据表示,它提供了一种通过#getAnnotation(类)访问更细粒度元数据的通用方法
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
private boolean isWebServiceBean(WebServiceDeclaration container)
{
boolean isWebServiceBean = false;
boolean isWebService = container.getAnnotation(WebService.class) != null;
boolean isWebServiceProvider = container.getAnnotation(WebServiceProvider.class) != null;
isWebServiceBean = isWebService || isWebServiceProvider;
return isWebServiceBean;
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
/**
* Creates new JAXWS EJB3 deployment and registers it with deployment unit.
*
* @param dep webservice deployment
* @param unit deployment unit
*/
@Override
protected void build(final Deployment dep, final DeploymentUnit unit)
{
this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep);
this.getAndPropagateAttachment(JBossMetaData.class, unit, dep);
this.log.debug("Creating JAXWS EJB3 endpoints meta data model");
for (final WebServiceDeclaration container : ASHelper.getJaxwsEjbs(unit))
{
final String ejbName = container.getComponentName();
this.log.debug("EJB3 name: " + ejbName);
final String ejbClass = container.getComponentClassName();
this.log.debug("EJB3 class: " + ejbClass);
final Endpoint ep = this.newEndpoint(ejbClass, ejbName, dep);
ep.setProperty(ASHelper.CONTAINER_NAME, container.getContainerName());
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
ejbMetaData.setEjbName(container.getComponentName());
ejbMetaData.setEjbClass(container.getComponentClassName());
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* Creates new JBoss agnostic EJB bean meta data model.
*
* @param jbossEjbMD jboss EJB meta data
* @return webservices EJB meta data
*/
private EJBMetaData newEjbMetaData(final WebServiceDeclaration jbossEjbMD)
{
final MessageDriven mdbAnnotation = jbossEjbMD.getAnnotation(MessageDriven.class);
if (mdbAnnotation == null)
{
this.log.debug("Creating JBoss agnostic EJB3 meta data for session bean: "
+ jbossEjbMD.getComponentClassName());
return new SLSBMetaData();
}
else
{
this.log.debug("Creating JBoss agnostic EJB3 meta data for message driven bean: "
+ jbossEjbMD.getComponentClassName());
final MDBMetaData mdbMD = new MDBMetaData();
final String destinationName = this.getActivationProperty("destination", mdbAnnotation.activationConfig());
mdbMD.setDestinationJndiName(destinationName);
return mdbMD;
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
final String ejbName = container.getComponentName();
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* Creates new JAXWS EJB3 deployment and registers it with deployment unit.
*
* @param dep webservice deployment
* @param unit deployment unit
*/
@Override
protected void build(final Deployment dep, final DeploymentUnit unit)
{
this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep);
this.getAndPropagateAttachment(JBossMetaData.class, unit, dep);
this.log.debug("Creating JAXWS EJB3 endpoints meta data model");
for (final WebServiceDeclaration container : ASHelper.getJaxwsEjbs(unit))
{
final String ejbName = container.getComponentName();
this.log.debug("EJB3 name: " + ejbName);
final String ejbClass = container.getComponentClassName();
this.log.debug("EJB3 class: " + ejbClass);
final Endpoint ep = this.newEndpoint(ejbClass, ejbName, dep);
ep.setProperty(ASHelper.CONTAINER_NAME, container.getContainerName());
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600x
PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
ejbMetaData.setEjbName(container.getComponentName());
ejbMetaData.setEjbClass(container.getComponentClassName());
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
/**
* Creates new JBoss agnostic EJB bean meta data model.
*
* @param jbossEjbMD jboss EJB meta data
* @return webservices EJB meta data
*/
private EJBMetaData newEjbMetaData(final WebServiceDeclaration jbossEjbMD)
{
final MessageDriven mdbAnnotation = jbossEjbMD.getAnnotation(MessageDriven.class);
if (mdbAnnotation == null)
{
this.log.debug("Creating JBoss agnostic EJB3 meta data for session bean: "
+ jbossEjbMD.getComponentClassName());
return new SLSBMetaData();
}
else
{
this.log.debug("Creating JBoss agnostic EJB3 meta data for message driven bean: "
+ jbossEjbMD.getComponentClassName());
final MDBMetaData mdbMD = new MDBMetaData();
final String destinationName = this.getActivationProperty("destination", mdbAnnotation.activationConfig());
mdbMD.setDestinationJndiName(destinationName);
return mdbMD;
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
final String ejbName = container.getComponentName();
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* Creates new JAXWS EJB3 deployment and registers it with deployment unit.
*
* @param dep webservice deployment
* @param unit deployment unit
*/
@Override
protected void build(final Deployment dep, final DeploymentUnit unit)
{
this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep);
this.getAndPropagateAttachment(JBossMetaData.class, unit, dep);
this.log.debug("Creating JAXWS EJB3 endpoints meta data model");
for (final WebServiceDeclaration container : ASHelper.getJaxwsEjbs(unit))
{
final String ejbName = container.getComponentName();
this.log.debug("EJB3 name: " + ejbName);
final String ejbClass = container.getComponentClassName();
this.log.debug("EJB3 class: " + ejbClass);
final Endpoint ep = this.newEndpoint(ejbClass, ejbName, dep);
ep.setProperty(ASHelper.CONTAINER_NAME, container.getContainerName());
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss500x
PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
ejbMetaData.setEjbName(container.getComponentName());
ejbMetaData.setEjbClass(container.getComponentClassName());
代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1
private boolean isWebServiceBean(WebServiceDeclaration container)
{
boolean isWebServiceBean = false;
boolean isWebService = container.getAnnotation(WebService.class) != null;
boolean isWebServiceProvider = container.getAnnotation(WebServiceProvider.class) != null;
isWebServiceBean = isWebService || isWebServiceProvider;
return isWebServiceBean;
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* Creates new JBoss agnostic EJB bean meta data model.
*
* @param jbossEjbMD jboss EJB meta data
* @return webservices EJB meta data
*/
private EJBMetaData newEjbMetaData(final WebServiceDeclaration jbossEjbMD)
{
final MessageDriven mdbAnnotation = jbossEjbMD.getAnnotation(MessageDriven.class);
if (mdbAnnotation == null)
{
this.log.debug("Creating JBoss agnostic EJB3 meta data for session bean: "
+ jbossEjbMD.getComponentClassName());
return new SLSBMetaData();
}
else
{
this.log.debug("Creating JBoss agnostic EJB3 meta data for message driven bean: "
+ jbossEjbMD.getComponentClassName());
final MDBMetaData mdbMD = new MDBMetaData();
final String destinationName = this.getActivationProperty("destination", mdbAnnotation.activationConfig());
mdbMD.setDestinationJndiName(destinationName);
return mdbMD;
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
final String ejbName = container.getComponentName();
代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1
if (isWebServiceBean(container))
String ejbName = container.getComponentName();
String epBean = container.getComponentClassName();
ep.setShortName(ejbName);
String containName = container.getContainerName();
if(null==containName)
throw new IllegalArgumentException("Target container name not set");
代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1
PortComponentSpec pcMetaData = container.getAnnotation(PortComponentSpec.class);
MessageDriven mdbMetaData = container.getAnnotation(MessageDriven.class);
ejbMetaData.setEjbName(container.getComponentName());
ejbMetaData.setEjbClass(container.getComponentClassName());
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* Returns true if EJB container is webservice endpoint.
*
* @param ejbContainerAdapter EJB container adapter
* @return true if EJB container is webservice endpoint, false otherwise
*/
public static boolean isWebServiceBean(final WebServiceDeclaration ejbContainerAdapter)
{
final boolean isWebService = ejbContainerAdapter.getAnnotation(WebService.class) != null;
final boolean isWebServiceProvider = ejbContainerAdapter.getAnnotation(WebServiceProvider.class) != null;
return isWebService || isWebServiceProvider;
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
if (isWebServiceBean(container))
String ejbName = container.getComponentName();
String epBean = container.getComponentClassName();
ep.setShortName(ejbName);
String containName = container.getContainerName();
if(null==containName)
throw new IllegalArgumentException("Target container name not set");
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* Builds JBoss agnostic EJB meta data.
*
* @param wsEjbsMD jboss agnostic EJBs meta data
* @param jbossEjbMD jboss specific EJB meta data
*/
private void buildEnterpriseBeanMetaData(final List<EJBMetaData> wsEjbsMD, final WebServiceDeclaration jbossEjbMD)
{
final EJBMetaData wsEjbMD = this.newEjbMetaData(jbossEjbMD);
if (wsEjbMD != null)
{
// set EJB name and class
wsEjbMD.setEjbName(jbossEjbMD.getComponentName());
wsEjbMD.setEjbClass(jbossEjbMD.getComponentClassName());
final PortComponentSpec portComponentAnnotation = jbossEjbMD.getAnnotation(PortComponentSpec.class);
if (portComponentAnnotation != null)
{
// set port component meta data
wsEjbMD.setPortComponentName(portComponentAnnotation.portComponentName());
wsEjbMD.setPortComponentURI(portComponentAnnotation.portComponentURI());
// set security meta data
final EJBSecurityMetaData wsEjbSecurityMD = new EJBSecurityMetaData();
wsEjbSecurityMD.setAuthMethod(portComponentAnnotation.authMethod());
wsEjbSecurityMD.setTransportGuarantee(portComponentAnnotation.transportGuarantee());
wsEjbSecurityMD.setSecureWSDLAccess(portComponentAnnotation.secureWSDLAccess());
wsEjbMD.setSecurityMetaData(wsEjbSecurityMD);
}
wsEjbsMD.add(wsEjbMD);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600x
private boolean isWebServiceBean(WebServiceDeclaration container)
{
boolean isWebServiceBean = false;
boolean isWebService = container.getAnnotation(WebService.class) != null;
boolean isWebServiceProvider = container.getAnnotation(WebServiceProvider.class) != null;
isWebServiceBean = isWebService || isWebServiceProvider;
return isWebServiceBean;
}
}
我是 JBoss 的新手,发现了很多不同的术语 - JBoss EAP、JBoss Server、Wildfly、Jboss Web,以及很多不是最新的或针对旧版本的文档。 我从哪里开始了解 JBos
JBoss ESB 服务器之间有什么区别(可在此处获得:http://jbossesb.jboss.org/downloads/) 和 JBoss fuse ( http://www.jboss.or
我在我的 PC 上安装了 JBoss 4 到目录 C:\JBoss4 并将环境变量 JBOSS_HOME 设置为此目录: JBOSS_HOME=C:\JBoss4 我需要在同一台 PC 上安装 JB
我有一个 JBoss 服务器正在运行并且想要部署一个服务。 该服务连接到在以下 xml 文件中配置的数据库 jdbc:postgresql://localhost:543
jboss 中的超时是如何工作的?网络应用程序如何知道何时重定向到登录页面? 只是为了澄清! -我知道如何在 jboss 上配置超时。我的问题是,Jboss 如何知道 session 已超时以及何时超
使用JBoss Forge启动新项目时,默认情况下该项目是使用Maven构建系统创建的。我如何利用Forge 2. *的Gradle插件使用Gradle而不是Maven创建项目? % forge Us
当前配置: 正在运行的16个Pod,基于JBoss TCP的集群以及google ping发现。容器作为状态集部署在Kubernetes集群上。 没有负载的初始群集按预期运行,没有任何单个问题,但是当
我以为这将是一个 JBoss 常见问题解答,但我找不到它。 我想同时运行 JBoss 4 和 JBoss 5。我通过将端口的前导数字更改为 9 手动更改了 JBoss 5 服务器/默认实例上的所有端口
我们在 JBoss AS 6 上实现了一些服务作为我们希望迁移到 JBoss AS 7 的单例服务。 这些服务在 jboss-service.xml 文件中声明,该文件位于 EJB 包中,类似于以下代
例如,如何确定我的简单 JBoss 4.2.3 服务器正在监听端口 8080? 这是我最接近的一次,但这不起作用: MBeanServerConnection server = (MBeanServe
我正在尝试找到从语法上确定我的程序是在 Jboss 5 还是 Jboss 7 (eap-6.1) 上运行的最佳方法。到目前为止,我找到的方法是特定于 jboss 5 或 jboss 7 的,这不起作用
我在域模式下使用 JBoss 6.4.8 版本。我想通过 CLI 添加这 4 个系统属性: 1- /host=myserver/server-config=node/system-property=j
在 JBoss 4 中,您可以在文件中设置对象的部署顺序( .jar 、 .war 、 .sar 等...): conf/xmdesc/org.jboss.deployment.MainDeploye
概括地说,JBoss 5 的关闭有什么作用?如果我只是杀死 java 进程而不是优雅地关闭 JBoss,可能会出现什么问题? 对于我的应用程序来说,正常的 JBoss 5 关闭大约需要 6 分钟,这个
我最近在 CentOS 6.7 服务器上安装了 JBoss AS 7。 jboss as 工作正常。为了测试,我部署了一个 .war 文件并对其进行了测试,效果很好!但现在我尝试从我的台式电脑访问相同
我有 jboss 应用程序。并想自动测试部署。并希望将此任务作为项目添加到 Hudson 我的愿景基于以下阶段: 将我的应用程序放到 JBoss(复制耳朵、配置、库等) 运行 JBoss 我有一台 L
我对 JBoss 很陌生。目前我有一个需求,我需要在 JBoss 上部署应用程序(已经在 Tomcat 上运行)。我下载了 JBoss,但是版本 7 中的目录结构不同。 我正在运行 bin\stand
我是 JBoss AS 7 的新手。我尝试在 JBoss AS 7 上部署我的 war 文件,这似乎工作正常。我的问题是在哪里可以看到部署的内容。 我希望它像 Tomcat 一样,它应该有一个探索的
我使用多播方法在两个不同的 JBoss 服务器之间配置了集群。 当我启动两个 JBoss 服务器时,两个服务器都将连接。 一天后,我收到以下消息 server.log 中的群集开始显示错误 05:28
为了打开/关闭我们产品的跟踪-“类别”或“记录器”标签,我们应该在jboss-log4j.xml中使用什么? 默认情况下,JBoss在jboss-log4j.xml中使用“类别”。 但据我所知,不赞成
我是一名优秀的程序员,十分优秀!