This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have two Projects I want to use service of one project into another project's service .. Both have different service.xml files .. How can I Refer one Bean into another in this scenario ?? Please help me out on this
add other project jar or dependecy to your main project
in your main project application context
while you are importing your own service.xml
also import other project service.xml file
then you can use other project bean as you use them in other project
Joined: Aug 28, 2009
Thanks for your reply.. I am still getting Error saying
Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.thegoldensource.be.rules.RulesProcessor] to required type [com.thegoldensource.be.service.BERulesProcessor] for property 'rulesProcessor'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.thegoldensource.be.rules.RulesProcessor] to required type [com.thegoldensource.be.service.BERulesProcessor] for property 'rulesProcessor': no matching editors or conversion strategy found
I have following implementation :
BERulesProcessor is an interface in com.thegoldensource.be.service and its implementation RulesProcessor is in com.thegoldensource.be.rules. interface is in different project and RulesProcessor is in different project.
I have two service.xml files :
This is the xml file of one project (BE Core ) in which we have imported service.xml file of another project (BE Rules Say)