COM Object and serverExecutions
Posted: Fri Aug 07, 2009 11:23 am
by Stephen Persson >> Wed, 28 Feb 2001 1:59:53 GMT
Hi,
I have a problem...
We have an web app in which users can upload files to the server, where they are immediately zipped using a COM object, and all bundled together with other like files. Works great.
However we now want to give thin client users the same functionality.
The user browses for files locally, they get send back to the server where they are added or removed from the zip file. At least thats what is supposed to happen. I made the method that creates the COM object and does the zipping a serverExecution method, which had nasty effects. A COM object can not be created and used within a serverExecution method - it is always created and used via the local jade.exe. Hence it works fine for the web app - since this uses a jade.exe on the server, but not for thin clients using there own jade.exe.
Now I need a tricky way to get around this.
My first thought was a seperate little app running on the server using notifications. The client would copy the files to the server, then let the app know it needs to be zipped, letting the server do the COM object zipping stuff, then letting the client know how it got on.
This seems pretty messy to me, so I was hoping someone had possibly come across something similar and had worked out a nicer way to do this!
Thanks in advance...
Stephen Persson
Kinetix Group Ltd
Hi,
I have a problem...
We have an web app in which users can upload files to the server, where they are immediately zipped using a COM object, and all bundled together with other like files. Works great.
However we now want to give thin client users the same functionality.
The user browses for files locally, they get send back to the server where they are added or removed from the zip file. At least thats what is supposed to happen. I made the method that creates the COM object and does the zipping a serverExecution method, which had nasty effects. A COM object can not be created and used within a serverExecution method - it is always created and used via the local jade.exe. Hence it works fine for the web app - since this uses a jade.exe on the server, but not for thin clients using there own jade.exe.
Now I need a tricky way to get around this.
My first thought was a seperate little app running on the server using notifications. The client would copy the files to the server, then let the app know it needs to be zipped, letting the server do the COM object zipping stuff, then letting the client know how it got on.
This seems pretty messy to me, so I was hoping someone had possibly come across something similar and had worked out a nicer way to do this!
Thanks in advance...
Stephen Persson
Kinetix Group Ltd