Getting a reference to the object is more of an Avalon question, and I don't know how to do that from a different JVM (assuming that's what you want). Maybe look at how the RMI proposal works, and in turn expose some of the mail repositories as well.
As for dropping messages into the queue to get processed, if you don't want to deal with SMTP, you could just stick the messages in the JDBC or file mail repositories, and within a minute they should recognize there is a message to process. I know this is the case with the JDBC one (as I move messages around all the time on the server), and while I think the file repository is caching the list of messages in the spool at the moment, I plan to rewrite that repository soon since the Avalon stream repository keeps giving problems of file handles not getting closed. Serge Knystautas Loki Technologies - Unstoppable Websites http://www.lokitech.com/ ----- Original Message ----- From: "Lucas Gonze" <[EMAIL PROTECTED]> To: "James Developers List" <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 6:31 PM Subject: question > > Background: my goal is to pick up messages from external sources, not SMTP > senders, and drop them into the normal message processing loop. My class will > be a new thread looping on its data source. > > I believe that the best way to do this is via the spool manager: > spool = (SpoolRepository) comp.getComponent(Constants.SPOOL_REPOSITORY); > ... > JamesSpoolManager.process(MailImpl myNewMessage) > > So my question: how can an external class get a handle to either the > SpoolRepository or the ComponentManager? (This may be an Avalon issue? Don't > think so.) > > Thanks in advance. > > - Lucas -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
