Context file improvements (based on sts suggestions)
This commit is contained in:
parent
4b45e5d7c2
commit
cf4072c517
|
@ -4,7 +4,7 @@
|
||||||
xmlns:security="http://www.springframework.org/schema/security"
|
xmlns:security="http://www.springframework.org/schema/security"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
||||||
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
|
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.1.xsd">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- Application context containing authentication beans.
|
- Application context containing authentication beans.
|
||||||
|
@ -30,7 +30,6 @@
|
||||||
<property name="staticField" value="org.springframework.security.acls.domain.BasePermission.DELETE"/>
|
<property name="staticField" value="org.springframework.security.acls.domain.BasePermission.DELETE"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
<!-- An access decision voter that reads ROLE_* configuration settings -->
|
<!-- An access decision voter that reads ROLE_* configuration settings -->
|
||||||
<bean id="roleVoter" class="org.springframework.security.vote.RoleVoter"/>
|
<bean id="roleVoter" class="org.springframework.security.vote.RoleVoter"/>
|
||||||
|
|
||||||
|
|
|
@ -27,17 +27,17 @@
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
|
<bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
|
||||||
<property name="transactionManager"><ref local="transactionManager"/></property>
|
<property name="transactionManager" ref="transactionManager"/>
|
||||||
<property name="transactionAttributeSource">
|
<property name="transactionAttributeSource">
|
||||||
<value>
|
<value>
|
||||||
sample.contact.ContactManager.create=PROPAGATION_REQUIRED
|
sample.contact.ContactManager.create=PROPAGATION_REQUIRED
|
||||||
sample.contact.ContactManager.getAllRecipients=PROPAGATION_REQUIRED,readOnly
|
sample.contact.ContactManager.getAllRecipients=PROPAGATION_REQUIRED,readOnly
|
||||||
sample.contact.ContactManager.getAll=PROPAGATION_REQUIRED,readOnly
|
sample.contact.ContactManager.getAll=PROPAGATION_REQUIRED,readOnly
|
||||||
sample.contact.ContactManager.getById=PROPAGATION_REQUIRED,readOnly
|
sample.contact.ContactManager.getById=PROPAGATION_REQUIRED,readOnly
|
||||||
sample.contact.ContactManager.delete=PROPAGATION_REQUIRED
|
sample.contact.ContactManager.delete=PROPAGATION_REQUIRED
|
||||||
sample.contact.ContactManager.deletePermission=PROPAGATION_REQUIRED
|
sample.contact.ContactManager.deletePermission=PROPAGATION_REQUIRED
|
||||||
sample.contact.ContactManager.addPermission=PROPAGATION_REQUIRED
|
sample.contact.ContactManager.addPermission=PROPAGATION_REQUIRED
|
||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -27,28 +27,23 @@
|
||||||
<!-- HTTP invoker exporter for the ContactManager -->
|
<!-- HTTP invoker exporter for the ContactManager -->
|
||||||
<!-- Spring's HTTP invoker uses Java serialization via HTTP -->
|
<!-- Spring's HTTP invoker uses Java serialization via HTTP -->
|
||||||
<bean name="/ContactManager-httpinvoker" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
|
<bean name="/ContactManager-httpinvoker" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
|
||||||
<property name="service"><ref bean="contactManager"/></property>
|
<property name="service" ref="contactManager"/>
|
||||||
<property name="serviceInterface">
|
<property name="serviceInterface" value="sample.contact.ContactManager"/>
|
||||||
<value>sample.contact.ContactManager</value>
|
|
||||||
</property>
|
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Hessian exporter for the ContactManager -->
|
<!-- Hessian exporter for the ContactManager -->
|
||||||
<!-- Hessian is a slim binary HTTP remoting protocol -->
|
<!-- Hessian is a slim binary HTTP remoting protocol -->
|
||||||
<bean name="/ContactManager-hessian" class="org.springframework.remoting.caucho.HessianServiceExporter">
|
<bean name="/ContactManager-hessian" class="org.springframework.remoting.caucho.HessianServiceExporter">
|
||||||
<property name="service"><ref bean="contactManager"/></property>
|
<property name="service" ref="contactManager"/>
|
||||||
<property name="serviceInterface">
|
<property name="serviceInterface" value="sample.contact.ContactManager"/>
|
||||||
<value>sample.contact.ContactManager</value>
|
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Burlap exporter for the ContactManager -->
|
<!-- Burlap exporter for the ContactManager -->
|
||||||
<!-- Burlap is a slim XML-based HTTP remoting protocol -->
|
<!-- Burlap is a slim XML-based HTTP remoting protocol -->
|
||||||
<bean name="/ContactManager-burlap" class="org.springframework.remoting.caucho.BurlapServiceExporter">
|
<bean name="/ContactManager-burlap" class="org.springframework.remoting.caucho.BurlapServiceExporter">
|
||||||
<property name="service"><ref bean="contactManager"/></property>
|
<property name="service" ref="contactManager"/>
|
||||||
<property name="serviceInterface">
|
<property name="serviceInterface" value="sample.contact.ContactManager"/>
|
||||||
<value>sample.contact.ContactManager</value>
|
|
||||||
</property>
|
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
|
|
Loading…
Reference in New Issue