>>>> Note however that these methods only work within a single JVM instance. >>>> If you need to pass messages to another process, you'll need to use some >>>> kind of IPC mechanism. >> >> It sounds like you are trying to use sendMessage() to pass messages >> between two separate applications (a headless app and a Pivot UI). Is that >> correct? If so, you won't be able to use sendMessage() for this. >> > > Perhaps I'm misunderstanding. I'm starting my headless app with > ClientTask.execute() - I thought that meant that I was running in the same > JVM as my pivot app.
OK. I had assumed that you were launching a separate process via Runtime.exec(). Is "ClientTask" what you are referring to as your headless app? If so, then yes - it is running in the same JVM as the UI, just on a background thread. The messaging API doesn't currently support cross-thread messaging, but I think we could pretty easily update it to do so. Let me look into that. G
