Re: WO Long Response and iPhone

2010-01-15 Thread mschrag
I have the code to do this ... I'll send it. You get a multipart  
iterator on the request and then get a stream from the part.


Sent from my iPhone

On Jan 15, 2010, at 6:41 PM, "Chuck Hill"  
wrote:




On Jan 15, 2010, at 1:49 PM, Joe Moreno wrote:


Chuck,

I think the "streamToFilePath" binding is what you need to use.   
What bindings are you using?


I'm not using a WODynamicElement (i.e. WOFileUpload). This is a  
direct action for third party APIs to call so there is no UI. Or,  
am I misunderstanding your question?


That does make it harder.  See WORequest.contentInputStream()  and  
also on your disk /Developer/Examples/JavaWebObjects/FileUpload


Chuck



On Jan 14, 2010, at 21:47:45, Chuck Hill wrote:

It has been a while since I implemented this.  I think the  
"streamToFilePath" binding is what you need to use.  What bindings  
are you using?


Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:


Chuck,

   I hadn't considered that. I am using a direct action form post  
to handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are,  
there should not be any timeouts from the adaptor.  I've seen  
uploads of large files over slow connections to GVC.SiteMaker go  
on for a very, very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients  
who are using that instance will get blocked and may reach  
their timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does  
that sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file  
is broken up into little chunks and fired into a WOA bit by  
bit in sequence into a stream.  I haven't explicitly tested  
this from iPhoneOS, but it has been used in a production  
system from MacOS-X to move video files around.  You could  
build something similar to this.


I wouldn't up the time on the adaptor because other clients  
who are using that instance will get blocked and may reach  
their timeouts.


cheers.

Does anyone have a recommendation on how to manage a file  
upload from say, an iPhone, to a WO app (direct action) that  
takes longer than the WO adaptor time out? Or, should I just  
set the WO adaptor timeout to something like five or ten  
minutes to handle slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to msch...@mdimension.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Chuck Hill


On Jan 15, 2010, at 1:49 PM, Joe Moreno wrote:


Chuck,

I think the "streamToFilePath" binding is what you need to use.   
What bindings are you using?


I'm not using a WODynamicElement (i.e. WOFileUpload). This is a  
direct action for third party APIs to call so there is no UI. Or, am  
I misunderstanding your question?


That does make it harder.  See WORequest.contentInputStream()  and  
also on your disk /Developer/Examples/JavaWebObjects/FileUpload


Chuck



On Jan 14, 2010, at 21:47:45, Chuck Hill wrote:

It has been a while since I implemented this.  I think the  
"streamToFilePath" binding is what you need to use.  What bindings  
are you using?


Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:


Chuck,

	I hadn't considered that. I am using a direct action form post to  
handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are,  
there should not be any timeouts from the adaptor.  I've seen  
uploads of large files over slow connections to GVC.SiteMaker go  
on for a very, very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does  
that sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file  
is broken up into little chunks and fired into a WOA bit by bit  
in sequence into a stream.  I haven't explicitly tested this  
from iPhoneOS, but it has been used in a production system from  
MacOS-X to move video files around.  You could build something  
similar to this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file  
upload from say, an iPhone, to a WO app (direct action) that  
takes longer than the WO adaptor time out? Or, should I just  
set the WO adaptor timeout to something like five or ten  
minutes to handle slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Joe Moreno

Chuck,

 I think the "streamToFilePath" binding is what you need to use.   
What bindings are you using?


I'm not using a WODynamicElement (i.e. WOFileUpload). This is a direct  
action for third party APIs to call so there is no UI. Or, am I  
misunderstanding your question?


Thanks,
Joe



On Jan 14, 2010, at 21:47:45, Chuck Hill wrote:

It has been a while since I implemented this.  I think the  
"streamToFilePath" binding is what you need to use.  What bindings  
are you using?


Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:


Chuck,

	I hadn't considered that. I am using a direct action form post to  
handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are,  
there should not be any timeouts from the adaptor.  I've seen  
uploads of large files over slow connections to GVC.SiteMaker go  
on for a very, very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS- 
X to move video files around.  You could build something similar  
to this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file  
upload from say, an iPhone, to a WO app (direct action) that  
takes longer than the WO adaptor time out? Or, should I just  
set the WO adaptor timeout to something like five or ten  
minutes to handle slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Chuck Hill


On Jan 15, 2010, at 4:04 AM, msch...@mdimension.com wrote:

I thought that as long as bytes are flowing that the request won't  
timeout.


