later
Roger...
At 08:09 AM 7/8/2003, you wrote:
Just a hunch ....---
Is the MQSeries Trigger Monitor Service set up to run under the same your user account or run as local system account? The Trigger Monitor started from Command Prompt has the logon user environment setting, which might not be the same setting as it is run under other account. Programs run under different environments could behave different sometimes.
Ping Tong
-----Original Message-----
From: Roger Lacroix [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 07, 2003 3:19 PM
To: jdjlist
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
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk
