Results 1 to 2 of 2

Thread: Debugging OSGi services in war bundles

  1. #1
    Join Date
    Feb 2010
    Posts
    10

    Default Debugging OSGi services in war bundles

    I have few OSGi war bundles configured with various services and different cardinalities. Is it possible to debug these osgi services without deploying to Spring DM?

    I am thinking in the lines of running the bundles in a osgi framework as I saw in various examples in STS dashboard.

    I thought its faster this way than debugging in DM Server. Even though these bundles are wars, the services do not require web interfaces as they are just a means of retrieving information from other bundles.

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

    Default

    "without deploying to Spring DM"
    What do you mean by that? Spring DM is a framework not a platform. The best debugging happens at runtime but if that's not an option you could try to "mock" your case through an integration test or through some OSGi mocks.
    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

Posting Permissions

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