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