You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by drf <da...@gmail.com> on 2015/03/23 10:29:44 UTC

Running a local process using Wicket

We want to replace our fat client application (developed using C#) with a web
application.
Wicket is one of the technology options we are considering.
Our question: Is it possible, and if so, how, to run a local process on the
users machine (normally run from the command line) from Wicket.
Thanks

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Running-a-local-process-using-Wicket-tp4670070.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Running a local process using Wicket

Posted by Christoph Läubrich <la...@googlemail.com>.
Depending on your enviourment you can either use:

- Signed Java Applet
- ActiveX Control
- Browser Plugin
- Any other "active" technology

As mentioned earlier that is nothing specific to Wicket. And you should 
consider why you want to switch to a WebApp if you have requirements to 
start local processes.
Another way would be to have a slim C# Wrapper that only contains a 
Webcontrol showing your wicket App and have an interface to do all 
"low-level-tasks" or you can deploy a service on the target machine that 
offers a REST Interface...

This all heavily depends on your usecase and will limit the portability 
and user-base of your WebApp in one or the other way.

Am 23.03.2015 10:29, schrieb drf:
> We want to replace our fat client application (developed using C#) with a web
> application.
> Wicket is one of the technology options we are considering.
> Our question: Is it possible, and if so, how, to run a local process on the
> users machine (normally run from the command line) from Wicket.
> Thanks
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Running a local process using Wicket

Posted by Sebastien <se...@gmail.com>.
Hi,

If you would like to start an external process (a batch or whatever, but
*not* command line of course) then the answer is yes, even it is more an
architectural question than truly related to Wicket directly (I mean, if
you would like to properly separate layers...)

A common option is to make Wicket (the web layer) start the process through
an synchronous/asynchronous EJB (the business layer).

About the security concern, by default the process owner of the Application
Server will also own the external running process. This should eventually
be taken into consideration...

Additionally you can get info back to the Wicket page using native
websockets (notifications or a progress for instance).

You have a sample implementation here:
https://github.com/sebfz1/wicket-quickstart-cdi-async

It currently uses Apache DeltaSpike for managing portability & contexts
(CDI 1.1)

Hope this provides an answer to your question... and you will select Wicket
in your new technical stack :)

Best regards,
Sebastien.



On Mon, Mar 23, 2015 at 2:02 PM, Richter, Marvin <
Marvin.Richter@freenetdigital.com> wrote:

> I’m not sure if I understood it right but if you actually want to start a
> command on the machine the browser is running on the answer is no, and
> should never be possible for security reasons. But that has nothing to do
> with Wicket but with a webpage in the browser which is sandboxed and
> therefore not allowed to run any process outside this sandbox.
>
> But another question would be, why do you even want to start a local
> process?
>
> Best,
> Marvin
>
>
> > Am 23.03.2015 um 10:41 schrieb drf <da...@gmail.com>:
> >
> > We want to replace our fat client application (developed using C#) with
> a web
> > application.
> > Wicket is one of the technology options we are considering.
> > Our question: Is it possible, and if so, how, to run a local process on
> the
> > users machine (normally run from the command line) from Wicket.
> > Thanks
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Running-a-local-process-using-Wicket-tp4670070.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>

Re: Running a local process using Wicket

Posted by "Richter, Marvin" <Ma...@freenetdigital.com>.
I’m not sure if I understood it right but if you actually want to start a command on the machine the browser is running on the answer is no, and should never be possible for security reasons. But that has nothing to do with Wicket but with a webpage in the browser which is sandboxed and therefore not allowed to run any process outside this sandbox.

But another question would be, why do you even want to start a local process?

Best,
Marvin


> Am 23.03.2015 um 10:41 schrieb drf <da...@gmail.com>:
> 
> We want to replace our fat client application (developed using C#) with a web
> application.
> Wicket is one of the technology options we are considering.
> Our question: Is it possible, and if so, how, to run a local process on the
> users machine (normally run from the command line) from Wicket.
> Thanks
> 
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Running-a-local-process-using-Wicket-tp4670070.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>