Correct.  The problem with the non-streaming version (the data  
binding, I think) is that Apache would accumulate the _entire_ upload  
before passing it to the WO adaptor.  During that time, the session  
could time out.  With streaming, the request goes to the app  
immediately and checks out the session preventing timeout.  The  
streaming upload was a very nice change both for memory management and  
for preventing session time out.


Chuck


Isn't the adaptor timeout based on lack of activity? I'm with chuck  
--- I have an app that does enormous (multigig) uploada to a DA  
without any timeouts.


ms

Sent from my iPhone

On Jan 15, 2010, at 12:48 AM, "Chuck Hill"  
wrote:


It has been a while since I implemented this.  I think the  
"streamToFilePath" binding is what you need to use.  What bindings  
are you using?


Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:


Chuck,

  I hadn't considered that. I am using a direct action form post  
to handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are,  
there should not be any timeouts from the adaptor.  I've seen  
uploads of large files over slow connections to GVC.SiteMaker go  
on for a very, very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does  
that sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file  
is broken up into little chunks and fired into a WOA bit by bit  
in sequence into a stream.  I haven't explicitly tested this  
from iPhoneOS, but it has been used in a production system from  
MacOS-X to move video files around.  You could build something  
similar to this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file  
upload from say, an iPhone, to a WO app (direct action) that  
takes longer than the WO adaptor time out? Or, should I just  
set the WO adaptor timeout to something like five or ten  
minutes to handle slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to msch...@mdimension.com




--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Chuck Hill


On Jan 15, 2010, at 12:21 AM, Andrew Lindesay wrote:


Hello Chuck;

Assuming an instance with concurrent request processing turned on,  
if there are a number of sessions (or even stateless users) on the  
same instance with a large volume of transactions, will the  
streaming WORequest multiplex with the other requests?


Not sure what you mean by "multiplex".  I think it may use a  
WOWorkerThread for the duration of the upload, but I am not certain.



My understanding was that the WebObjects adaptor queues requests  
into an instance rather than multiplexes them.


Instances will accept request up to # of Worker Threads + Listen Queue  
Size.  More than that, and the adaptor will return an error message.   
Worker Threads process in parallel, subject to single threaded locks  
in EOF.



So if a large transaction arrives from a slow pipe, will it not  
block the other requests until either the adaptor times it out or a  
response is returned to the client?


Not if concurrent request processing is on.  It will block that one  
session and WOWorkerThread (again, I think).



PS: The javadoc for WORequests refers to the "wis" request handler  
-- I hadn't heard of this one before!


That is for direct actions.

Chuck




cheers.

Are you using the streaming handler for uploads?  If you are, there  
should not be any timeouts from the adaptor.  I've seen uploads of  
large files over slow connections to GVC.SiteMaker go on for a  
very, very long time with no timeout.

...
I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.

...
In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


___
Andrew Lindesay
www.lindesay.co.nz



--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Mike Schrag
> So, there are three different flavors? Why "ERX" and "ERXWO" and "Ajax" of 
> the same thing?
> 
> Perhaps it is just a general rule for understanding Wonder: There are at 
> least three ways of doing anything: ak-ish, ms-ish, and ch-ish. :-)
> 
> It kind of makes as much sense as any other explanation
Another explanation might be that they do different things and meet the needs 
of different requirements?

AjaxLongResponse: uses an Ajax periodic update to refresh its component content 
as long as the isRunning binding returns true

ERXLongResponse: javadoc says it better than i can
 * ERXLongResponse is like WOLongResponsePage from JavaWOExtensions, but
 * it can be used as a component and doesn't need to be subclassed.
 * Instead, you provide a ERXLongResponseTask subclass and set it 
 * via either the bindings or explicitely.

ERXWOLongResponsePage: javadoc says it better than i can
 * ERXWOLongResponsePage is just like WOLongResponsePage except that it
 * cleans up editing context locks at the end of run() just like the behavior
 * at the end of a normal R-R loop.

WOLongResponsePage: this is the original -- all of JavaWOExtensions was brought 
into Wonder

so, WOLongResponsePage is just the bare-slate original

ERXWOLongResponsePage (which probably could be autopatched in, actually) is 
what you would use if you want autolocking in your long response.

ERXLongResponse is what you would use if you want to use a task object and that 
pattern instead of subclassing in the traditional way

AjaxLongResponse is just an Ajax refreshing wrapper around a component content, 
but might fit better in an environment that is already doing Ajax-y things.


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WO Long Response and iPhone

2010-01-15 Thread Ray Kiddy


