« Return to Thread: How to send PDF FileStream directly as response???

Re: How to send PDF FileStream directly as response???

by pocketom () :: Rate this Message:

Reply to Author | View in Thread

Hi John,
thanx a lot for your reply! It works fine!


I have one question remaining:

Concurrent client access seems to be a problem. How would I need to configure the http endpoint to allow for multiple client requests simultaneously? Or do I need to encapsulate my component class into a threaded version?

Here is the error message that comes up the Mule console when clicking rapidly on the refresh button in my browser:

<code>
ERROR 2009-07-01 15:15:42,209 [HttpConnector.receiver.6] org.mule.DefaultExceptionStrategy: Caught exception in Exception Strategy: Software caused connection abort: socket write error
java.net.SocketException: Software caused connection abort: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at java.io.DataOutputStream.write(DataOutputStream.java:90)
        at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
        at org.mule.transport.http.HttpResponse$1.write(HttpResponse.java:323)
        at org.mule.transport.http.HttpServerConnection.writeResponse(HttpServerConnection.java:293)
        at org.mule.transport.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:190)
        at org.mule.work.WorkerContext.run(WorkerContext.java:310)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:619)

</code>

 « Return to Thread: How to send PDF FileStream directly as response???