Opening file from browser with Java client application
Hi,
I am currently developing a receipt printing application that resides on users' client machine and I need some help. Currently, whenever a user clicks a "Print Receipt" button a web application I developed, the response comes back as a specific file type (a .POS file). On each user machine, I have associated that .POS file type to be opened by a specific batch file. The batch file then starts up a java application which then calls the necessary API (JavaPOS) to print the receipt. Once the application finishes printing, the application terminates. However, every subsequent click on that button on the web application will start a new instance java receipt printing app.
Based on that info, I had the following questions:
1. Is it possible, to change my application so there is only one instance of the application running at anytime?
2. If question 1 is possible, how can I update my application to "listen" if that specific .POS file type has been opened from the browser?

