JAMES Server Nightly Build Report

2010-03-27 Thread JAMES Nightly Build System
An automated nightly build of JAMES has been posted to 
http://people.apache.org/builds/james/nightly/

Any unit test errors from the build should be reported below:

BUILD SUCCESSFUL
Total time: 4 minutes 31 seconds

Done. Packages Will Be Uploaded To The Nightly Repository.

Please review http://people.apache.org/builds/james/nightly/BUILD.log.


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



Re: Re: [PROPOSAL] Replace MailRepository with Mailbox / MailboxManager for POP3Server ...

2010-03-27 Thread Norman Maurer
Hi Eric,

thx for the feedback . Does this happens with pop3 or imap ? Or with
both? What client you use?

About the OOM Exception, chances are good that this is fixed now. I
did something bad with ConsumerTemplate in RemoteDelivery nailet,
which could lead to such problems.

Bye
Norman

2010/3/27, Eric Charles eric.char...@u-mangate.com:
 Great Norman,

 I just upgraded to the current trunk to benefit from :
 - JAMES-983: common POP3/IMAP MailRepository.
 - JAMES-984: activemq 5.3.1 hoping it will resolve some OutOfMemory
 exceptions I had (*)

 I deployed and now (configured with enableVirtualHosting=true and
 JDBCDomainList), I've got the following:
 - When my mailbox contains at least one mail, No problem: I can read it
 without any problem.
 - When my mailbox is empty, my mail client simply waits and finally give
 me a timeout (closing my client and launching it again with mails in the
 inbox, everything is fine again).

 Can anybody else reproduce it?
 Is there additional specific configuration I have to apply ?

 Tks a lot,

 Eric


 (*) Just for information, about the OutOfMemory I had with activemq 3.5.0:
 - Testing different configurations from
 http://activemq.apache.org/javalangoutofmemory.html didn't help.
 - Stressing a local deployment with apache-sever-postage, server was
 holding the pressure during hours, however, memory was slightly but
 constantly growing.
 - I have a heap dump to be analyzed (still todo)
 - Reading 6 memory leak bugs resolved in activemq 3.5.1.
 (https://issues.apache.org/activemq/secure/ReleaseNote.jspa?projectId=10520styleName=Htmlversion=12183),
 I decided to try to migrate to activemq 5.3.1, and by chance, Norman
 checked it in two days ago. I still have to wait a few days to see if
 the OutOfMemory problem is resolved.



 On 12/23/-28158 08:59 PM, Norman Maurer wrote:
 Ok it seems like this works for everyone so far.. I will commit it
 this weekend ..

 Thanks again for all the feedback / questions.

 Bye,
 Norman


 2010/3/26 Stefano Bagnaraapa...@bago.org:

 2010/3/24 Norman Maurernor...@apache.org:

 Hi all,

 I want to propose some really heavy change in current JAMES trunk, and
 so next version. As all of you knows we are supporting IMAP in current
 development version, which ships with its own mail store backend
 called MailboxManager / Mailbox. For POP3 we use MailRepository as
 backend.
 I think this is a no go for a number of reasons, but the major one is
 that we should be able to switch between IMAP and POP3 without the
 need to migrate mails. So I rewrote the POP3Server to re-use the
 MailboxManager / Mailbox stuff which is used by IMAP.

 I think this is a good think. I also hope MailboxManager/Mailbox API
 can be improved and simplified, but using a single API is the only way
 to go. Once we use only one we'll better understand how to improve it.


 So if a user login via POP3 he will just see the folder called INBOX
 and nothing else. With IMAP he will see all folders. Thats exactly
 what dovecot and courier does ( both heavy used unix imap/pop3
 servers).

 A good extension would be to have a login pattern to read custom
 folders..
 e.g: I login as username#FOLDER with username password and this way
 I get access to FOLDER instead of INBOX.
 The same could be applied to the delete behaviour (something like the
 recent: prefix hack in gmail).


 Another advance is that we elimate one more dependency on storing
 mails via javamail, which is not the way to go for the future ...
 On the downside we will break backward-compatibility with every James
 release we did before. So we will need to write a migration tool,
 but this should not be to hard.

 IMO at this point we should plainly ignore backward compatibility.
 AFTER we'll have a working release we'll define a migration path (with
 the help of users wanting to upgrade).


 Because the change is so heavy, I dedicited to attach it to JIRA  for
 review and not commit it directly.

 You can find it here:
 https://issues.apache.org/jira/browse/JAMES-983

 So what do you think ?

 +1

 Stefano

 -
 To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
 For additional commands, e-mail: server-dev-h...@james.apache.org




 -
 To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
 For additional commands, e-mail: server-dev-h...@james.apache.org







-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r928199 - /james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml

2010-03-27 Thread norman
Author: norman
Date: Sat Mar 27 13:53:03 2010
New Revision: 928199

URL: http://svn.apache.org/viewvc?rev=928199view=rev
Log:
We need to use MethodInvokerBean for register our cnd because the register 
method does use void as return type

Modified:
james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml

Modified: 
james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml?rev=928199r1=928198r2=928199view=diff
==
--- james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml 
(original)
+++ james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml 
Sat Mar 27 13:53:03 2010
@@ -338,13 +338,21 @@
 
!-- JCR implementation of IMAP Storage--
!--  
-bean id=imapCndLoader class=org.apache.james.imap.jcr.JCRUtils 
factory-method=registerCnd
-  constructor-arg index=0 ref=jcrRepository/
-  constructor-arg index=1 value=james/
-  constructor-arg index=2 value=james/
-  constructor-arg index=3 value=james/
+bean id=imapCndLoader 
class=org.springframework.beans.factory.config.MethodInvokingFactoryBean
+  property name=targetObjectref local=jcrUtils//property
+  property name=targetMethodvalueregisterCnd/value/property
+  property name=arguments
+list
+  ref local=jcrRepository/
+  valuejames/value
+  valuejames/value
+  valuejames/value
+/list
+  /property
 /bean
 
+bean id=jcrUtils class=org.apache.james.imap.jcr.JCRUtils/
+
bean id =subscriper  
class=org.apache.james.imap.jcr.JCRGlobalUserSubscriptionManager 
depends-on=imapCndLoader
   constructor-arg index=0 ref=jcrRepository/
   constructor-arg index=1 value=james/



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r928230 - in /james/imap/trunk: deployment/src/test/java/org/apache/james/imap/functional/jcr/ jcr/src/main/java/org/apache/james/imap/jcr/ jcr/src/main/java/org/apache/james/imap/jcr/mail

2010-03-27 Thread norman
Author: norman
Date: Sat Mar 27 16:56:50 2010
New Revision: 928230

URL: http://svn.apache.org/viewvc?rev=928230view=rev
Log:
Fix the node escape stuff.. This shows that the current scaling stuff does not 
work as aspected. So use MIN_SCALING for now.. This needs to get fixed..

Modified:

james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java

james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRMailboxManager.java

james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRSubscriptionManager.java
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRUtils.java

james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/mail/JCRMailboxMapper.java

james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/user/JCRSubscriptionMapper.java

Modified: 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java
URL: 
http://svn.apache.org/viewvc/james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java?rev=928230r1=928229r2=928230view=diff
==
--- 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java
 (original)
+++ 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jcr/JCRHostSystem.java
 Sat Mar 27 16:56:50 2010
@@ -28,6 +28,7 @@ import org.apache.james.imap.functional.
 import org.apache.james.imap.functional.InMemoryUserManager;
 import org.apache.james.imap.jcr.JCRGlobalUserMailboxManager;
 import org.apache.james.imap.jcr.JCRGlobalUserSubscriptionManager;
+import org.apache.james.imap.jcr.JCRImapConstants;
 import org.apache.james.imap.jcr.JCRUtils;
 import org.apache.james.imap.main.DefaultImapDecoderFactory;
 import org.apache.james.imap.processor.main.DefaultImapProcessorFactory;
@@ -65,7 +66,8 @@ public class JCRHostSystem extends ImapH
 
 userManager = new InMemoryUserManager();
 
-mailboxManager = new JCRGlobalUserMailboxManager(userManager, new 
JCRGlobalUserSubscriptionManager(repository, workspace, user, pass), 
repository, workspace, user, pass);
+//TODO: Fix the scaling stuff so the tests will pass with max 
scaling too
+mailboxManager = new JCRGlobalUserMailboxManager(userManager, new 
JCRGlobalUserSubscriptionManager(repository, workspace, user, pass, 
JCRImapConstants.MIN_SCALING), repository, workspace, user, pass, 
JCRImapConstants.MIN_SCALING);
 
 final DefaultImapProcessorFactory defaultImapProcessorFactory = 
new DefaultImapProcessorFactory();
 resetUserMetaData();

Modified: 
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRMailboxManager.java
URL: 
http://svn.apache.org/viewvc/james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRMailboxManager.java?rev=928230r1=928229r2=928230view=diff
==
--- 
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRMailboxManager.java
 (original)
+++ 
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRMailboxManager.java
 Sat Mar 27 16:56:50 2010
@@ -67,7 +67,7 @@ public class JCRMailboxManager extends S
 
 
 public JCRMailboxManager(final Authenticator authenticator, final 
Subscriber subscriber, final Repository repository, final String workspace) {
-this(authenticator, subscriber, repository, workspace, MAX_SCALING);
+this(authenticator, subscriber, repository, workspace, MIN_SCALING);
 }
 
 /**

Modified: 
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRSubscriptionManager.java
URL: 
http://svn.apache.org/viewvc/james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRSubscriptionManager.java?rev=928230r1=928229r2=928230view=diff
==
--- 
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRSubscriptionManager.java
 (original)
+++ 
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRSubscriptionManager.java
 Sat Mar 27 16:56:50 2010
@@ -58,7 +58,7 @@ public class JCRSubscriptionManager exte
 
 
 public JCRSubscriptionManager(final Repository repository, final String 
workspace) {
-this(repository, workspace, MAX_SCALING);
+this(repository, workspace, MIN_SCALING);
 }
 
 

Modified: 
james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRUtils.java
URL: 
http://svn.apache.org/viewvc/james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRUtils.java?rev=928230r1=928229r2=928230view=diff
==
--- james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRUtils.java 
(original)
+++ james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRUtils.java 

Re: Re: Re: [PROPOSAL] Replace MailRepository with Mailbox / MailboxManager for POP3Server ...

2010-03-27 Thread Eric Charles

Hi Norman,

Many tks for your quick answer.

I had defined in my Thunderbird 3.0.3 client (on linux) the pop3 account 
as the default one.
When launching thunderbird, the connection was succefully done Host 
contacted, sending login information, saying after 1 second 
Determining which messages to index (never saw that message 
before...), hanging there a few minutes, and finally saying connection 
to server ... timed out. After that, Imap account behaved also such a 
way...

I also tried with latest Thundrebird 3.0.3: same result...

I have now defined the imap account as the default one, and it's working 
fine even without any mail in the inbox.
However, for the pop3 account, I still have the same behaviour.  Anyway, 
I have a temporary workaround right now.
I will try to debug it but it may take some time to jump into the new 
architecture (I hacked james 3 years ago, but now we have some new great 
stuff  such as jpa, activemq, jackrabbit,...).


Regarding the OOM, I saw some days ago the JAMES-981 regarding the 
ConsumerTemplate.
However, the problem was still present even after you commited JAMES-981 
into trunk, so I don't think the problem was coming from that.
I tried to analyse the 2GB heap dump with eclipse memory analyser, but 
it failed (too much swapping, my RAM is only 1GB).
Currently, the process memory with the new trunk version I deployed 
today seems stable.
I will keep posted if I still have the issue, or if finally, the memory 
remains stable.


Tks a lot and keep up the excellent work,

Eric



On 01/-10/-28163 08:59 PM, Norman Maurer wrote:

Hi Eric,

thx for the feedback . Does this happens with pop3 or imap ? Or with
both? What client you use?

About the OOM Exception, chances are good that this is fixed now. I
did something bad with ConsumerTemplate in RemoteDelivery nailet,
which could lead to such problems.

Bye
Norman

2010/3/27, Eric Charleseric.char...@u-mangate.com:
   

Great Norman,

I just upgraded to the current trunk to benefit from :
- JAMES-983: common POP3/IMAP MailRepository.
- JAMES-984: activemq 5.3.1 hoping it will resolve some OutOfMemory
exceptions I had (*)

I deployed and now (configured with enableVirtualHosting=true and
JDBCDomainList), I've got the following:
- When my mailbox contains at least one mail, No problem: I can read it
without any problem.
- When my mailbox is empty, my mail client simply waits and finally give
me a timeout (closing my client and launching it again with mails in the
inbox, everything is fine again).

Can anybody else reproduce it?
Is there additional specific configuration I have to apply ?

Tks a lot,

Eric


(*) Just for information, about the OutOfMemory I had with activemq 3.5.0:
- Testing different configurations from
http://activemq.apache.org/javalangoutofmemory.html didn't help.
- Stressing a local deployment with apache-sever-postage, server was
holding the pressure during hours, however, memory was slightly but
constantly growing.
- I have a heap dump to be analyzed (still todo)
- Reading 6 memory leak bugs resolved in activemq 3.5.1.
(https://issues.apache.org/activemq/secure/ReleaseNote.jspa?projectId=10520styleName=Htmlversion=12183),
I decided to try to migrate to activemq 5.3.1, and by chance, Norman
checked it in two days ago. I still have to wait a few days to see if
the OutOfMemory problem is resolved.



On 12/23/-28158 08:59 PM, Norman Maurer wrote:
 

Ok it seems like this works for everyone so far.. I will commit it
this weekend ..

Thanks again for all the feedback / questions.

Bye,
Norman


2010/3/26 Stefano Bagnaraapa...@bago.org:

   

2010/3/24 Norman Maurernor...@apache.org:

 

Hi all,

I want to propose some really heavy change in current JAMES trunk, and
so next version. As all of you knows we are supporting IMAP in current
development version, which ships with its own mail store backend
called MailboxManager / Mailbox. For POP3 we use MailRepository as
backend.
I think this is a no go for a number of reasons, but the major one is
that we should be able to switch between IMAP and POP3 without the
need to migrate mails. So I rewrote the POP3Server to re-use the
MailboxManager / Mailbox stuff which is used by IMAP.

   

I think this is a good think. I also hope MailboxManager/Mailbox API
can be improved and simplified, but using a single API is the only way
to go. Once we use only one we'll better understand how to improve it.


 

So if a user login via POP3 he will just see the folder called INBOX
and nothing else. With IMAP he will see all folders. Thats exactly
what dovecot and courier does ( both heavy used unix imap/pop3
servers).

   

A good extension would be to have a login pattern to read custom
folders..
e.g: I login as username#FOLDER with username password and this way
I get access to FOLDER instead of INBOX.
The same could be applied to the delete behaviour (something like the
recent: prefix hack in gmail).


 

Another advance is 

Re: Re: Re: [PROPOSAL] Replace MailRepository with Mailbox / MailboxManager for POP3Server ...

2010-03-27 Thread Norman Maurer
Hi Eric,

I will try to find out whats wrong with the pop3 inbox stuff. If you
find out anything else please feel free to just report it..

Thx,
Norman

2010/3/27 Eric Charles eric.char...@u-mangate.com:
 Hi Norman,

 Many tks for your quick answer.

 I had defined in my Thunderbird 3.0.3 client (on linux) the pop3 account as
 the default one.
 When launching thunderbird, the connection was succefully done Host
 contacted, sending login information, saying after 1 second Determining
 which messages to index (never saw that message before...), hanging there a
 few minutes, and finally saying connection to server ... timed out. After
 that, Imap account behaved also such a way...
 I also tried with latest Thundrebird 3.0.3: same result...

 I have now defined the imap account as the default one, and it's working
 fine even without any mail in the inbox.
 However, for the pop3 account, I still have the same behaviour.  Anyway, I
 have a temporary workaround right now.
 I will try to debug it but it may take some time to jump into the new
 architecture (I hacked james 3 years ago, but now we have some new great
 stuff  such as jpa, activemq, jackrabbit,...).

 Regarding the OOM, I saw some days ago the JAMES-981 regarding the
 ConsumerTemplate.
 However, the problem was still present even after you commited JAMES-981
 into trunk, so I don't think the problem was coming from that.
 I tried to analyse the 2GB heap dump with eclipse memory analyser, but it
 failed (too much swapping, my RAM is only 1GB).
 Currently, the process memory with the new trunk version I deployed today
 seems stable.
 I will keep posted if I still have the issue, or if finally, the memory
 remains stable.

 Tks a lot and keep up the excellent work,

 Eric



 On 01/-10/-28163 08:59 PM, Norman Maurer wrote:

 Hi Eric,

 thx for the feedback . Does this happens with pop3 or imap ? Or with
 both? What client you use?

 About the OOM Exception, chances are good that this is fixed now. I
 did something bad with ConsumerTemplate in RemoteDelivery nailet,
 which could lead to such problems.

 Bye
 Norman

 2010/3/27, Eric Charleseric.char...@u-mangate.com:


 Great Norman,

 I just upgraded to the current trunk to benefit from :
 - JAMES-983: common POP3/IMAP MailRepository.
 - JAMES-984: activemq 5.3.1 hoping it will resolve some OutOfMemory
 exceptions I had (*)

 I deployed and now (configured with enableVirtualHosting=true and
 JDBCDomainList), I've got the following:
 - When my mailbox contains at least one mail, No problem: I can read it
 without any problem.
 - When my mailbox is empty, my mail client simply waits and finally give
 me a timeout (closing my client and launching it again with mails in the
 inbox, everything is fine again).

 Can anybody else reproduce it?
 Is there additional specific configuration I have to apply ?

 Tks a lot,

 Eric


 (*) Just for information, about the OutOfMemory I had with activemq
 3.5.0:
 - Testing different configurations from
 http://activemq.apache.org/javalangoutofmemory.html didn't help.
 - Stressing a local deployment with apache-sever-postage, server was
 holding the pressure during hours, however, memory was slightly but
 constantly growing.
 - I have a heap dump to be analyzed (still todo)
 - Reading 6 memory leak bugs resolved in activemq 3.5.1.

 (https://issues.apache.org/activemq/secure/ReleaseNote.jspa?projectId=10520styleName=Htmlversion=12183),
 I decided to try to migrate to activemq 5.3.1, and by chance, Norman
 checked it in two days ago. I still have to wait a few days to see if
 the OutOfMemory problem is resolved.



 On 12/23/-28158 08:59 PM, Norman Maurer wrote:


 Ok it seems like this works for everyone so far.. I will commit it
 this weekend ..

 Thanks again for all the feedback / questions.

 Bye,
 Norman


 2010/3/26 Stefano Bagnaraapa...@bago.org:



 2010/3/24 Norman Maurernor...@apache.org:



 Hi all,

 I want to propose some really heavy change in current JAMES trunk, and
 so next version. As all of you knows we are supporting IMAP in current
 development version, which ships with its own mail store backend
 called MailboxManager / Mailbox. For POP3 we use MailRepository as
 backend.
 I think this is a no go for a number of reasons, but the major one is
 that we should be able to switch between IMAP and POP3 without the
 need to migrate mails. So I rewrote the POP3Server to re-use the
 MailboxManager / Mailbox stuff which is used by IMAP.



 I think this is a good think. I also hope MailboxManager/Mailbox API
 can be improved and simplified, but using a single API is the only way
 to go. Once we use only one we'll better understand how to improve it.




 So if a user login via POP3 he will just see the folder called INBOX
 and nothing else. With IMAP he will see all folders. Thats exactly
 what dovecot and courier does ( both heavy used unix imap/pop3
 servers).



 A good extension would be to have a login pattern to read custom
 folders..
 e.g: I login as 

Re: Re: Re: [PROPOSAL] Replace MailRepository with Mailbox / MailboxManager for POP3Server ...

2010-03-27 Thread Norman Maurer
Hi Eric,

I just tested pop3 with imail and no messages in inbox and everything
just works. Will try to test it with thunderbird later..

Bye,
Norman


2010/3/27 Norman Maurer nor...@apache.org:
 Hi Eric,

 I will try to find out whats wrong with the pop3 inbox stuff. If you
 find out anything else please feel free to just report it..

 Thx,
 Norman

 2010/3/27 Eric Charles eric.char...@u-mangate.com:
 Hi Norman,

 Many tks for your quick answer.

 I had defined in my Thunderbird 3.0.3 client (on linux) the pop3 account as
 the default one.
 When launching thunderbird, the connection was succefully done Host
 contacted, sending login information, saying after 1 second Determining
 which messages to index (never saw that message before...), hanging there a
 few minutes, and finally saying connection to server ... timed out. After
 that, Imap account behaved also such a way...
 I also tried with latest Thundrebird 3.0.3: same result...

 I have now defined the imap account as the default one, and it's working
 fine even without any mail in the inbox.
 However, for the pop3 account, I still have the same behaviour.  Anyway, I
 have a temporary workaround right now.
 I will try to debug it but it may take some time to jump into the new
 architecture (I hacked james 3 years ago, but now we have some new great
 stuff  such as jpa, activemq, jackrabbit,...).

 Regarding the OOM, I saw some days ago the JAMES-981 regarding the
 ConsumerTemplate.
 However, the problem was still present even after you commited JAMES-981
 into trunk, so I don't think the problem was coming from that.
 I tried to analyse the 2GB heap dump with eclipse memory analyser, but it
 failed (too much swapping, my RAM is only 1GB).
 Currently, the process memory with the new trunk version I deployed today
 seems stable.
 I will keep posted if I still have the issue, or if finally, the memory
 remains stable.

 Tks a lot and keep up the excellent work,

 Eric



 On 01/-10/-28163 08:59 PM, Norman Maurer wrote:

 Hi Eric,

 thx for the feedback . Does this happens with pop3 or imap ? Or with
 both? What client you use?

 About the OOM Exception, chances are good that this is fixed now. I
 did something bad with ConsumerTemplate in RemoteDelivery nailet,
 which could lead to such problems.

 Bye
 Norman

 2010/3/27, Eric Charleseric.char...@u-mangate.com:


 Great Norman,

 I just upgraded to the current trunk to benefit from :
 - JAMES-983: common POP3/IMAP MailRepository.
 - JAMES-984: activemq 5.3.1 hoping it will resolve some OutOfMemory
 exceptions I had (*)

 I deployed and now (configured with enableVirtualHosting=true and
 JDBCDomainList), I've got the following:
 - When my mailbox contains at least one mail, No problem: I can read it
 without any problem.
 - When my mailbox is empty, my mail client simply waits and finally give
 me a timeout (closing my client and launching it again with mails in the
 inbox, everything is fine again).

 Can anybody else reproduce it?
 Is there additional specific configuration I have to apply ?

 Tks a lot,

 Eric


 (*) Just for information, about the OutOfMemory I had with activemq
 3.5.0:
 - Testing different configurations from
 http://activemq.apache.org/javalangoutofmemory.html didn't help.
 - Stressing a local deployment with apache-sever-postage, server was
 holding the pressure during hours, however, memory was slightly but
 constantly growing.
 - I have a heap dump to be analyzed (still todo)
 - Reading 6 memory leak bugs resolved in activemq 3.5.1.

 (https://issues.apache.org/activemq/secure/ReleaseNote.jspa?projectId=10520styleName=Htmlversion=12183),
 I decided to try to migrate to activemq 5.3.1, and by chance, Norman
 checked it in two days ago. I still have to wait a few days to see if
 the OutOfMemory problem is resolved.



 On 12/23/-28158 08:59 PM, Norman Maurer wrote:


 Ok it seems like this works for everyone so far.. I will commit it
 this weekend ..

 Thanks again for all the feedback / questions.

 Bye,
 Norman


 2010/3/26 Stefano Bagnaraapa...@bago.org:



 2010/3/24 Norman Maurernor...@apache.org:



 Hi all,

 I want to propose some really heavy change in current JAMES trunk, and
 so next version. As all of you knows we are supporting IMAP in current
 development version, which ships with its own mail store backend
 called MailboxManager / Mailbox. For POP3 we use MailRepository as
 backend.
 I think this is a no go for a number of reasons, but the major one is
 that we should be able to switch between IMAP and POP3 without the
 need to migrate mails. So I rewrote the POP3Server to re-use the
 MailboxManager / Mailbox stuff which is used by IMAP.



 I think this is a good think. I also hope MailboxManager/Mailbox API
 can be improved and simplified, but using a single API is the only way
 to go. Once we use only one we'll better understand how to improve it.




 So if a user login via POP3 he will just see the folder called INBOX
 and nothing else. With IMAP he will see