# spring-hessian-showcase **Repository Path**: Geek4J/spring-hessian-showcase ## Basic Information - **Project Name**: spring-hessian-showcase - **Description**: spring-hessian-showcase - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2016-05-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Spring-hessian-showcase The project is a simple showcase of Hessian integrating with spring. If you want need basic authentication,you can add the following configuration: * The configuration of server in the web.xml of Tomcat:
<security-constraint>
		<web-resource-collection>
		<web-resource-name>Hessian Client Auth</web-resource-name>
			<url-pattern>/WS/*</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<role-name>hessian</role-name>
		</auth-constraint>
	</security-constraint>
	<login-config>
		<auth-method>BASIC</auth-method>
		<realm-name>Hessian Realm</realm-name>
	</login-config>
* The configuration of server in the tomcat-users.xml of Tomcat:
<user username="Geek4J" password="Geek4J" roles="hessian" />
* The configuration of client:
<bean id="personService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
		<property name="serviceUrl" value="http://localhost:8080/spring-hessian-showcase/WS/Person" />
		<property name="serviceInterface" value="org.geek4j.service.PersonService" />
		<property name="username" value="Geek4J" />
		<property name="password" value="Geek4J" />
	</bean>