|
|
|
Как в RMI Sprint правильно отключить singleton
|
|||
|---|---|---|---|
|
#18+
Нужно отключить singleton на клиенте, везде приводят примеры только с сервером. на сервере все ОК, пишу context.xml <bean id="SNMPmodule" class="snmp.SNMPmoduleImp" singleton="false"/> <bean class="org.springframework.remoting.rmi.RmiServiceExporter"> <property name="serviceName" value="snmp/SNMPmodule"/> <property name="service"> <ref local="SNMPmodule"/> </property> <property name="serviceInterface" value="faces.SNMPmodule"/> </bean> launcher.java BeanFactory factory = new FileSystemXmlApplicationContext("context.xml"); System.out.println(factory.isSingleton("SNMPmodule")); false а на клиенте, context.xml <bean id="SNMPmodule" class="org.springframework.remoting.rmi.RmiProxyFactoryBean"> <property name="serviceUrl"> <value>rmi://10.0.1.22/snmp/SNMPmodule</value> </property> <property name="serviceInterface"> <value>faces.SNMPmodule</value> </property> </bean> launcher.java BeanFactory factory = new FileSystemXmlApplicationContext("context.xml"); System.out.println(factory.isSingleton("SNMPmodule")); true эксперименты типа: <bean id="SNMPmodule" class="org.springframework.remoting.rmi.RmiProxyFactoryBean" singleton="false"> нечего не дали, как с этим бороться средствами Spring? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2006, 10:56 |
|
||
|
Как в RMI Sprint правильно отключить singleton
|
|||
|---|---|---|---|
|
#18+
Dremmmmэксперименты типа: <bean id="SNMPmodule" class="org.springframework.remoting.rmi.RmiProxyFactoryBean" singleton="false"> нечего не дали, как с этим бороться средствами Spring? Не верю! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2006, 11:08 |
|
||
|
Как в RMI Sprint правильно отключить singleton
|
|||
|---|---|---|---|
|
#18+
может у меня spring кривой? Spring-Version: 1.2.5 Все разрабатывается и проверяется на 1 компе, может на разные разнести? Плюс в серверном xml еще всякая хрень есть, которая не совсем понятна, но без нее не работает, а точнее: <bean id="roleVoter" class="net.sf.acegisecurity.vote.RoleVoter"/> <bean id="accessDecisionManager" class="net.sf.acegisecurity.vote.UnanimousBased"> <property name="decisionVoters"> <list> <ref bean="roleVoter"/> </list> </property> </bean> <bean id="authenticationManager" class="net.sf.acegisecurity.providers.ProviderManager"> <property name="providers"> <list> <ref bean="authenticationProvider"/> </list> </property> </bean> <bean id="authenticationProvider" class="net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider"> <property name="authenticationDao"> <ref bean="authenticationDao"/> </property> </bean> <bean id="authenticationDao" class="net.sf.acegisecurity.providers.dao.memory.InMemoryDaoImpl"> <property name="userMap"> <value> root=root,ROLE_ADMIN palmerd=4moreyears,ROLE_PRESIDENT bauerj=ineedsleep,ROLE_FIELD_OPS,ROLE_DIRECTOR myersn=traitor,disabled,ROLE_FIELD_OPS </value> </property> </bean> <bean id="SecurityInterceptor" class="net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor"> <property name="authenticationManager"> <ref bean="authenticationManager"/> </property> <property name="accessDecisionManager"> <ref bean="accessDecisionManager"/> </property> <property name="objectDefinitionSource"> <value> </value> </property> </bean> <bean id="remoteAuthenticationManager" class="net.sf.acegisecurity.providers.rcp.RemoteAuthenticationManagerImpl"> <property name="authenticationManager"> <ref bean="authenticationManager"/> </property> </bean> может она как-то влияет на singleton ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.07.2006, 11:27 |
|
||
|
|

start [/forum/topic.php?fid=59&tid=2148713]: |
0ms |
get settings: |
8ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
160ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
29ms |
get tp. blocked users: |
2ms |
| others: | 199ms |
| total: | 430ms |

| 0 / 0 |
