Re: Support for actors/asynchronous request handling

2017-10-28 Thread Yasser Zamani
On 10/26/2017 12:09 PM, Yasser Zamani wrote: > With thanks to Łukasz, he pointed out a good thing, abstraction by a > plugin. I thought more and saw reflection maybe makes core somehow > rough-and-tumble. Now I'm going to go with a plugin named > struts-servlet3-plugin. I'll improve the core s

Re: Support for actors/asynchronous request handling

2017-10-26 Thread Yasser Zamani
On 10/23/2017 4:07 PM, Christoph Nenning wrote: > Would it be possible to have servlet-api 3 as optional dependency? I tried but cannot work. Currently javac cannot union same classes in same paths ;) Maven says I pick first found class (i.e. cannot pick union of classes). > I'm not so happy

Re: Support for actors/asynchronous request handling

2017-10-23 Thread Yasser Zamani
On 10/23/2017 4:07 PM, Christoph Nenning wrote: > YAY! > Congrats :) Thank you :) I became very excited when I saw it works. I would like to say it works as you wished before. Do you remember you wished a mechanism to wake up Struts for resuming? That is AsyncContext.dispatch() which wakes up

Re: Support for actors/asynchronous request handling

2017-10-23 Thread Christoph Nenning
> > I would add an abstraction to cover direct need for Servlet 3.0 Async > > API. I don't know how do you want to implement this (directly in the > > Core or via a plugin) but having such abstraction give us flexibility > > and allows use different implementations. > > Today I successfully got an

Re: Support for actors/asynchronous request handling

2017-10-23 Thread Yasser Zamani
On 10/23/2017 12:54 PM, Lukasz Lenart wrote: > I would add an abstraction to cover direct need for Servlet 3.0 Async > API. I don't know how do you want to implement this (directly in the > Core or via a plugin) but having such abstraction give us flexibility > and allows use different implementa

Re: Support for actors/asynchronous request handling

2017-10-23 Thread Lukasz Lenart
2017-10-22 10:08 GMT+02:00 i...@flyingfischer.ch : > Servlet API 3.0 is needs Java 6. As far as I remember Struts minimal > requirements are also Java 6. I do not see anything hindering us in > upgrading Struts officially to Servlet API 3.0? This isn't a case with Java 7 but rather how many users

Re: Support for actors/asynchronous request handling

2017-10-23 Thread Lukasz Lenart
2017-10-21 14:51 GMT+02:00 Yasser Zamani : > Just one blocking problem :( Currently Struts is on servlet-api 2.4. I > remember Struts 2.6 will have servlet 2.5. And so so ... As I need > servlet 3, I have to wait for Struts 3 ?! :/ > > I thought about keep Struts dependencies unchanged and doing my

Re: Support for actors/asynchronous request handling

2017-10-23 Thread Christoph Nenning
Hi, According to wiki it was intended to switch to servlet-api 3 with struts 3: https://cwiki.apache.org/confluence/display/WW/Struts+Next But IMHO we could use servlet api 3 already for struts 2.6. Regards, Christoph > > After some studies on Strut's internals, Servlet 3's spec, other

Re: Support for actors/asynchronous request handling

2017-10-22 Thread i...@flyingfischer.ch
Am 21.10.2017 um 14:51 schrieb Yasser Zamani: > With thanks to Struts good design, fortunately, it was not as hard as I > thought and I almost finished :) > > Just one blocking problem :( Currently Struts is on servlet-api 2.4. I > remember Struts 2.6 will have servlet 2.5. And so so ... As I nee

Re: Support for actors/asynchronous request handling

2017-10-21 Thread Yasser Zamani
On 10/19/2017 4:12 PM, Yasser Zamani wrote: > After some studies on Strut's internals, Servlet 3's spec, other > framework's internals and a few blog posts, I think I'm good to go for > SLS case (Short request processing, Long action execution, Short > response processing) :) > > I putted thi

Re: Support for actors/asynchronous request handling

2017-10-19 Thread Yasser Zamani
After some studies on Strut's internals, Servlet 3's spec, other framework's internals and a few blog posts, I think I'm good to go for SLS case (Short request processing, Long action execution, Short response processing) :) I putted this on monitor at [1]. [1] https://issues.apache.org/jira/b

Re: Support for actors/asynchronous request handling

