-
Jul 25th, 2008, 06:41 AM
#1
spring integration + osgi
hiya,
anyone has an example about using spring integration on osgi ?
For example having osgi bundles communicating with each other through spring integration.

Steven
-
Jul 26th, 2008, 02:57 AM
#2
I've been working on some samples for Spring Batch which use Spring Integration and some also are OSGi enabled. I'm not ready to publish them yet because Integration is still very volatile, but if you watch the Batch forum for announcements you should see them eventually. There are two patterns I've worked on: Bundle Input Channel, and Wiring Bundle. In the former, each bundle defines only its input channel(s) and declares its outputs as OSGi service references (which are then satisfied by other bundles). In the latter (more suitable for larger applications, or ones where you might strategise the wiring to be local or remote), each bundle defines all its inputs and outputs as service references, and the wiring bundle satisfies them at runtime. N.B. in the Bundle Input Channel case you sometimes have to use cardinality="0..1" on one side of the relationship to prevent a cyclic dependency from blocking the bundles from installing. A third interesting pattern is the Hub and Spoke, where a central hub bundle has a set of dyumb routers to satisfy routing requests between spokes (so the spokes don't have to be wired directly together). We've talked about this one but not implemented it yet.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules