Announcement Announcement Module
Collapse
No announcement yet.
jmx-export not working with osgi:reference Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment

      Working...
      X