2017-10-18 Thread Lukasz Lenart
Nice :) 2017-10-18 13:26 GMT+02:00 Yasser Zamani : > Interestingly, I spotted a user request for this support at [1] :) > > [1] > https://stackoverflow.com/questions/46808518/struts-send-response-from-asynccontext > > On 10/10/2017 1:23 PM, Yasser Zamani wrote: >> If @dev agree I have an idea. For

Re: Support for actors/asynchronous request handling

2017-10-18 Thread Yasser Zamani
Interestingly, I spotted a user request for this support at [1] :) [1] https://stackoverflow.com/questions/46808518/struts-send-response-from-asynccontext On 10/10/2017 1:23 PM, Yasser Zamani wrote: > If @dev agree I have an idea. For first step, what do you think to > level-up it to filter lev

Re: Support for actors/asynchronous request handling

2017-10-10 Thread Yasser Zamani
On 10/9/2017 12:56 PM, Christoph Nenning wrote: > I'd rather have just a very thin wrapper around servlet api, like so: > - actions might be declared async, this causes struts to call > request.startAsync() > - applications using that must use their own threads to do work (as with > servlet api)

Re: Support for actors/asynchronous request handling

2017-10-09 Thread Christoph Nenning
gt; To: "dev@struts.apache.org" , > Date: 08.10.2017 08:32 > Subject: Re: Support for actors/asynchronous request handling > > > > > > On 10/6/2017 1:10 PM, Christoph Nenning wrote: > > > Hi, > > > > > > > > > > >

Re: Support for actors/asynchronous request handling

2017-10-07 Thread Yasser Zamani
ne such interface for actions also, then yes, I think we will have gain. Overall I think it's not as simple as it appears and needs advanced knowledge in http, servlets, filters and Strut's internals. Sincerely Yours, Yasser. [1] http://www.byteslounge.com/tutorials/asynchronous-servlets-in-jav

Re: Support for actors/asynchronous request handling

2017-10-06 Thread Christoph Nenning
general AsyncResult would be executed in SATP, too) ? Regards, Christoph > From: Yasser Zamani > To: "dev@struts.apache.org" , > Date: 04.10.2017 11:09 > Subject: Re: Support for actors/asynchronous request handling > > Dave, Christoph, Łukasz, hello, Eureka!

Re: Support for actors/asynchronous request handling

2017-10-04 Thread Yasser Zamani
Dave, Christoph, Łukasz, hello, Eureka! I think I have good news :) I think, now, I have good info which are helpful for Struts structural decisions and what and how we can do in Struts about asynchronous! After about one month fooling my computer ;) I think I can update this thread as below (

Re: Support for actors/asynchronous request handling

2017-08-22 Thread Lukasz Lenart
2017-08-21 19:03 GMT+02:00 Yasser Zamani : > @Lukasz, maybe I did not understand well but I studied and saw Struts > already allows calling same action in same time in parallel. What Struts > does not have now is SERVER SIDE ASYNC REQUEST PROCESSING. My studies > show async servlets don't mean clie

Re: Support for actors/asynchronous request handling

2017-08-21 Thread Yasser Zamani
Hello guys, thanks all for your writings, these days I studied more and please see below: On 8/21/2017 12:26 PM, Lukasz Lenart wrote: > 2017-08-18 10:19 GMT+02:00 Christoph Nenning : >> I think of it like async servlets. Execution of action could be delegated >> to some executor thread pool and e

Re: Support for actors/asynchronous request handling

2017-08-21 Thread Lukasz Lenart
2017-08-18 10:19 GMT+02:00 Christoph Nenning : > I think of it like async servlets. Execution of action could be delegated > to some executor thread pool and execution of result (which requires tcp > connection / http response stream) must be done with some callback. > > It is up to application to

Re: Support for actors/asynchronous request handling

2017-08-18 Thread Christoph Nenning
> > To find out why and how actor model can help Struts2, I searched a lot > but just found following [1] at [2]. > > I wonder if you @dev have anything in your mind about: Why and how actor > model can help specifically Struts2 ? I don't mean in detail but if for > example there is a general

Re: Support for actors/asynchronous request handling

2017-08-17 Thread Dave Newton
On Thu, Aug 17, 2017 at 10:44 AM, Yasser Zamani wrote: > Or if for example we can run interceptors in parallel. That would require developer knowledge since some interceptors are strictly order-dependent. Not impossible, but would require explicit configuration. The only real place I can see act