Hi Robert, On Nov 15, 2007 11:10 PM, Robert Burrell Donkin < [EMAIL PROTECTED]> wrote:
> On Nov 15, 2007 10:33 PM, Paulo Sergio <[EMAIL PROTECTED]> wrote: > > Hi Robert, > > > > On Nov 15, 2007 6:57 PM, Robert Burrell Donkin < > > > > [EMAIL PROTECTED]> wrote: > > > > > On Nov 15, 2007 5:31 PM, Paulo Sergio <[EMAIL PROTECTED]> wrote: > > > > Hi Norman, > > > > > > > > On Nov 15, 2007 5:07 PM, Norman Maurer <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi Paulo, > > > > > > > > > > no its not the only solution.. Its one solution ;-) > > > > > You can use non spring too and use assembly.xml to inject all > needed > > > > > stuff. Maybe reading this will help: > > > > > > > > > > http://excalibur.apache.org/framework/lifecycle.html > > > > > > > > > > > > yes it helped, but i couldn't find any examples on how to create a > > > service > > > > receiving udp connections.. is it possible? > > > > > > how to create a service from a component that recieves UDP connections > > > should be covered above. > > > > > > if you're wondering how to create a component that services UDP > > > connections then there are several ways to do it. if you like MINA > > > then http://mina.apache.org/udp-tutorial.html is a tutorial. the java > > > nio can also do this directly and will be covered by any good book on > > > the subject. i suspect that exaclibur also supports UDP. > > > > > > what i will create is a service inside some component (ex imap) that > > accepts udp messages sent by other server, > > my problem is that i don't know how to integrate this in james > > arquitecture... i know how to create it as an external resourse but i > need > > this to be inside james, or better, inside the imap component, because i > > need to notify the sessions once the message is received > > ok > > JAMES uses IoC (whether spring or avalon see > http://martinfowler.com/articles/injection.html or google) so it's a > case of factoring appropriate interfaces then declaring the right glue > (see norman's references). > > the basic idea is to create a new service for your new service. this > new service will depend on an interface which allows the events to be > posted. subclass some appropriate JAMES component with an > implementation of this interface. then let the container glue the > interfaces together. well i'm new to the IoC paradigm i need a better background on this.. at the moment i have no idea what interface to implement and how i specify that the class in a service and not just a normal class :) i will read about IoC and then i will be back with more questions about this specific case :) > > BTW i'm currently working on some code to revise the mailboxAPI so > that MailboxListener accepts events. hopefully once this is done you > job should be a little bit easier. yes this will definatelly be great help! but i'm already late on my task.. so i guess i will have to implement a workaround in the meantime.. BTW: thanks everybody for the help that all of you are giving me ! Cheers, Paulo F. > > > - robert > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
