Ah, thanks Eric, I think I understand.

What I'm doing is using James to provide an IMAP interface to a REST API
where the messages are actually stored, so I'm trying to work out what
interfaces I need to implement.

I'm currently creating a custom MailboxManager and MessageManager, as I'm
not sure I need a SubscriptionManager as there's no concept of an orphaned
mailbox - all mailboxes/folders are virtual and are tied to a user.

I'll have a look at the bean linked above.

Martin


On 24 December 2012 12:00, Eric Charles <e...@apache.org> wrote:

> Btw, if you want to reuse the existing jpa connection (or jdbc connection
> pool) in your custom mailbox, that's another question, and yes, you can do
> this in the spring configuration files (which read
> james-database.properties).
>
> Tell us if you need more info on this.
>
> Thx, Eric
>
>
> On 24/12/2012 12:58, Eric Charles wrote:
>
>> No.
>>
>> For this, you will need to write a custom spring
>> BeanFactoryPostProcessor (seep [1] for the current one)
>>
>> One the longer goal to james is to be more friendly regarding
>> configuration (extension, hot reload...)
>>
>> Thx, Eric
>>
>> [1]
>> https://svn.apache.org/repos/**asf/james/server/trunk/**
>> container-spring/src/main/**java/org/apache/james/**
>> container/spring/bean/**factorypostprocessor/**
>> MailboxConfigurationBeanFactor**yPostProcessor.java<https://svn.apache.org/repos/asf/james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/bean/factorypostprocessor/MailboxConfigurationBeanFactoryPostProcessor.java>
>>
>>
>>
>>
>>
>> On 24/12/2012 12:40, Martin Hewitt wrote:
>>
>>> Hi all,
>>>
>>> I'm writing a custom Mailbox and need to provide database configuration
>>> details to it.
>>>
>>> Is there a way of passing this info through the mailbox.conf file?
>>>
>>> Thanks,
>>>
>>> Martin
>>>
>>>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> server-user-unsubscribe@james.**apache.org<server-user-unsubscr...@james.apache.org>
> For additional commands, e-mail: 
> server-user-help@james.apache.**org<server-user-h...@james.apache.org>
>
>

Reply via email to