Results 1 to 2 of 2

Thread: Bundle version and service references

  1. #1
    Join Date
    Oct 2008
    Posts
    3

    Default Bundle version and service references

    I need to somehow lookup services based on bundle version. How do I do that? I am aware of the "service properties" mechanism however, that requires developers to code proeprties for each service entry and that is prone to errros. If we could somehow ues the bundle version to query services it would reduce a lot of overhead.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    The easiest way is to add a property to the services exported which indicates the bundle version. In fact, I would suggest that you look at the exported services to see whether a similar property is already there.
    If that's not an option, then you would have to programatically get all the services that match your description, ask for the service reference bundle (the publishing bundle) and then determine the version from there.
    Obviously this is more expensive and complex then searching for a property.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •