Results 1 to 3 of 3

Thread: jmx-export not working with osgi:reference

  1. #1
    Join Date
    Oct 2008
    Posts
    0

    Default jmx-export not working with osgi:reference

    hi,

    i have a simple bundle with the following module-xml:

    <beans>
    <osgi:reference id="dataSource" interface="javax.sql.DataSource"/>
    <context:annotation-config/>
    <context:component-scan base-package="wswb.repository.jdbc" />
    <context:mbean-export />
    </beans>

    The class is the package "wswb.repository.jdbc" is correctly annotated with @Repository and @ManagedResource and @ManagedOperation but the bean is not exported.

    When I remove the bean with id="dataSource" (= osgi:reference) from module-context.xml, the beans are exported correctly.

    lg,
    daniel

  2. #2
    Join Date
    Oct 2008
    Posts
    0

    Default jmx-export not working with osgi:reference

    hi,

    found the problem. I forgot to define "osgi:service" for the dataSource (in the hsqldb-bundle). However I wonder why there were no exceptions?

    lg,
    daniel

  3. #3
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default jmx-export not working with osgi:reference

    Daniel,

    That is strange. Can you create a JIRA with a small test case for this - I'd like to figure out where the exceptions went

    Regards,

    Rob

Posting Permissions

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