• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need to create plugin between osgi bundles  RSS feed

 
Kumar Prakash
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I had created few bundles in my application. I want to plug those bundles as display in my attached image

Simply i want to plug in and plug out these bundles as i want for a specific flow/reason.
Demo-Business-Logic-Proposal.jpg
[Thumbnail for Demo-Business-Logic-Proposal.jpg]
 
Tim Moores
Saloon Keeper
Posts: 4019
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What specific problem are you facing implementing that? Since you have bundles already, I assume that the basic functions of an OSGi container are in place...?
 
Kumar Prakash
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to plug one bundle to another bundles as shown in the image.
Suppose i have 4 bundles, then i want to plug bundle1+bundle3+ bundle4 and want to create one more plug between like bundle1+bundle3+bundle2.
 
Tim Moores
Saloon Keeper
Posts: 4019
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OSGi lets you declare dependencies between bundles in the manifest. Assuming that you didn't write the manifest manually (have you?), consult the manual of whichever OSGi container you're using (which one?) how to specify that.
 
Kumar Prakash
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no matter to create dependencies from manifest.mf. It is done, i created dependencies but want to show my demo as i plug input type bundle 1 with business logic bundle 1 and its output will print with output bundle 1.
Simultaneously other business logic bundles are work with there plug in. I don't need to stop or start them.
Such as business logic bundle 3 also works with input type bundle 1 and give output to output type bundle 1.
 
Tim Moores
Saloon Keeper
Posts: 4019
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. So what, specifically, do you need help with - code? If so, post what you have so far (just the relevant bits).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!