Printing from Message Queue
Use this source code for send a document directly to printer from external server using ActiveMQ as Message Queue
Just run it like is showed:
java -jar PrintService.jar host user pass queue printerName homefolder connectionInterval(optional)
I use a simple docker container for ActiveMQ from https://hub.docker.com/r/rmohr/activemq/ Run It:
docker pull rmohr/activemq
- Host: tcp://localhost:61616
- User: admin
- Password: admin
- Queue: printing
- Home Folder: /tmp
- Printer Name: LX300 (Optional)
- Connection Interval: 10000 (Optional)
Note: Server / Producer is not here!!! You can implement like is showed from official ActiveMQ for java: http://activemq.apache.org/hello-world.html