A jar-file implements a client as described here:
The client is invoked by specifying a parent context. The junit tests run fine, all seems to be good.Code:public class ToolsClient { private ApplicationContext applicationContext; public ToolsClient( ApplicationContext parentContext ) { applicationContext = new ClassPathXmlApplicationContext(new String[]{"classpath:spring.xml"}, parentContext ); } ... public PropertyClient getPropertyClient() { return (PropertyClient) applicationContext.getBean("propertyClient"); } ...
But then i am using a second hibernate client. It supplies it's own spring.xml, which is different and independent from the tools spring.xml. This module instantiates the tools client, but when accesing getPropertyClient() spring throws a "no such bean exception". It seems the tool-client find the wrong spring.xml. Any idea?


Reply With Quote