how .net MVC application can communicate with Core java desktop application using JWS?

↘锁芯ラ 提交于 2019-12-25 07:49:03

问题


We have a java desktop application and we are planning to launch that java desktop application using JWS and that is working absolutely fine.

The issue is -- we ask some user related information from user on web page and launch java desktop application using JWS. Now we would like to have that information provided by user on web page in our java application. Please suggest how we can access those information in java code ? We have find two approaches --

  1. Can java code read that information from cookies ? I have not find any help how to read cookies using core java code ? again what if cookies are not enable on user's desktop ?

  2. Can we pass information using JNLP file ? Can we write all information in JNLP file ? can pass as an argument to the java code ? does the length of the argument matter here ? can we get information from JNLP by some other way ?

Please suggest if you know another approach better then these above two approaches?


回答1:


We can rule out approach 1.

Approach 2 is fine if the information is minimal. In one of our projects, we dynamically generated the jnlp file, based on information received from the web interface, which resulted in the java application being customized for the user.

You could also have the application communicate with the backend (say over http) and pull more information as required.



来源:https://stackoverflow.com/questions/8352840/how-net-mvc-application-can-communicate-with-core-java-desktop-application-usin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!