(Apologies for the cross post, I wasn't sure exactly where to post this.)

We're trying to distill an eps into a pdf from within JBoss/Win32 using Acrodist (Adobe Distiller). We launch the job via COM/OLE in order to know when the job has completed, and the current thread just waits for the job to return. For the OLE connection we are using Jawin.

We've succesfully run the code below in a command line tool, but when we run the same code from a Stateless Session bean(on JBoss 3.2.2), the resulting PDF does not get written out and no errors are reported.

In both cases, we see Acrodist running in Task Manager, and see the CPU and memory spike; JBoss is running as admin, and the registry setting for Component control is set to 'full control' (On the command line, it already worked with just 'read control').