-
1. Re: Session Timeout vs. Request Timeout
lafr May 9, 2014 3:41 PM (in response to jordanbaucke)1 of 1 people found this helpfulAs far as I know the session-timeout is for an idle web-session.
The timeout for JAX-WS is something totally different.
Just recently I found out how to increase the timeout for long lasting web service requests or even to disable the timeout:
public static void modifyReceiveTimeout( final Object o ) { Client client = ClientProxy.getClient( o ); HTTPConduit conduit = (HTTPConduit)client.getConduit(); HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setReceiveTimeout( 0 ); conduit.setClient( httpClientPolicy ); }
After getting port interface use the method above to change it:
MailServiceWSI wsi = this.getPort( new QName( "http://core.ws.fn.mbisoftware.biz/", "MailServiceWSPort" ), MailServiceWSI.class ); Helper.modifyReceiveTimeout( wsi ); -
2. Re: Re: Session Timeout vs. Request Timeout
jordanbaucke May 9, 2014 7:06 PM (in response to lafr)Thanks Frank,
Perhaps I'm not using a JAX-WS as I thought was the best way to describe it.
Unless there is an invocation for all the classes annotated this way that I can attach the helper you described too?
There is an @ApplicationPath defined in another class (which sets the proceeding path), perhaps I could add it here?
package rest; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @ApplicationPath("/rest") public class restapplication extends Application { }
My methods are defined as public classes, with @Path parameters, like so:
@Path("/mycall/") public class BulkCreate { * * @param token * @param objects * @return */ @SuppressWarnings({ "unchecked" }) @POST @Path("/bulk/create") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public Response query(@QueryParam("token") String token, Object[] object){ ... } }
I don't know how one would define "this" type of call? I guess its a REST Call with RestEasy (with some query params)
-
3. Re: Session Timeout vs. Request Timeout
stajmik Mar 29, 2019 9:50 AM (in response to jordanbaucke)I thing you need increase transaction timeout.
In Management Console:
Configuration: Subsystems Subsystem: Transactions - Default timeout