Charles Benett wrote:
> 
> Serge Knystautas wrote:
> >
> > I'm having trouble with my spool repository getting instantiated multiple
> > times.  I've got my (JDBC) repository defined as db://EML_spool/spool, and
> > this gets defined in 2 places in config.xml... in James' spoolRepository's
> > repository's destinationURL... and one in the spoolManager's
> > spoolRepository's repository's destinationURL.  The notes in the XML says
> > these should match, so this seems right.
> >
> > However, I'm getting 2 separate instances of the JDBC repository,
> 
> This is strange. If the destination and type are the same, you should
> only get one instance.  See AvalonMailStore.select().
> 
> It would probably be better to add a getInboundSpool() method to
> interface MailStore and define the spool once in the MailStore block.

I've just done this. 
HTH.
Charles


> 
> Charles
> 
>  so when a
> > message arrives, it can't notify the threads waiting for a message (since
> > they're waiting on a different instance).  It doesn't seem to do this with
> > the Avalon repository.
> >
> > Any ideas on what I'm doing wrong?  Do I need to put some extra methods on
> > the JDBCSpoolRepository?
> >
> > Serge Knystautas
> > Loki Technologies
> > http://www.lokitech.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to