[ 
https://issues.apache.org/activemq/browse/CAMEL-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52420#action_52420
 ] 

Ashwin Karpe commented on CAMEL-1675:
-------------------------------------

Hi Hadrian,

Not sure how to avoid this. I basically ensured that the tests would send the 
message to the Default Printer on localhost. The way to verify that a payload 
is being printed is to check the Printer Queue and check if a Job has been sent 
to it.

The default printer should print out the payloads, Text, GIF, JPEG etc which 
will prove that everything is in order. 

Unfortunately, there is no other way I can think of to do this... It is just 
the nature of the printer endpoint. Moreover if there is no printer set up on 
localhost then there will be user friendly exceptions thrown on the route...

If you have any ideas/thoughts on this front or altenative options, I would be 
happy to implement them...

Please let me know.

Cheers,

Ashwin...





> Created a new camel printer component that supports document/image printing 
> with copies, stationary and sides choices.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1675
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1675
>             Project: Apache Camel
>          Issue Type: New Feature
>         Environment: Works on both Windows and UNIX
>            Reporter: Ashwin Karpe
>             Fix For: 2.1.0
>
>         Attachments: camel-printer.patch, camel-printer.zip
>
>
> I have developed a camel printer component (producer) that facilitates 
> printing of documents and images when a Printer URL is speified on a route.
> The component is developed using the standard javax.print package and uses 
> the standard java JDK packages to print to all manner of printers.
> The Printer URL looks like the following:
>       " 
> lpr://localhost/default?copies=1&flavor=DocFlavor.BYTE_ARRAY&mimeType=AUTOSENSE&mediaSize=na-letter&sides=one-sided"
> The component allows you to set the following parameters:
>       - copies
>       - flavor
>       - mimeType
>       - mediaSize
>       - sides
> All the values are setting against the javax.print.attribute.standard 
> properties.
> Can the committers, please review, comment and commit as apropriate.
> Cheers,
> Ashwin Karpe
> Principal Consultant - Professional Services
> Progress Software...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to