-
May 17th, 2008, 09:38 AM
#1
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
-
May 18th, 2008, 02:36 AM
#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
-
May 20th, 2008, 02:32 AM
#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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules