[ 
https://issues.apache.org/jira/browse/JAMES-956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839464#action_12839464
 ] 

Norman Maurer commented on JAMES-956:
-------------------------------------

Hi Mario,

I committed my code related to jms spooling today. Its using camel to send to 
the jms queue (See James.java). From there camel us used to move the mail from 
one queue to the other (I'm using one queue per processor listed in 
spoolmanager.xml). Not sure if this helps you.

All code related to this is located in the spoolmanager folder. I'm currently 
lookin into ways to make it more performant. At the moment I store the whole 
Mail object in the JMSMessage as Object (including the whole MimeMessage). 
Thats ok for small messages but its not a good idea for bigger stuff. I think 
we should to refactor it to move as less data as possible. Many mailets / 
matchers don't need to access the MimeMessage at all so there is no need to 
load it.  At the moment I think about using BlobMessage or StreamMessage for 
make it more performant. But I have to think about it. 


Feedback welcome

> work on james-server-experimental-activemq-function
> ---------------------------------------------------
>
>                 Key: JAMES-956
>                 URL: https://issues.apache.org/jira/browse/JAMES-956
>             Project: JAMES Server
>          Issue Type: New Feature
>          Components: SpoolManager & Processors
>    Affects Versions: Trunk
>            Reporter: Mario Zsilak
>            Priority: Trivial
>
> Hi,
> I'm very interested in using james with active-mq (or any other message 
> broker) .
> My Plan is to:
> -) write an SMTP handler which replaces the current 
> org.apache.james.smtpserver.integration.SendMailHandler and puts the message 
> into MQ
> -) write a spool manager which listens on messages an processes them, if a 
> message would be "moved" to a different processor, then it shall be put into 
> a different MQ and/or distinguishable in a other way ... (don't not yet)
> -) review and extend the current active-mq stuff
> In the end I want to be able to use a bunch of james servers which are 
> connected through a commen message broker.
> what do you guys think about this?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to