Hi Robert, On Dec 6, 2007 9:38 PM, Robert Burrell Donkin <[EMAIL PROTECTED]> wrote:
> On Dec 6, 2007 1:02 PM, Paulo Sergio <[EMAIL PROTECTED]> wrote: > > Hi all again, > > well i think i got the concept about IoC, although while looking at > James i > > really don't know what i need to add in order to receive the udp > > notifications. > > As far as i understand, i can create block's that represent services, > where > > the data (imap commands in my case) would be injected, these block's are > > defined in: > > phoenix-deployment/src/conf/james-assembly.xml > > phoenix-deployment/src/conf/james-config.xml > > that right (providing you're talking about services as in COP rather > than services as in SOA) > > > although i have no information here if it's tcp or udp, is this some how > > abstracted by some layer? does the server receive both tcp and udp in > the > > port we specify? > > the blocks are just about gluing components together to form an > application > > some of these components accept socket connections. most > socket-serving components use excalibur to manage the sockets (pooling > etc). AbstractJamesServer is a common superclass for this kind of > server. if i extend from this class, what should i add in the conf files in order to specify this as a new service? and how would i specify thats UDP? should i add the description to james-assembly.xml and james-config.xml files? > > > The best scenario for me would be to have this "notifications receiver" > > somehow inside the Imap module, but since imap is not udp, will this > work? > > the IMAP implementation is extensible. one of it's extension points is > the processor chain. this extension point can be used to insert an > interface to a new component. plugging this new component requires > tinkering with the container and the blocks. > > the new component should contain some sort of socket server. how you > want to implement is up to you: it's independent of JAMES. as far as i understand you are talking about how to add a new command to IMAP server (like idle), but what i'm trying to do, is to create an extra service to receive connections in a different port and using UDP. > > > also if i use Mina,how will it integrate with the container and in our > case > > with James configuration files? > > i'm don't understand why you need to integrate MINA with avalon. just > create a component capable of programmatic configuration then plug it > in. Mina was just an idea, in fact everything i need is a socketserver accepting udp in a specified port. Thanks for the help, Paulo F. > > - robert > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
