Good morning Achim

Thanks, it did work, you made my life a better place to be.. I tried a lot 
of variants but not your particular one..


regards Nino

On Wednesday, August 30, 2017 at 6:19:34 AM UTC+2, Achim Nierbeck wrote:
>
> Hi, 
>
> did you try to follow the description on
>
> https://ops4j1.jira.com/wiki/spaces/paxweb/pages/12059279/Advanced+Jetty+Configuration
>  
>
> in your case this would look like the following: 
>
> <Get name="handler">
>     <Call name="addHandler">
>       <Arg>
>     <New class="org.eclipse.jetty.server.handler.StatisticsHandler">
>         </New>
>       </Arg>
>     </Call>
> </Get>
>
> regards, Achim
>
> 2017-08-29 14:47 GMT+02:00 nino martinez wael <[email protected] 
> <javascript:>>:
>
>> I tried adding this:
>>
>>   <Get id="oldhandler" name="handler" />
>> <Set name="handler">
>>   <New id="StatsHandler" 
>> class="org.eclipse.jetty.server.handler.StatisticsHandler">
>>     <Set name="handler"><Ref refid="oldhandler" /></Set>
>>   </New>
>> </Set>
>>
>> but that just breaks everything, webconsole or my applications does not 
>> startup.. I do get the nice view of stats in jmx.. 
>>
>> On Tue, Aug 29, 2017 at 1:56 PM, nino martinez wael <
>> [email protected] <javascript:>> wrote:
>>
>>> Hi 
>>>
>>> How am I able to add this 
>>> http://www.eclipse.org/jetty/documentation/9.4.6.v20170531/statistics-handler.html
>>>  
>>> to all handlers.. In my project we are both using https and http, and I 
>>> want to know the basic information such as number of requests et.
>>>
>>> I've gotten so far that I can see that I can configure jetty here:
>>>
>>>
>>> https://ops4j1.jira.com/wiki/spaces/paxweb/pages/12059279/Advanced+Jetty+Configuration
>>>
>>> But I do not know what the handlers are called..
>>>
>>> I tried this as the last thing in jetty.xml, and it did not work:
>>>
>>> <Get name="handler">
>>>    
>>> <Call name="addBean">
>>>           <Arg>
>>>               <New id="ConnectionStatistics" class="org.eclipse.jetty.io
>>> .ConnectionStatistics"/>
>>>           </Arg>
>>>         </Call>
>>>    
>>> </Get>
>>>
>>> -- 
>>> -- 
>>> ------------------
>>> OPS4J - http://www.ops4j.org - [email protected] <javascript:>
>>>
>>> --- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "OPS4J" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/ops4j/3F1AHyICa38/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Best regards / Med venlig hilsen 
>> Nino Martinez
>>
>> -- 
>> -- 
>> ------------------
>> OPS4J - http://www.ops4j.org - [email protected] <javascript:>
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OPS4J" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & 
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master 
>
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to