Smartclient bootstrapper (alternative downloader)

Servoy announcements

Re: Smartclient bootstrapper (alternative downloader)

Postby jcompagner » Mon May 02, 2016 10:08 am

that could be because i just dropped the jar in the existing zip.

If you look inside the jar you do see new class files from 29-4
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8096
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Smartclient bootstrapper (alternative downloader)

Postby lwjwillemsen » Wed Mar 14, 2018 7:39 pm

I am testing with the bootstrap.jar.
In Servoy we catch the startup parameters with application.getStartupArguments().

In Windows shortcut
Code: Select all
"C:\ProgramData\Oracle\Java\javapath\javaws.exe http://ig-visiontest7:8080/bootstrap.jnlp?argument=owner_id:4B584706-68AE-44AE-A8D9-D7984BA418C8
"
the argument owner_id is not returned by application.getStartupArguments().

I also tested with <argument></argument> in the bootstrap.jnlp but with no result.

Is it possible to pass arguments to the Servoy client via the bootstrap.jar and if yes how?

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Smartclient bootstrapper (alternative downloader)

Postby mboegem » Wed Mar 14, 2018 11:07 pm

Hi Lambert,

Interesting question.
didn't try yet, but according to this https://stackoverflow.com/questions/137 ... s-via-jnlp it should be possible.

Hope that helps.
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1434
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands

Re: Smartclient bootstrapper (alternative downloader)

Postby jcompagner » Thu Mar 15, 2018 10:17 am

no this is not possible, you need a bootstrap.jnlp jar per argument and add those arguments you want to pickup in the jnlp itself
By default we already have a few arguments in it under the section: <application-desc main-class="com.servoy.bootstrapper.Bootstrap">
it should be something like this:

<argument>argument:ownerid:xxxxx</argument>

only those arguments can be get inside the client. So if you need special arguments like and owner_id then you need a bootstrap.jnlp file per owner..

bootstrap.jnlp is just a file on disk in the app server, it is not generated everytime you request it.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8096
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Smartclient bootstrapper (alternative downloader)

Postby lwjwillemsen » Thu Mar 15, 2018 2:20 pm

Thanks, Johan!

I was looking for that "<argument>argument:ownerid:xxxxx</argument>" notation.
That works fine.
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 596
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Previous

Return to Announcements

Who is online

Users browsing this forum: No registered users and 5 guests

cron