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

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 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?

also if i use Mina,how will it integrate with the container and in our case
with James configuration files?

thanks for you help,
Paulo F.


On Nov 15, 2007 11:31 PM, Paulo Sergio <[EMAIL PROTECTED]> wrote:

> 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]
> >
> >
>

Reply via email to