where to store global settings? (or maybe a bad idea?!?)

Alex's Avatar


23 Jan, 2010 02:53 AM

Hey there,

i am developing an application where i like utilize BlazeDS, but i don´t like to use the services-config.xml.
I have a couple of Services which depend on a ChannelSet like a Remote logger which logs to BlazeDS.
Now i was wondering how could i implement a central point in robotlegs where all services get their desired ChannelSet / config.


  1. Support Staff 1 Posted by Ondina D.F. on 23 Jan, 2010 10:05 AM

    Ondina D.F.'s Avatar

    Hi Alex,
    One way of doing it is like in Joel’s demo Union Platform Chat Client:
    Take a look at :
    I’m doing it his way.

  2. 2 Posted by Andrei TT on 23 Jan, 2010 01:39 PM

    Andrei TT's Avatar

    I don't know if I understand your question well but as I understand it I would create a ServicesConfig class and use mapSingleton to use the same instance in all injections. Then inject this class in the commands or the mediators that make the service calls and pass in the parameters. This is how I'd do it.

    ps: haven't had the chance yet to look over Joel's Union Platform Chat Client to see what Ondina means so check that out too.

  3. 3 Posted by lx on 25 Jan, 2010 05:53 PM

    lx's Avatar

    Hey Guys,

    this really helped a lot, now i have a sense of how to accomplish injection of something as widely used as an Remote Object, without having every Service depending on the actual Class.

    Nice one :)

    Now i am trying to understand the state machine :)

  4. Till Schneidereit closed this discussion on 02 Mar, 2010 12:46 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac