I created the webservice client like shown in the tutorial

http://wiki.jboss.org/wiki/Wiki.jsp?page=WSRPCClientStepByStep

now i want to set the connection timeout:


Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1199");
env.setProperty("j2ee.clientName", "ProcessEngineServiceWS");
InitialContext iniCtx = new InitialContext(env);

ProcessEngineServiceService service = 
(ProcessEngineServiceService)iniCtx.lookup("java:comp/env/service/ProcessEngineService");
ProcessEngineService endpoint = service.getProcessEngineService();

this 2 line do not have eny effect of the behavior of jboss 4.03SP1

((Stub)endpoint).setTimeout(new Integer(20000));
((Stub)endpoint)._setProperty(Stub.PROPERTY_CLIENT_TIMEOUT, new 
Integer(200000));


endpoint.processProductTaskList(tasklist,id,callback_url);

it is waiting for 5 min to raise a

2006-02-15 12:30:12,451 ERROR [org.jboss.webservice.client.PortProxy] Port 
error
java.net.ConnectException: Connection timed out

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923872#3923872

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923872


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to