I wonder it has to do with graphical context. Is the service setup to be
interactive with the desktop?

Paul Franz

----- Original Message -----
From: "Roger Lacroix" <[EMAIL PROTECTED]>
To: "jdjlist" <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 3:18 PM
Subject: [jdjlist] Weird Printing Problem


> All:
>
> Technologies: Windows 2000, JDK v1.4.1_03
>
> I have an application that gets a message from a MQSeries queue, merges
the
> data with a HTML template and then prints the merged-document (no user
> interaction).
>
> When I run the application from Eclipse or the Command Prompt, everything
> is fine.
>
> My client wants to use MQSeries triggering - meaning when a message
arrives
> in the queue, the application will be started.  This requires a "Trigger
> Monitor" to be running.
>
> If I start the Trigger Monitor from the Command Prompt, when a message
> arrives, my program is started and everything is fine.
>
> Now to the problem:
> ===============
> If I start the Trigger Monitor as a Windows Service, when a message
> arrives, my program is started and the merged-document (HTML) is printed
> but 1 blank page (sometimes 2) also get printed.  I have no idea why this
> is happening.
>
> It is almost as if the JRE is sending a clear / page eject after my print
> job.  I thought maybe I needed to explicitly close my print job but
> DocPrintJob does not support the close method.
>
> I know it is not a problem with the MQSeries Trigger Monitor (it just
> starts program as a separate process) and I don't think the Windows
Service
> Management cares about it either.
>
> Therefore, the only things left are my program and the JRE.  Since my
> program works fine when launched from any other way that leaves the JRE.
>
> Anybody got any ideas?
>
> Thanks
> Roger...
>
>
>
> ---
> You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> http://www.sys-con.com/fusetalk


---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

Reply via email to