<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:social="http://www.springframework.org/schema/spring-social"
	xsi:schemaLocation="http://www.springframework.org/schema/spring-social http://www.springframework.org/schema/social/spring-social-1.0.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

	<!-- Configure a connection repository through which account-to-provider connections will be stored -->	
	<social:jdbc-connection-repository data-source="dataSource" />
	
	<!-- Configure a service provider factory from which service providers may be retrieved by name
	     (used primarily by ConnectController).
	     In this case, service providers are retrieved as beans from the Spring application context.
	     <social:jdbc-service-provider-factory> retrieves them through JDBC.  
	     -->
	<bean id="serviceProviderFactory" class="org.springframework.social.config.BeanServiceProviderFactory" />
	
	<!-- Configure a Twitter service provider -->
	<social:twitter-provider consumer-key="YR571S2JiVBOFyJS5MEg" 
							 consumer-secret="Kb8hS0luftwCJX3qVoyiLUMfZDtK1EozFoUkjNLUMx4" />

</beans>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:social="http://www.springframework.org/schema/spring-social"
	xsi:schemaLocation="http://www.springframework.org/schema/spring-social http://www.springframework.org/schema/social/spring-social-1.0.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

	<!-- Configure a connection repository through which account-to-provider connections will be stored -->	
	<social:jdbc-connection-repository data-source="dataSource" />
	
	<!-- Configure a service provider factory from which service providers may be retrieved by name
	     (used primarily by ConnectController).
	     In this case, service providers are retrieved as beans from the Spring application context.
	     <social:jdbc-service-provider-factory> retrieves them through JDBC.  
	     -->
	<bean id="serviceProviderFactory" class="org.springframework.social.config.BeanServiceProviderFactory" autowire="constructor" />
	
	<!-- Configure a Twitter service provider -->
	<social:twitter-provider consumer-key="YR571S2JiVBOFyJS5MEg" 
							 consumer-secret="Kb8hS0luftwCJX3qVoyiLUMfZDtK1EozFoUkjNLUMx4" />

</beans>
Use BeanServiceProviderFactory in Twitter showcase.
Use BeanServiceProviderFactory in Twitter showcase.
