You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Samuel Arnod-Prin <sa...@dxd2.com> on 2003/07/11 10:19:55 UTC
Avalon blocks ? How to configure to access to a specific block ?
(nntpserver, and so on)
Hello,
I am using James, discovering how to write powerful mailets and I was
interested in developping a mailet to store emails into nntp forums...
The only mailet you've told me to use creates a tcp-ip connection to any
nntp server to post the article and I suppose it's better to find
anotherway to forward the james MimeMessage.getInputStream() to the
NNTGroup.addArticle(Inputstream) ...
So I am trying to understand how blocks work...
ComponentManager componentManager = (ComponentManager)
getMailetContext().getAttribute(Constants.AVALON_COMPONENT_MANAGER);
componentManager.lookup("org.apache.james.nntpserver.repository.NNTPRepositoryImpl");
componentManager.lookup("org.apache.james.nntpserver.repository.NNTPRepository");
componentManager.lookup("org.apache.james.nntpserver.NNTPServer");
This 3 lines always faile ;o( and this one not :
componentManager.lookup(UsersStore.ROLE)
so who could tell me what I have to modify so that I could access to the
nntp server ?? Modifiy the .xinfo files from james.jar or assembly.xml ??
thanx for helping me
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Avalon blocks ? How to configure to access to a specific block ? (nntpserver, and so on)
Posted by "Noel J. Bergman" <no...@devtech.com>.
Your proposed mailet will cease to function in the next major version.
Mailets will not have access to the Avalon infrastructure. Mailets will be
restricted to the use of resources explicityly published for them.
Furthermore, the repository structure is changing.
If you look at NNTPRepositorImpl.createArticle, it just writes to a
temporary file, and then moves (renames) it into the NNTP spool directory.
That requires only knowing the path for the spool directory.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org