Re: Cannot create endpoint with camel printer component

2013-11-13 Thread berdoni
Error message on RedHat:
org.apache.camel.FailedToCreateProducerException: Failed to create Producer
for endpoint:
Endpoint[lpr://localhost/default?flavor=DocFlavor.INPUT_STREAMmimeType=AUTOSENSEsides=one-sided].
Reason: java.lang.IllegalArgumentException: PrintService must be specified
on:
Producer[lpr://localhost/default?flavor=DocFlavor.INPUT_STREAMmimeType=AUTOSENSEsides=one-sided]

I think that this route works on Windows OS because it talks directly with
the windows drivers and then the print job is created in the printer. I
don't know if this is possible in Linux. The Linux machine has CUPS
configuration.

Could someone provide an working example on Linux and the Linux
configuration for this? 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Cannot-create-endpoint-with-camel-printer-component-tp5742654p5743178.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Cannot create endpoint with camel printer component

2013-11-12 Thread berdoni
Hi Claus,

here is my route:
from(file://{{printer.inputdir}}/?delete=true)
.to({{printer.lpr.uri}});

It works with the following parameters in Windows OS :
printer.inputdir=/home/local/print
printer.lpr.uri=lpr:localhost/default?mimeType=AUTOSENSEflavor=DocFlavor.INPUT_STREAMsides=one-sided

but not with remote printers e.g:
lpr://remotehost:port/path/to/printer[?options]
printer.lpr.uri=lpr:10.250.10.155:9100/hp4350

I think that I have to check further how the /path/to/printer is defined
for our network printers. I have full TCP access to the above IP.

regards
Nikos



--
View this message in context: 
http://camel.465427.n5.nabble.com/Cannot-create-endpoint-with-camel-printer-component-tp5742654p5743073.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Cannot create endpoint with camel printer component

2013-11-08 Thread Claus Ibsen
Hi

What version of Camel do you use?

And are you using Windows OS or some other OS?

And what do you type in the Camel endpoint for the printer? Maybe show
a bit of the Camel route code.


On Tue, Nov 5, 2013 at 2:46 PM, berdoni berd...@gmail.com wrote:
 I have tested several lpr uri schemas but I cannot create an endpoint. I get
 the following message.

 Reason: javax.print.PrintException: No printer found with name:
 \\10.250.10.149:9001\hp9000. Please verify that the host and printer are
 registered and reachable from this machine.

 The uri is: lpr://10.250.10.149/hp9000. The printer exists and telnet to
 this ip and port works fine.




 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Cannot-create-endpoint-with-camel-printer-component-tp5742654.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen