[JBoss Web Services] - JBoss6 webservice read timeout
by Oliver Specht
Oliver Specht [http://community.jboss.org/people/oliverspecht] created the discussion
"JBoss6 webservice read timeout"
To view the discussion, visit: http://community.jboss.org/message/607864#607864
--------------------------------------------------------------
Hi,
I tried to change the read timeout for my Webservice deployed on a JBoss6.
I tried the following options which I found over the internet :)
| | ((BindingProvider) services).getRequestContext().put("org.jboss.ws.timeout", 10000); |
| | ((BindingProvider) services).getRequestContext().put("javax.xml.ws.connect.timeout", 10000); |
| | ((BindingProvider) services).getRequestContext().put("javax.xml.ws.connect.timeout", 10000); |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.ws.request.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.ws.connect.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.internal.ws.request.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put("com.sun.xml.internal.ws.connect.timeout", 10000); // Timeout in millis |
| | ((BindingProvider) services).getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT, 10000); |
| | ((BindingProvider) services).getRequestContext().put(StubExt.PROPERTY_CONNECTION_TIMEOUT, 10000); |
None of them worked. Can anyone help me? This is very, very confusing.
My Webservice was created from a WSDL via JAX and looks like this:
/**
* SOAP-Service.
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated source version: 2.1
*/
@WebServiceClient(name = "<NAME>", targetNamespace = "<TARGET_NS>")
public class SmartWheelsService extends Service {
...
}
Thanks,
Oliver
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/607864#607864]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[jBPM] - Human Task View and "Could not connect to task server, refresh first" problem.
by Francisco Barros
Francisco Barros [http://community.jboss.org/people/francisco_barros] created the discussion
"Human Task View and "Could not connect to task server, refresh first" problem."
To view the discussion, visit: http://community.jboss.org/message/590059#590059
--------------------------------------------------------------
Hi all!
I've been trying to reproduce the screencast ( http://people.redhat.com/kverlaen/install-eclipse-jbpm.swf http://people.redhat.com/kverlaen/install-eclipse-jbpm.swf) linked at section "2.4. Using Eclipse Tooling" of "jBPM User Guide". I was stuck at 1:05, when, at the Human Task View, krisv name is entered at UserId and the button Refresh is clicked. I was getting "Could not connect to task server, refresh first" message. I've discovered that what was causing the problem was the installation of JBoss Tools 3.2 (before the installation I was able to reproduce the screencast *). To confirm, I uninstalled just Drools related plugins of JBoss Tools and could, then, reproduce the screencast without errors *.
My environment:
Eclipse Java EE Helios SR1 Win32 (not the default eclipse Java Helios that is configured to be retrieved at build.xml)
jbpm-5.1-SNAPSHOT
JBoss Tools 3.2 (Helios) Final.
* After uninstalling Drools related plugins from JBoss Tools I was *almost* able to identically reproduce the screencast. The only diference is that I can't see the image that represents process ongoing at Process Instance view (1:18).
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/590059#590059]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[JBoss Microcontainer] - JBoss 6.0: ignore persistence.xml in jar file
by Gonne Martens
Gonne Martens [http://community.jboss.org/people/gonne] created the discussion
"JBoss 6.0: ignore persistence.xml in jar file"
To view the discussion, visit: http://community.jboss.org/message/611442#611442
--------------------------------------------------------------
Hello!
As Sergey I want to ignore the persistence.xml in a jar lib placed in the lib folder of my ear.
I tried to use the AbstractIgnoreDeployer by placing a jboss-ignore.txt file in ear/META-INF.
Structure of my ear:
playground.ear
\ lib
\ playgroundTool.jar
*\ META-INF\persistence.xml*
\ META-INF
\ jboss-ignore.txt
\ playgroundEJB.jar
\ META-INF\persistence.xml
\ other jars and wars
content of jboss-ignore.txt:
lib/playgroundTool.jar/META-INF/persistence.xml
Debugging of the AbstractIgnoreDeployer showed me that the jboss-ignore.txt file is parsed and creates an instance of CollectionNameIgnoreMechanism with "lib/playgroundTool.jar/META-INF/persistence.xml" as ignored path. I am not sure that this is correct, but through further debugging I could see that only the ignoreName() method is called once for the name persistence.xml of the playground.ear deployment unit (the variable ignoredNames is always null, so the method returns false). The method ignorePath is never called.
How should it work right?
Please help!
Kind regards,
Gonne
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/611442#611442]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[Beginner's Corner] - Struggling with injecting singleton in 6.0
by Robin Hughes
Robin Hughes [http://community.jboss.org/people/rhinmass] created the discussion
"Struggling with injecting singleton in 6.0"
To view the discussion, visit: http://community.jboss.org/message/597183#597183
--------------------------------------------------------------
Hello,
I am having trouble figuring out how to inject a singleton into another class - in this case a servlet.
My singleton looks like this:
package com.robin.ejb
import javax.ejb.Singleton;
import javax.ejb.Startup;
@Singleton
@Startup
public class HelloWorld
{
public HelloWorld()
{
System.out.println("constructing HelloWorld");
}
public String sayHello() {
return "Hello World !!!";
}
}
My servlet looks like this:
import ...
import com.robin.ejb.HelloWorld;
@WebServlet(name="helloServlet", urlPatterns={"/hello"},
initParams={ @WebInitParam(name="nameParam", value="world")})
public class HelloServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@Inject
private HelloWorld hw;
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();
String nameParam = request.getParameter("nameParam");
if (nameParam == null)
nameParam = getServletConfig().getInitParameter("nameParam");
out.println("hello " + nameParam + " " + hw.sayHello());
out.flush();
out.close();
}
}
When I run this in JBoss AS 6.0.0.Final I get the following errors:
2011-04-01 10:23:43,299 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (Thread-2) Error installing to Start: name=vfs:///C:/jboss/jboss-6.0.0.Final/server/rbh/deploy/myapp-0.0.1.ear_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [HelloWorld] with qualifiers [@Default] at injection point [[field] @Inject private com.robin.webapp.HelloServlet.hw]. Possible dependencies [[Session bean [class com.robin.ejb.HelloWorld with qualifiers [@Any @Default]; local interfaces are [HelloWorld], Session bean [class com.robin.ejb.HelloWorld with qualifiers [@Any @Default]; local interfaces are [HelloWorld]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:139) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:162) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:377) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:363) [:6.0.0.Final]
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:388) [:6.0.0.Final]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597183#597183]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months
[EJB3] - Passing information via InvocationContext in interceptors
by Arjun Kumaar
Arjun Kumaar [http://community.jboss.org/people/arjun_kumaar] created the discussion
"Passing information via InvocationContext in interceptors"
To view the discussion, visit: http://community.jboss.org/message/612633#612633
--------------------------------------------------------------
Can I pass data in invocation context via remote method calls?
I have two stateless session beans
BeanA and BeanB
I have an interceptor for each bean
BeanAInterceptor for BeanA.methodA
BeanBInterceptor for BeanB.methodB
In BeanAInterceptor, I set some context data.
In BeanA.methodA, I get an handle to BeanB and call BeanB.methodB
In the process, BeanBInterceptor gets called and I want to read the context data
that I set in BeanAInterceptor, but I get null.
Is there any way to pass data via InvocationContext across remote calls if BeanA
and BeanB are deployed in
a. same jvm
b. different jvm
c. in a clustered environment.
In short I want to send data across ejbs, but via interceptors and not
as parameters to method calls.
I am pasting the relevant code below.
@Stateless
public class BeanA {
@Resource
SessionContext ctx;
@Interceptors(BeanAInterceptor.class)
public void methodA() {
BeanBRemote bRemote = ctx
.getBusinessObject(BeanB.class);
bRemote.methodB();
}
}
public class BeanAInterceptor {
@AroundInvoke
public Object interceptA(InvocationContext ctx) throws Exception {
Map<String, Object> ctxData = ctx.getContextData();
ctxData.put("key", "value");
return ctx.proceed();
}
}
@Stateless
public class BeanB {
@Interceptors(BeanBInterceptor.class)
public void methodB() {
//do something
return;
}
}
public class BeanBInterceptor {
@AroundInvoke
public Object interceptB(InvocationContext ctx) throws Exception {
Map<String, Object> ctxData = ctx.getContextData();
Object val = ctxData.get("key"); //I get val as null here
return ctx.proceed();
}
}
Thanks
Arjun
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/612633#612633]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 9 months