JSF accessing serial port

1

I'm working on a JSF system and need to send data to the client (printer) serial port.

The only way is even using Applets?

    
asked by anonymous 23.01.2015 / 19:32

1 answer

1

If you need low-level access (i.e. do more than activate the browser print window with JavaScript) you will need something on the client rather, but I would not recommend an Applet. After so many years the future of the Applets is somewhat uncertain. The Chrome folks are discontinuing NPAPI support ; other browsers are also becoming more and more difficult to run Applets. To the best of my knowledge, Oracle has yet to comment on the subject (in addition to recommend that users search for others browsers).

Today I do not see many alternatives in the Java world. You can distribute a desktop application to your clients (eg, share a jar , or even use Java Web Start - as long as it is still supported).

But this is clearly in a separate layer of your JSF application. To access it you would need some integration mechanism (e.g., Web Services or a local control page).

Some interesting questions in SOEn:

  • How can a web page read from the user's serial port?
  • Javascript interface with RS-232 Serial Port
  • 23.01.2015 / 21:11