Results 1 to 6 of 6

Thread: Spring 1.1 / Spring-IDE 1.0.2 Compatibility

  1. #1
    Join Date
    Sep 2004
    Posts
    7

    Default Spring 1.1 / Spring-IDE 1.0.2 Compatibility

    Will I run into any compatibility issues or limitations in running the Spring-IDE 1.0.2 against a spring-beans.xml file for a Spring 1.1 application?

  2. #2
    Join Date
    Aug 2004
    Location
    Columbus, OH, USA
    Posts
    133

    Default

    No problems here.

  3. #3
    Join Date
    Sep 2004
    Posts
    7

    Default

    Can you elaborate a bit? How extensively are you "pushing the envelope" with using Spring 1.1 features? Have there been any changes to the spring-beans.dtd for Spring 1.1? I can't tell because the DTD does not require a version attribute.

  4. #4
    Join Date
    Aug 2004
    Location
    Columbus, OH, USA
    Posts
    133

    Default

    Sure. I'm using Spring for all my service-level declarative transaction support and it's handling my Hibernate session factory, session, configuration, etc. I'm also using Acegi to wrap all my services, so I have a chain of 4 beans for every service call. I was using 1.0.x and dropped 1.1 in without any changes to my configurations, nor to Spring-IDE, which I'm using to validate applicationConfiguration.xml. Note that I'm not using Spring's MVC support in case that matters.

  5. #5
    Join Date
    Sep 2004
    Posts
    7

    Default

    I found a problem that I'm not sure as to whether the problem is a bug with the Spring-IDE or a 1.0/1.1 incompatibility problem.

    I declare an AbstractService node as an interceptor with the intent of deriving concrete nodes from it. I can't remember exactly how it went but it was along the lines of the following:

    Code:
    <beans>
    
      <bean id="dataSource" classname="...JndiFactory">
        ...
      </bean>
    
      <bean id="transactionManager" ...>
      </bean>
    
      <bean id="abstractService" abstract="true" classname="...Proxy">
        <property name="transactionManager">
          <bean refid="transactionManager"/>
        </property>
        <property name="methods">
          <properties>
            <prop name="load*">etc...</prop>
            ...regex for methods to be intercepted defined here...
          </properties>
        </property/>
      </bean>
    
      <bean id="productService" parent="abstractService">
        <property name="target">
          <bean classname="...ProductServiceImpl">
            <property name="dataSource">
              <bean refid="dataSource"/>
            </property>
          </bean>
        </property>
      </bean>
    
    </beans>
    By no means correct, but you get the idea.

    Anyway, the Spring-IDE was giving a marker that "abstract must be declared" for the abstractService node. Well, as you can see, it had been declared, so it was a false error.

    Re-arranging the declaration to eliminate the abstract node was the only way that I could get the marker to go away.

  6. #6
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Spring IDE 1.0.3 ships with an older spring-beans.dtd which doesn't know about the abstract attribute. The gory details can be found in this entry http://forum.springframework.org/showthread.php?t=10957

    Cheers,
    Torsten
    Last edited by robyn; May 14th, 2006 at 10:51 AM.

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 4
    Last Post: Oct 22nd, 2005, 07:53 AM
  3. A Spring Class Loader?
    By azzoti in forum Architecture
    Replies: 8
    Last Post: May 7th, 2005, 04:02 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 6
    Last Post: Nov 18th, 2004, 11:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •