[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-05-14 Thread Arnaud Deprez (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283516#comment-15283516
 ] 

Arnaud Deprez commented on CAMEL-6707:
--

Thx [~davsclaus] for having updated the doc :-)

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
>Assignee: Claus Ibsen
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-04-22 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15253493#comment-15253493
 ] 

ASF GitHub Bot commented on CAMEL-6707:
---

Github user arnaud-deprez closed the pull request at:

https://github.com/apache/camel/pull/949


> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
>Assignee: Claus Ibsen
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-04-21 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15253444#comment-15253444
 ] 

Claus Ibsen commented on CAMEL-6707:


Thanks the code has been merged.

We need to update the wiki pages for docs how to use this new option
http://camel.apache.org/servlet

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
>Assignee: Claus Ibsen
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-04-18 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15246707#comment-15246707
 ] 

ASF GitHub Bot commented on CAMEL-6707:
---

GitHub user arnaud-deprez opened a pull request:

https://github.com/apache/camel/pull/949

CAMEL-6707: add async for servlet

Add async option in servlet.

# Remarks:
I have some issues to test servlet with arquillian & jetty 9. Apparently it 
doesn't take into account the option async-supported in the web.xml (see test). 
But it works well with tomcat and the jetty component (because here we register 
the servlet ourself correctly).

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/arnaud-deprez/camel CAMEL-6707

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/camel/pull/949.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #949


commit d1a466a96e5b09a87ad83002305ea16fc00c0985
Author: Arnaud Deprez 
Date:   2016-04-13T21:38:00Z

CAMEL-6707: add async for servlet




> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-04-15 Thread Arnaud Deprez (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15242830#comment-15242830
 ] 

Arnaud Deprez commented on CAMEL-6707:
--

Thx claus, I started to test it with jetty9 component.
I'm off for 3 days now, I'll take a look on monday and try to finish this asap 
:-)

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-04-14 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15242476#comment-15242476
 ] 

Claus Ibsen commented on CAMEL-6707:


There is also arquillian where you can use its shrinkwrap and whatnot to make a 
WAR that you can then deploy on an embedded jetty.

There is a little demo here
https://github.com/camelinaction/camelinaction2/tree/master/chapter9/arquillian-web

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-04-14 Thread Arnaud Deprez (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240871#comment-15240871
 ] 

Arnaud Deprez commented on CAMEL-6707:
--

Still need to make some test but the implementation is mostly done here 
https://github.com/arnaud-deprez/camel/tree/CAMEL-6707.
I met some problem with httpunit which is by the way not updated since 2008 
(http://httpunit.sourceforge.net/) and so it doesn't support servlet-api 3.x.
If you know another library that support servlet 3.x to test it, please let me 
know, I google a few but found nothing like httpunit.
So I think I'll try to test it with jetty 9.
Rgds,

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2016-04-12 Thread Arnaud Deprez (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15237345#comment-15237345
 ] 

Arnaud Deprez commented on CAMEL-6707:
--

If you don't mind, I'll send a patch soon for this!

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.18.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2015-09-27 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14910102#comment-14910102
 ] 

Claus Ibsen commented on CAMEL-6707:


Contributions is welcome.

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.17.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2015-07-10 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623269#comment-14623269
 ] 

Claus Ibsen commented on CAMEL-6707:


Karaf 2.4 is on servlet 3.0 also
karaf@root> la | grep -i servlet
[  80] [Active ] [] [   ] [   30] Servlet 3.0 (1.0)

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.16.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2015-07-10 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623271#comment-14623271
 ] 

Claus Ibsen commented on CAMEL-6707:


Anyone wanna work on a patch? 

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: 2.16.0
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2015-07-10 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623268#comment-14623268
 ] 

Claus Ibsen commented on CAMEL-6707:


We are on servlet 3.0 now. We could likely make that mandatory to require 3.0+ 
and offer async in camel-servlet.

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: Future
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2015-05-12 Thread Mikhail S (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541263#comment-14541263
 ] 

Mikhail S commented on CAMEL-6707:
--

The issue descriptions mentions a patch the was supposed to be attached if it 
works. 

So, did the patch work? I am wondering if I should just switch from EAP/Jboss 
to jetty that supports async processing. May be use Karaf container?
Also any recommendations to increase throughput and avoid thread bound nature 
of servlet processing is highly appreciated.



> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
> Fix For: Future
>
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2014-03-05 Thread David J. M. Karlsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13920763#comment-13920763
 ] 

David J. M. Karlsen commented on CAMEL-6707:


And here is another user with the same request: 
http://camel.465427.n5.nabble.com/Camel-Users-f465428i70.html

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
>Priority: Minor
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CAMEL-6707) Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext

2014-03-05 Thread David J. M. Karlsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-6707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13920694#comment-13920694
 ] 

David J. M. Karlsen commented on CAMEL-6707:


Any update on this? We´re in the same situation and have to create our own 
custom servlet to accommodate async processing.

> Asynchronous Mode In camel-servlet, Servlet 3.0 AsyncContext
> 
>
> Key: CAMEL-6707
> URL: https://issues.apache.org/jira/browse/CAMEL-6707
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-http, camel-servlet
>Affects Versions: 2.13.0
>Reporter: Jörg Schubert
>Priority: Minor
>
> My Goal is routing larger amounts of HTTP-Traffic 
> CamelServlet is blocking the HTTP-thread while message is being processed.
> I'm currently preparing a patch which uses AsyncContext and starts processor 
> in async mode. Hope that will improve throughput.
> The async feature is switchable by parameter. 
> I will attach a patch as soon as it works. 
> There is one point: To avoid conflicts geronimo-servlet_2.5_spec must be 
> replaced by geronimo-servlet_3.0_spec in parent pom.



--
This message was sent by Atlassian JIRA
(v6.2#6252)