Discussions

News: How Spring is Simplifying Social Network Interactions

  1. If you've been forced to learn Spring in your new job, or you're worried about losing your legacy development  role and you know you've got to get caught up on the Java industry's most popular IoC container, you've probably got a copy of Craig Walls' Spring in Action floating around your home or office. In his latest posting at SpringSource.com, Craig takes some time to provide a quick but thorough introduction to Spring Social, "a new extension to Spring that aims to provide a platform upon which social-ready Spring applications may be built."


    When it comes to promising social networking facilities,  the Java community has spent too much time writing checks that the available software simply couldn't cash. In sales pitches and seminars, long before Zuckerman even attended college, managers and business users were being promised Facebook like experiences, yet even the most advanced portals at the time tended to fall significantly short of what we have come to expect from social networking sites today. Certainly the latest portal releases from WebSphere and Liferay have demonstrated that the enterprise Java community has caught up, but those organizations not hosting their applications on modern portal servers still find integrating social networking features into their sites to be a challenge.


    Spring Social promises to make interacting with and integrating social networking functions into existing applications much simpler, while obfuscating some of the complexity associated with OAuth secured interactions.Just like the Spring JdbcTemplate helps simplify database interactions, Spring social templates are promising to make interacting with Twitter and Facebook easier as well.

    "A key component of Spring Social is its collection of social templates. These templates (which leverage RestTemplate under the covers) expose operations of the service providers that they model, handling the intricacies of adding OAuth Authorization headers for you.Spring Social 1.0.0.M1 includes 4 social templates to choose from:

     * TwitterTemplate
     * FacebookTemplate
     * LinkedInTemplate
     * TripItTemplate

    To use any of these templates, simply create an instance of it, providing the OAuth connection details through constructor arguments. For example, to create an instance of TwitterTemplate:"

    It's an interesting project; certainly worth taking a look at if integrating social networking features into your applications is one of your current goals.

    The Full Article

    http://blog.springsource.com/2010/11/03/socializing-spring-applications/


    Recommended Books for Learning Spring

    Spring in Action  ~ Craig Walls
    Spring Recipes: A Problem-Solution Approach  ~ Gary Mak
    Professional Java Development with the Spring Framework ~ Rod Johnson PhD
    Pro Java EE Spring Patterns: Best Practices and Design Strategies ~ Dhrubojyoti Kayal

  2. > or you're worried about losing your legacy development  role

    Does Cameron now get paid by Jboss for such comments? How is there any journalistic integrity in such comments? I believe this kind of behavior is referred to as being a corporate stooge in the US. correct? 

  3. > or you're worried about losing your legacy development  role

    Does Cameron now get paid by Jboss for such comments? How is there any journalistic integrity in such comments? I believe this kind of behavior is referred to as being a corporate stooge in the US. correct? 

    How is this related to Jboss? You are not making nay sense...

     

  4. Corporate Stooge?[ Go to top ]

    The only point I was making was that if you were a Java developer who was hitting the job market today, you'd probably want to include some knowledge of Spring in your set of skills. That's not to say Spring is the only set you'd need, but it's definitely popular. And Craig's book is typically the one people pick up on the topic. That's all.

  5. Hi Cam,

     

    Spring Social is the great way to integrate Social Platforms like FB, Twitter in to the application. I am having an application developed in Liferay Portal Server (Portlet 2.0), and I am very keen to use the Spring Social services.

    I am just wondering that to use the Spring Social, do I have to user SpringMVC portlet only? Bcoz currently all my portlets are being developed by inheriting LiferayPortlet.

    Any guidance is appreciable.

    Regards,

    Nilesh