On Dec 7, 2007 4:01 PM, Paulo Sergio <[EMAIL PROTECTED]> wrote:
> 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?

the standard avalon stuff (xinfo and so on)

> and how would i specify thats UDP?

not sure, off hand (maybe stefano will jump in)

> should i
> add the description to  james-assembly.xml and james-config.xml files?

yep

<snip>

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

if you want the service to interact with IMAP then you'll need to add a hook

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

yep

just use whatever standard approach you're most comfortable with

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to