*
The moose likes Other Application Frameworks and the fly likes Exporting beans as OSGI services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Exporting beans as OSGI services" Watch "Exporting beans as OSGI services" New topic
Author

Exporting beans as OSGI services

Soniya Chavan
Greenhorn

Joined: May 10, 2010
Posts: 7
Hi All,

I wanted to export a bean as a OSGi service , so that this can be used in another bundle. But I get the below error. Please help.

SEVERE: Unable to create application context for [com.abc.test.impl], unsatisfied dependencies: Dependency on [(objectClass=com.abc.platform.test.manager.ITestManager)] (from bean [&testManager])
org.springframework.context.ApplicationContextException: Application context initialization for 'com.xyz.test.impl' has timed out waiting for (objectClass=com.abc.test.manager.ITestManager)

The code is given below. Am I doing anything wrong?
Bundle 1 (com.abc.test.impl) :
Bean declaration -

Declaring bean as OSGI service -

Bundle 2 (com.xyz.test.impl):



Really appreciate any help.

Thanks
Soniya
 
wood burning stoves
 
subject: Exporting beans as OSGI services
 
Similar Threads
Struts Validation in Spring Context
I am getting org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity:
Trouble converting a Spring JDBC app to use Spring Hibernate
Spring Transaction Problem
Migrating from Spring 2.0 and Hibernate 3.0 to Spring 3.1 and Hibernate 4.1