1. WS Client Timeout
在Jboss EAP 6中调用web service,发生以下错误:
Invoke has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Could not send Message
java.net.SocketTimeoutException: Read timed out
调用WS有两个超时参数:
- ConnectionTimeout
Specifies the amount of time, in milliseconds, that the client will attempt to establish a connection before it times out. The default is 30000 (30 seconds). 0 specifies that the client will continue to attempt to open a connection indefinitely. - ReceiveTimeout
Specifies the amount of time, in milliseconds, that the client will wait for a response before it times out. The default is 60000. 0 specifies that the client will wait indefinitely.
在Java 代码中可如下设置:
QName serviceName = new QName("namespaceURI", "serviceName"); QName portName = new QName("namespaceURI", "port"); Service service = Service.create("wsdl", serviceName); Dispatch<SOAPMessage> dispatch = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE); dispatch.getRequestContext().put("javax.xml.ws.client.connectionTimeout", 3 * 60 * 1000); dispatch.getRequestContext().put("javax.xml.ws.client.receiveTimeout", 5 * 60 * 1000); SOAPMessage response = dispatch.invoke(msg);
2. JMS Client Timeout
Got an error while processing JMS: Failed to connect to any server. Servers tried: Operation failed with status WAITING after 5000 MILLISECONDS
Properties props = new Properties(); // timeout is in milli. seconds. Here we configure a 10 second timeout props.put("jboss.naming.client.connect.timeout", "10000"); Context context = new InitialContext(props);
相关推荐
jboss-eap-fp-src-4.3.0.CP05_FP01.zip jboss-eap-fp-src-4.3.0.CP05_FP01.zip
官方离线安装包,亲测可用
jboss-eap-6.4.0.zip
jboss-eap-7.1.0 jboss-eap-7.1.0 jboss-eap-7.1.0 jboss-eap-7.1.0 jboss-eap-7.1.0
jboss-eap-7.2.6-patch,jboss补丁包
dbDiff.zip,db diff是一个数据库模式比较工具database schema diff工具
The RESTEasy workbook that follows provides step-by-step instructions for installing, configuring, and running several working JAX-RS examples, using the JBoss RESTEasy implementation of JAX-RS 2.0. ...
jboss-eap-7.0.0-installer.jar~ ~
这是一个示例项目,展示了一种利用 Apache Commons Pool 创建和维护 JAX-WS 客户端代理池的方法。 将部署两件事:一个 JAX-WS 端点和一个“客户端”servlet。 调用 servlet 时,它将创建一个代理对象池,并使用该池...
jboss-eap-6.3.0软件和源码.zip
jboss-eap-6.2.0,javaweb的服务器,性能稳定, 比jboss4更好用
JBossTools-ALL-win32-3.0.0.CR2-
JBoss支持EJB 1.1和EJB 2.0 EJB3.0的规范,它是一个管理EJB的容器和服务器。类似于Sun's J2SDK Enterprise Edition(J2EE),JBoss的目标是一个源代码开放的J2EE环境。但是JBoss核心服务仅是提供EJB服务器。JBoss不...
helloworld-ws:Hello World JAX-WS Web 服务作者:李纽森级别:初学者技术:JAX-WS 摘要:部署捆绑在 WAR 存档中的基本 JAX-WS Web 服务目标产品:EAP 产品版本:EAP 6.1、EAP 6.2、EAP 6.3 来源: : 它是什么?...
jboss-eap-6.3.0 ,windows 64位 安装包,可用的,欢迎下载
jboss-eap-5.0.2.zip,来自于官网,因为改动代码需要用到比较老的jboss-eap包,所以自己找到了这个资源,免费共享给大家,适用于JDK1.6
jboss-eap-7.2.0 jboss企业版7.2,官网速度慢,在csdn备份后续可用...
helloworld-rs快速入门演示了在Red Hat JBoss企业应用平台中使用CDI 1.0和JAX-RS的方法。 系统要求 该项目生成的应用程序旨在在Red Hat JBoss Enterprise Application Platform 6.1或更高版本上运行。 构建该项目...
myeclipse 远程调试jboss as7或者jboss eap6,包括windows运行环境和linux运行环境分别介绍,同时jboss as7和jboss eap6的配置也有所不同。
JBoss EAP (Enterprise Application Platform) 7.4.0是一个Java应用服务器,提供了一套完整的开发、部署和管理企业级应用程序的解决方案。下面是对其解锁内容概要以及适合人群、使用场景和目标的简要说明: 解锁...