-
Jun 27th, 2008, 09:18 AM
#1
Spring and Eclipse RCP integration
Hi, I am new to spring, iBatis and eclipse RCP, and developing a project of integration.
When I try to load the applicationContext.xml, using ClassPathXmlApplicationContext, spring does not find the file.
When I googled, people said that spring does not work with eclipse RCP. Is this true and is there any way?
Thank you
public IBatisConnector(){
try {
ctx = new ClassPathXmlApplicationContext("/config/applicationContext.xml");
service = null;
service = (IService)ctx.getBean("IService");
} catch (Exception e) {
e.printStackTrace();
}
}
-
Jun 27th, 2008, 03:24 PM
#2
First of all these are the forums for the Spring Integration subproject of the Spring Framework. (the name is a bit confusing)
Second of all, there is no reason why Spring wouldn't integrate with Eclipse RCP. From the code sample I think you're trying to point at /config/applicationContext.xml instead of config/applicationContext.xml under the classpath root.
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