Results 1 to 2 of 2

Thread: Spring and Eclipse RCP integration

  1. #1
    Join Date
    Jun 2008
    Posts
    1

    Default 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();
    }
    }

  2. #2
    Join Date
    May 2007
    Location
    Netherlands
    Posts
    614

    Default

    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
  •