Hexagon Geospatial
MENU

GeoMedia Smart Client

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 29
Registered: ‎10-12-2015
Accepted Solution

Set JNLP arguments at server side

Hi,

 

I need to set the available arguments in default.aspx at server side, so that whenever a fresh JNLP is downloaded by just using http://<server-name>/GMSC the custom arguments are also added to it.

I know it is possible by using the format http://servername/gmsc/default.aspx?site=sitename&map.centerx=nnnn&map.centery=nnnn&map.scale=nnn&ma...

 

Just wanted to know if it possible to fix the arguments at server side or not?

 

I am interested in arguments - sso, splash.hide and max-heap-size.

 

Regards

Rohit Sinha
Hexagon Geospatial
Frequent Contributor
Posts: 90
Registered: ‎10-13-2015

Re: Set JNLP arguments at server side

Hi Rohit,

 

if you don't mind that values are static and not variables, check the content of default.aspx and modify it for your purpose

 

...
..
	Response.End();
}
if (string.IsNullOrEmpty(applicationArguments["site"]))
	applicationArguments.Add("site", "GMSC");
// above this place it is original code
	
if (string.IsNullOrEmpty(applicationArguments["sso"]))
	applicationArguments.Add("sso", "true");
	
if (string.IsNullOrEmpty(applicationArguments["hide.splash"]))
	applicationArguments.Add("hide.splash", "true");		

// below this place it is original code	
string launchUrl = Request.Url.AbsoluteUri;
..
...

I am not sure if this is the best way, but it works Smiley Happy

 

Regards,

Jakub

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.