--- Steve Brewin <[EMAIL PROTECTED]> wrote:
> trebor iksrazal wrote:
> 
> > Wouldn't a Mailet
> > block, only returning after a db write? If the db
> is
> > down, and there were a lot of timeouts for a lot
> of
> > messages, would a JMS queue processed in
> intervals,
> > via extending GenericMailet, help? My idea is to
> use
> > Message-driven beans and entity beans to write
> emails
> > to the db.
> 
> In order to be sure that messages were not lost, the
> JMS queue would need to
> be persistent. Persistence would most likley be
> provided by storing the JMS
> message in a database. So, rather than circumventing
> any database bottleneck
> problems, we would be increasing the database
> activity, making such problems
> more likely.
> 
> James runs in an Avalon container which is not J2EE
> compatible - there are
> no message driven or entity beans to use.
> 
> -- Steve

Thanks for the response. You could be right, but I did
do some research. 

The use of James via JMS/MDB by extending
GenericMailet is detailed here: 

http://dev2dev.bea.com/products/wlworkshop/articles/DJ_002.jsp

A similair theme, using a JMS queue to send with mdb,
is detailed here: 

http://www.onjava.com/pub/a/onjava/2001/05/22/ejb_msg.html?page=2

I'm using jboss, which seems to do jms persistence via
a log file: 

"A JBossMQ Persistence Manager (PM) is responsible for
storing JMS messages marked as persistent, to allow
the recovery of the persistent messages if the server
suffers a failure. The persistent JMS messages are
stored in a simple log file, which is why this type of
PM is called Logged."

Concerning avalon, which I do not claim to know, by
extending GenericMailet, would I not need to worry
about J2EE support in James/Avalon? 

Perhaps I'm missing something - which is why I'm
asking. 

iksrazal

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

Reply via email to