מישהו פה התעסק עם SPRING?
אני רוצה להגדיר אובייקט כ SINGLETON ואין בעיה עם זה כל עוד אני משתמשת ב DTD:
אני רוצה להגדיר אובייקט כ SINGLETON ואין בעיה עם זה כל עוד אני משתמשת ב DTD:
singleton = "false" (the default is true) <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "העניין target=_blank rel=nofollow>http://www.springframework.org/dtd/spring-beans.dtd">
העניין הוא שאני מגדירה בקובץ טרנזקציות אשל להגדרות האלה שלא כלולות כ BEAN אני באותו קובת XML לא מגדירה את השורה של ה DTD מלמעלה, אלא מגדירה את השורות הבאות, מה עליי להוסיף להן ע"מ שאוכל להשתמש ב singleton = "false"?<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"> <aop:config> <aop:advisor pointcut="execution(* tx*(..))" advice-ref="txAdvice"/> </aop:config> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="tx*" propagation="REQUIRED"/> </tx:attributes> </tx:advice>