Announcement Announcement Module
Collapse
No announcement yet.
dynamical channels creation - prototype scoped def. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • dynamical channels creation - prototype scoped def.

    Hello,

    In my application (a kind of TCP IO gateway system), I need to create PollableChannels dynamically and connect them to one statically defined outbound channel adapter. All of it under Equinox/OSGi.

    I'd have two questions,

    1) My intended approach is exporting the statically defined adapter as a OSGi service via Spring DM and just 'hook' into it the dynamically created channels. Does it sound reasonable?
    2) If it does, then I would like to define in the SI's xml configuration a template for my dynamically created channels. My question is - can I anyhow specify a 'scope=prototype' to a SI artifact, let's say

    Code:
    <channel id="channelTemplate"/>
    ?

    Thanking you in advance.

    David
Working...
X