On Jan 14, 2010, at 3:19 PM, Joe Moreno wrote:



	Does anyone have a recommendation on how to manage a file upload  
from say, an iPhone, to a WO app (direct action) that takes longer  
than the WO adaptor time out? Or, should I just set the WO adaptor  
timeout to something like five or ten minutes to handle slow/flaky  
EDGE connections?


Thanks,
Joe
___


There is probably some more documentation that can go into the use of  
this component. Actually, there is more than one choice for this.


com.webobjects.woextensions.WOLongResponsePage (Apple version)
er.ajax.AjaxLongResponse
er.extensions.concurrency.ERXLongResponsePage (and ERXLongResponseTask)
er.extensions.concurrency.ERXWOLongResponsePage
com.webobjects.woextensions.WOLongResponsePage (Wonder version)

So, there are three different flavors? Why "ERX" and "ERXWO" and  
"Ajax" of the same thing?


Perhaps it is just a general rule for understanding Wonder: There are  
at least three ways of doing anything: ak-ish, ms-ish, and ch-ish. :-)


It kind of makes as much sense as any other explanation

- ray

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread mschrag
I thought that as long as bytes are flowing that the request won't  
timeout. Isn't the adaptor timeout based on lack of activity? I'm with  
chuck --- I have an app that does enormous (multigig) uploada to a DA  
without any timeouts.


ms

Sent from my iPhone

On Jan 15, 2010, at 12:48 AM, "Chuck Hill"  
wrote:


It has been a while since I implemented this.  I think the  
"streamToFilePath" binding is what you need to use.  What bindings  
are you using?


Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:


Chuck,

   I hadn't considered that. I am using a direct action form post  
to handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are,  
there should not be any timeouts from the adaptor.  I've seen  
uploads of large files over slow connections to GVC.SiteMaker go  
on for a very, very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS- 
X to move video files around.  You could build something similar  
to this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file  
upload from say, an iPhone, to a WO app (direct action) that  
takes longer than the WO adaptor time out? Or, should I just  
set the WO adaptor timeout to something like five or ten  
minutes to handle slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to msch...@mdimension.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Andrew Lindesay
Hello Anjo;

> When you have - say - two instances and two requests and the one isn't 
> finished when the second comes in, yeah, sure. But they close down when they 
> are done.

Ok thanks for clarifying that; your account is different to how I had 
understood the system worked -- I had previously thought that the queueing 
occurred at the adaptor.  All the opening and closing of sockets must be a wee 
bit of an overhead, but I guess it works out.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Anjo Krank


Am 15.01.2010 um 09:58 schrieb Andrew Lindesay:
Does each apache handling thread eventually have an on-going  
connection to every instance in the deployment?


Yes? No? Doesn't compute?

When you have - say - two instances and two requests and the one isn't  
finished when the second comes in, yeah, sure. But they close down  
when they are done.


Cheers, Anjo
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Andrew Lindesay
Hello Anjo;

Does each apache handling thread eventually have an on-going connection to 
every instance in the deployment?

cheers.

> The (apache) adaptor maintains a connection per-thread. So you can easily 
> have a slow and a fast request concurrently. Only when they land in the app, 
> depending on if you have CCR on or off they will queue up.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Anjo Krank
The (apache) adaptor maintains a connection per-thread. So you can  
easily have a slow and a fast request concurrently. Only when they  
land in the app, depending on if you have CCR on or off they will  
queue up.


Cheers, Anjo

Am 15.01.2010 um 09:21 schrieb Andrew Lindesay:


Hello Chuck;

Assuming an instance with concurrent request processing turned on,  
if there are a number of sessions (or even stateless users) on the  
same instance with a large volume of transactions, will the  
streaming WORequest multiplex with the other requests?  My  
understanding was that the WebObjects adaptor queues requests into  
an instance rather than multiplexes them.


So if a large transaction arrives from a slow pipe, will it not  
block the other requests until either the adaptor times it out or a  
response is returned to the client?


PS: The javadoc for WORequests refers to the "wis" request handler  
-- I hadn't heard of this one before!


cheers.

Are you using the streaming handler for uploads?  If you are, there  
should not be any timeouts from the adaptor.  I've seen uploads of  
large files over slow connections to GVC.SiteMaker go on for a  
very, very long time with no timeout.

...
I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.

...
In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


___
Andrew Lindesay
www.lindesay.co.nz

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net

This email sent to a...@krank.net


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Andrew Lindesay
Hello Chuck;

Assuming an instance with concurrent request processing turned on, if there are 
a number of sessions (or even stateless users) on the same instance with a 
large volume of transactions, will the streaming WORequest multiplex with the 
other requests?  My understanding was that the WebObjects adaptor queues 
requests into an instance rather than multiplexes them.

So if a large transaction arrives from a slow pipe, will it not block the other 
requests until either the adaptor times it out or a response is returned to the 
client?

PS: The javadoc for WORequests refers to the "wis" request handler -- I hadn't 
heard of this one before!

cheers.

> Are you using the streaming handler for uploads?  If you are, there should 
> not be any timeouts from the adaptor.  I've seen uploads of large files over 
> slow connections to GVC.SiteMaker go on for a very, very long time with no 
> timeout.
...
>>> I wouldn't up the time on the adaptor because other clients who are using 
>>> that instance will get blocked and may reach their timeouts.
...
>> In my case, I don't think upping the adaptor timeout will block since 
>> WOAllowsConcurrentRequestHandling is set to true. Does that sound correct?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Chuck Hill
It has been a while since I implemented this.  I think the  
"streamToFilePath" binding is what you need to use.  What bindings are  
you using?


Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:


Chuck,

	I hadn't considered that. I am using a direct action form post to  
handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are, there  
should not be any timeouts from the adaptor.  I've seen uploads of  
large files over slow connections to GVC.SiteMaker go on for a  
very, very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS- 
X to move video files around.  You could build something similar  
to this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file upload  
from say, an iPhone, to a WO app (direct action) that takes  
longer than the WO adaptor time out? Or, should I just set the  
WO adaptor timeout to something like five or ten minutes to  
handle slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Joe Moreno

Chuck,

	I hadn't considered that. I am using a direct action form post to  
handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are, there  
should not be any timeouts from the adaptor.  I've seen uploads of  
large files over slow connections to GVC.SiteMaker go on for a very,  
very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS-X  
to move video files around.  You could build something similar to  
this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file upload  
from say, an iPhone, to a WO app (direct action) that takes  
longer than the WO adaptor time out? Or, should I just set the WO  
adaptor timeout to something like five or ten minutes to handle  
slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Chuck Hill
Are you using the streaming handler for uploads?  If you are, there  
should not be any timeouts from the adaptor.  I've seen uploads of  
large files over slow connections to GVC.SiteMaker go on for a very,  
very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who are  
using that instance will get blocked and may reach their timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS-X  
to move video files around.  You could build something similar to  
this.


I wouldn't up the time on the adaptor because other clients who are  
using that instance will get blocked and may reach their timeouts.


cheers.

Does anyone have a recommendation on how to manage a file upload  
from say, an iPhone, to a WO app (direct action) that takes longer  
than the WO adaptor time out? Or, should I just set the WO adaptor  
timeout to something like five or ten minutes to handle slow/flaky  
EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Joe Moreno

Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who are  
using that instance will get blocked and may reach their timeouts.


In my case, I don't think upping the adaptor timeout will block since  
WOAllowsConcurrentRequestHandling is set to true. Does that sound  
correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS-X  
to move video files around.  You could build something similar to  
this.


I wouldn't up the time on the adaptor because other clients who are  
using that instance will get blocked and may reach their timeouts.


cheers.

Does anyone have a recommendation on how to manage a file upload  
from say, an iPhone, to a WO app (direct action) that takes longer  
than the WO adaptor time out? Or, should I just set the WO adaptor  
timeout to something like five or ten minutes to handle slow/flaky  
EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Andrew Lindesay
Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is broken up into 
little chunks and fired into a WOA bit by bit in sequence into a stream.  I 
haven't explicitly tested this from iPhoneOS, but it has been used in a 
production system from MacOS-X to move video files around.  You could build 
something similar to this.

I wouldn't up the time on the adaptor because other clients who are using that 
instance will get blocked and may reach their timeouts.

cheers.

> Does anyone have a recommendation on how to manage a file upload from say, an 
> iPhone, to a WO app (direct action) that takes longer than the WO adaptor 
> time out? Or, should I just set the WO adaptor timeout to something like five 
> or ten minutes to handle slow/flaky EDGE connections?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WO Long Response and iPhone

2010-01-14 Thread Joe Moreno


	Does anyone have a recommendation on how to manage a file upload from  
say, an iPhone, to a WO app (direct action) that takes longer than the  
WO adaptor time out? Or, should I just set the WO adaptor timeout to  
something like five or ten minutes to handle slow/flaky EDGE  
connections?


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com