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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to