Hi Brent,

I don't think you can do that right now in an easy way (experts, please tell
if I am wrong). Precisely one of the hot topics in the development team
seems to be whether to head James towards a "service" (as you require) or
"single-application" type of architecture.

What I would suggest is turning the problem around: can you turn your
application into a service? That is, would it be interesting for you to
embed your application into James, either:
        - as a new mailet or series or mailets
        - as a new block or series of blocks 
        - separate, but using RMI or other for inter-process communication. 

I have done that myself and works fine and could give you pointers if
needed.

Br,

Isaac.

-----Original Message-----
From: Brent Johnson [mailto:[EMAIL PROTECTED] 
Sent: miércoles, 23 de junio de 2004 22:21
To: [EMAIL PROTECTED]
Subject: Starting from another Java App

I'm trying to find a way to try and embed James as part of my Java
application (my app uses James as a POP3 proxy for spam filtering). 
Right now I just have james installed and configured as a completely
separate application.  I've written some of my own custom Bayesian
matchers and it works great.

But I can't expect my end users to be savvy enough to be able to
download James and configure it themself.  I'd like to write some
scripts to configure FetchMail to pull down POP3 data and then deliver
those to local POP accounts.  When my app starts it can simply kick
off James.. and when shutdown it can cleanly shut James down.

I've done the configuring manually and I've got it working as a proxy.
 But I was wondering if anyone has any pointers on how I should go
about starting/stopping james from my Java app.. and what files I need
to package together to get it to work... i.e. I wont need the bin
directory and some others.  Just not sure the minimal files I'll need
to do this.

Thanks,

- Brent

---------------------------------------------------------------------
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