Ah yes that worked very nicely :D

Spanks!

Chris,

@ChriChristo7 
{ https://twitter.com/ChrisChristo7 }
{ http://ChrisChristo7.tumblr.com }

LinkedIn { https://linkedin.com/in/ChrisChristo }
Angel { https://angel.co/chris-christo }
GitHub { https://github.com/ChrisChristo }

On 2 Jul 2013, at 12:52, Romain Manni-Bucau <[email protected]> wrote:

> yes
> 
> that said you have another solution since you can configure the cxf bus too
> with the same kind of properties (providers doesn't apply):
> 
> "org.apache.openejb.cxf.bus.features":
> "org.apache.cxf.feature.LoggingFeature" would do the trick
> 
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
> 
> 
> 
> 2013/7/2 Chris.Christo <[email protected]>
> 
>> Hey thanks Romain that worked :D
>> 
>> Out of curiosity, why does the features property only work in the
>> openejb-jar.xml and not in system properties, when the providers property
>> works?
>> 
>> Is it a case that the providers property is a special case that has been
>> implemented to be picked up at the system properties reading stage but
>> others have not?
>> 
>> Thanks again,
>> 
>> Chris,
>> 
>> @ChriChristo7
>> { https://twitter.com/ChrisChristo7 }
>> { http://ChrisChristo7.tumblr.com }
>> 
>> LinkedIn { https://linkedin.com/in/ChrisChristo }
>> Angel { https://angel.co/chris-christo }
>> GitHub { https://github.com/ChrisChristo }
>> 
>> On 2 Jul 2013, at 12:30, Romain Manni-Bucau <[email protected]> wrote:
>> 
>>> as said before system properties doesn't work for it i think,
>>> openejb-jar.xml is the place to put the config:
>>> 
>>> โ”Œ( rmannibucau @ ubuntu )โ”€( 1.7.0 -:- 3.1.0-alpha-1 )
>>> โ””( /tmp/rest-logging )ยท> cat src/main/resources/META-INF/openejb-jar.xml
>>> <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1";>
>>> <pojo-deployment class-name="jaxrs-application">
>>>   <properties>
>>>     cxf.jaxrs.features = org.apache.cxf.feature.LoggingFeature
>>>   </properties>
>>> </pojo-deployment>
>>> </openejb-jar>
>>> 
>>> 
>>> *Romain Manni-Bucau*
>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>>> *Blog: **http://rmannibucau.wordpress.com/*<
>> http://rmannibucau.wordpress.com/>
>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>>> *Github: https://github.com/rmannibucau*
>>> 
>>> 
>>> 
>>> 2013/7/2 Chris.Christo <[email protected]>
>>> 
>>>> Hey Romain,
>>>> 
>>>> Thanks for the response. I want to get it setup in my openejb.json
>> config.
>>>> 
>>>> It seems as though all I need is the following system property:
>>>> 
>>>> cxf.jaxrs.features = org.apache.cxf.feature.LoggingFeature
>>>> 
>>>> This works in tests and the request is logged in the output (run a mvn
>>>> test and see for yourself)
>>>> 
>>>> However, when running the server (sh
>>>> apache-openejb-4.6.0-SNAPSHOT/bin/openejb start) it doesn't output the
>>>> request in the log. I've added that property to the openejb.json
>>>> system-properties section.
>>>> 
>>>> If you have a mo, you mind seeing what I'm doing wrong?
>>>> 
>>>> Checkout here:
>>>> 
>>>> git clone https://github.com/ChrisChristo/rest-logging.git
>>>> 
>>>> 
>>>> 
>>>> Chris,
>>>> 
>>>> @ChriChristo7
>>>> { https://twitter.com/ChrisChristo7 }
>>>> { http://ChrisChristo7.tumblr.com }
>>>> 
>>>> LinkedIn { https://linkedin.com/in/ChrisChristo }
>>>> Angel { https://angel.co/chris-christo }
>>>> GitHub { https://github.com/ChrisChristo }
>>>> 
>>>> On 1 Jul 2013, at 14:44, Romain Manni-Bucau <[email protected]>
>> wrote:
>>>> 
>>>>> Hi
>>>>> 
>>>>> you can put it in openejb-jar.xml. You'll find samples with
>>>>> cxf.jaxrs.providers key, cxf.jaxrs.features exists too IIRC. It works
>> the
>>>>> same way excepted you define features instead of providers.
>>>>> 
>>>>> *Romain Manni-Bucau*
>>>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>>>>> *Blog: **http://rmannibucau.wordpress.com/*<
>>>> http://rmannibucau.wordpress.com/>
>>>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>>>>> *Github: https://github.com/rmannibucau*
>>>>> 
>>>>> 
>>>>> 
>>>>> 2013/7/1 Chris.Christo <[email protected]>
>>>>> 
>>>>>> Trying to configure OpenEJB standalone to log all rest requests.
>>>>>> 
>>>>>> How do I go about doing this?
>>>>>> 
>>>>>> I saw this on the Apache CXF website:
>>>>>> 
>>>>>> <beans xmlns:cxf="http://cxf.apache.org/core";
>>>>>> xsi:schemaLocation="http://cxf.apache.org/core
>>>>>>    http://cxf.apache.org/schemas/core.xsd";>
>>>>>> <jaxrs:server>
>>>>>> <jaxrs:features>
>>>>>>   <cxf:logging/>
>>>>>> </jaxrs:features>
>>>>>> <jaxrs:server>
>>>>>> </beans>
>>>>>> 
>>>>>> But not sure where to put it.
>>>>>> 
>>>>>> Chris,
>>>>>> 
>>>>>> @ChriChristo7
>>>>>> { https://twitter.com/ChrisChristo7 }
>>>>>> { http://ChrisChristo7.tumblr.com }
>>>>>> 
>>>>>> LinkedIn { https://linkedin.com/in/ChrisChristo }
>>>>>> Angel { https://angel.co/chris-christo }
>>>>>> GitHub { https://github.com/ChrisChristo }
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>> 
>> 

Reply via email to