[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Open new window  XML
Forum Index -> Development
Author Message
slist

Power User
[Avatar]

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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
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
slist

Power User
[Avatar]

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
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.
slist

Power User
[Avatar]

Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline

Interesting. And this opens a new Webstart instance?
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

...wow, this is a great idea, going via JSHOWURL!!!
Björn

Björn Müller, CaptainCasa GmbH
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.
slist

Power User
[Avatar]

Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline

Tank you for that promising idea!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team