Author |
Message |
28/01/2016 13:58:04
|
slist
Power User
Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline
|
Hi @all,
what is the easiest way to open a new instance with a new session from within the application - ideally with the ability to pass extra arguments.
Thank you very much!
BR
|
|
|
28/01/2016 14:40:13
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...do you mean: a whole new client instance?
I do not know any clean way to do this... CaptainCasa provides a STARTPROCESS component (in BEANPROCESSING folder), by which you can execute command line arguments.
But to do this from an applet / webstart environment is quite amitious...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
28/01/2016 14:49:32
|
slist
Power User
Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline
|
Yes, a whole new instance indeed.
We need to have a completely independent session with own state and everything. And it should be in special mode, so just letting the user start a new instance the normal way would not work (if the user logs in as the same user, this would effectively invalidate the original session).
I think starting a new process is too error prone. Hm, maybe I find something. But thanks nonetheless!
BR
|
|
|
29/01/2016 10:05:16
|
tbredehoeft
Active
Joined: 26/09/2014 14:02:53
Messages: 22
Offline
|
We had a very similar requirement, but also didn't find a clean solution.
We ended up reconstructing the URL of the JNLP-File out of the HttpServletRequest and then invoking the JNLP-URL again with a JShowUrl-Component.
|
|
|
29/01/2016 10:07:09
|
slist
Power User
Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline
|
Interesting. And this opens a new Webstart instance?
|
|
|
29/01/2016 10:13:00
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...wow, this is a great idea, going via JSHOWURL!!!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
29/01/2016 10:40:16
|
tbredehoeft
Active
Joined: 26/09/2014 14:02:53
Messages: 22
Offline
|
Yes, this opens a new Webstart instance just as if the user had invoked the JNLP again from his browser.
We also had to pass special parameters to such new instances that are started out of an existing instance. So our solution is a little more complicated. We don't directly invoke the JNLP-URL, but we invoke a small servlet that allows us to pass URL-parameters. This is done using the Captain Casa AppletStarter-Servlet which generates the JNLP including our URL parameters.
|
|
|
29/01/2016 11:19:44
|
slist
Power User
Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline
|
Tank you for that promising idea!
|
|
|
|