Re: streaming in a large post body

2016-03-28 Thread Sergey Beryozkin

Hi Benson

I'd consider using InputStream (or JAXP Source if applicable) as a 
method parameter or use attachments given that CXF saves some of the 
data to the temp files...


Sergey

On 28/03/16 19:07, Benson Margulies wrote:

If I want to handle posts with more payload than I want to have in memory
all at once (with REST), what's recommended?




--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/


Re: URL that contains "service" returns CXF Service List in Karaf

2016-03-28 Thread Sergey Beryozkin

Hi

org.apache.cxf.servlet.service-list-path is a property that you can set 
in Karaf, to something like "/services-list", etc


Thanks, Sergey
On 28/03/16 14:13, josephkampf wrote:

I have a service that has some extended path information that include the
work service

Example:

http://localhost:8181/cxf/abcd/services

The Rest service is abcd and extended path info is /services.

I see that this is being done in the web.xml that CXF is using for the
CXFServlet.  How can I override this in Karaf?  Can I configure CXF to point
to a different web.xml file?

My current version of CXF is 2.7.11, however I will be moving to 3.1.4 soon.
So a solution that works for both or a solution for each would be much
appreciated.

Thanks,

Joe Kampf






--
View this message in context: 
http://cxf.547215.n5.nabble.com/URL-that-contains-service-returns-CXF-Service-List-in-Karaf-tp5767298.html
Sent from the cxf-user mailing list archive at Nabble.com.




--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/


streaming in a large post body

2016-03-28 Thread Benson Margulies
If I want to handle posts with more payload than I want to have in memory
all at once (with REST), what's recommended?


URL that contains "service" returns CXF Service List in Karaf

2016-03-28 Thread josephkampf
I have a service that has some extended path information that include the
work service

Example:

http://localhost:8181/cxf/abcd/services

The Rest service is abcd and extended path info is /services.

I see that this is being done in the web.xml that CXF is using for the
CXFServlet.  How can I override this in Karaf?  Can I configure CXF to point
to a different web.xml file?  

My current version of CXF is 2.7.11, however I will be moving to 3.1.4 soon. 
So a solution that works for both or a solution for each would be much
appreciated.

Thanks,

Joe Kampf






--
View this message in context: 
http://cxf.547215.n5.nabble.com/URL-that-contains-service-returns-CXF-Service-List-in-Karaf-tp5767298.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Combining CXF DOSGI & Tomcat

2016-03-28 Thread Christian Schneider
Like said ... if your cxf endpoint address starts like /path then you use
servlet transport. If you use a fully qualified address then the jetty
transport is used.

Christian

2016-03-28 15:13 GMT+02:00 Setya :

> Hi Christian,
>
> Thank you for your explanation.
>
> How does using / make me using servlet transport instead if
> Jetty's.
>
> I mean how do I know which 1 I'm currently using ?
>
> Thanks & Regards,
>
> Setya
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Combining-CXF-DOSGI-Tomcat-tp5765387p5767297.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de


Open Source Architect
http://www.talend.com



Re: Combining CXF DOSGI & Tomcat

2016-03-28 Thread Setya
Hi Christian,

Thank you for your explanation.

How does using / make me using servlet transport instead if
Jetty's.

I mean how do I know which 1 I'm currently using ?

Thanks & Regards,

Setya



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Combining-CXF-DOSGI-Tomcat-tp5765387p5767297.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Combining CXF DOSGI & Tomcat

2016-03-28 Thread Christian Schneider
The jetty transport will create a new jetty instance internally and listen
on the specified port. It directly depends on jetty.

The servlet transport uses the OSGi HttpService. It only depends on the
HttpService API. So to make it work you need to install a HttpService
implementation. By default this is pax-web with the jetty backend. To use
tomcat you need to install a HttpService based on Tomcat. I think pax-web
might already provide this but I am not sure.

Christian

2016-03-27 14:48 GMT+02:00 Setya :

> Hi Christian,
>
> Thank you for your hint.
>
> > As far as I can tell it only will work with the servlet transport. So
> make
> > sure you set an address like "/myservice". This will make CXF choose the
> > servlet transport instead of the jetty transport.
>
> Could you please elaborate more on difference between servlet & jetty
> transport ?
>
> >  You will also need to
> > make sure you have a HTTPService present that is backed by tomcat.
>
> In Karaf 4.0.3 I found only the following Tomcat related features:
>
> pax-http-tomcat
> pax-war-tomcat
>
> Are they enough to accomplish the task ?
>
> Sorry, I'm pretty new to this stuff.
>
> Thanks & Regards,
> Setya
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Combining-CXF-DOSGI-Tomcat-tp5765387p5767258.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de


Open Source Architect
http://www.talend.com