-
1. Re: configuring jetty maxIdleTime and adding connector
ffang Feb 6, 2012 10:04 PM (in response to jjakub)Hi,
Please tell us exact FUSE ESB version you're using, that would be very helpful.
And you actually can specify port number for the connector, something like
This can set maxIdleTime for jetty listening port 8181.
This jetty.xml configuration is applicable for http-osgi service and cxf http-osgi transport which is based on http-osgi service.
Freeman
-
2. Re: configuring jetty maxIdleTime and adding connector
jjakub Feb 7, 2012 3:33 AM (in response to ffang) -
3. Re: configuring jetty maxIdleTime and adding connector
ffang Feb 7, 2012 3:42 AM (in response to jjakub)Hi,
What kind of transport you're using? Is it http-osgi transport?
Could you elaborate your project?
Freeman
-
4. Re: configuring jetty maxIdleTime and adding connector
jjakub Feb 7, 2012 4:15 AM (in response to ffang)probably it is http transport, fragments of configuration are here: http://fusesource.com/forums/thread.jspa?threadID=3685&tstart=0
Thanks.
-
5. Re: configuring jetty maxIdleTime and adding connector
watermelonjam_arnoldd May 24, 2012 2:30 PM (in response to ffang)Hi Freeman.
I'm encountering the same problem with a <jaxws:endpoint> using a similar version of FUSE ESB (4.4.1-fuse-03-06) with the http-osgi transport (address attr is "/Service", not a full URL). I've tried configuring the maxIdleTimeout in etc/jetty.xml and specifying the proper port (8181), but on startup, the message is:
org.ops4j.pax.web.pax-web-jetty - 1.0.3 | Connection on port 8181 cannot be open. Reason: Address already in use
I suspect this config is conflicting with pax-web-jetty startup. I did some digging, and found this outdated documentation on how to use a fragment bundle to configure pax-web-jetty. Is this the correct approach for http-osgi transport on FUSE ESB 4.4.1 and, if so, is there any place I can find the defaults that are already in use for that bundle (e.g. port 8181)? I've looked in the pax-web-jetty bundle, but there's no config properties file in there.
Thanks.
-
6. Re: configuring jetty maxIdleTime and adding connector
ffang May 24, 2012 8:56 PM (in response to watermelonjam_arnoldd)Hi,
It should be maxIdleTime but not maxIdleTimeOut.
So what you should have is
Also the message
Connection on port 8181 cannot be open. Reason: Address already in use
is harmless, your maxIdleTime configuration for default SelectChannelConnector already get picked up on port 8181.
And the fragment bundle thing you found is for old pax-web before 0.7.x IIRC, it's not applicable now.
Freeman
-
7. Re: configuring jetty maxIdleTime and adding connector
watermelonjam_arnoldd May 25, 2012 11:01 AM (in response to ffang)Thanks Freeman, that works well.
Regards,
D.