Hello Masters,
I am using OSGI Feature pack on WebSphere application server.
How can i use Spring-Data with OSGI blueprint, how can i define the repositories interfaces in the blueprint.xml without using Spring's "@Authowire" annotation?
I think i cannot define the repositories interfaces in the blueprint because they are interfaces and i don't have any implementations of them.
I'd like to have something as follows:
Your insight would be appreciated.Code:<bean id="userRepository" class="com.company.UserRepository"/> <bean id="userService" class="com.company.UserServiceImpl"> <tx:transaction method="add* update* remove*" value="Required"/> <tx:transaction method="find*" value="NotSupported"/> <property name="userRepository" ref="userRepository"/> </bean> <bean id="persistenceServiceImpl" class="com.company.PersistenceServiceImpl"> <property name="userService" ref="userService"/> </bean> <!-- ======== --> <!-- Services --> <!-- ======== --> <service id="persistenceService" interface="com.company.PersistenceService" ref="persistenceServiceImpl"/>
Thanks in advance,
Erwin


Reply With Quote