SpringOne 2GX 2012 Replays: Getting started with Spring Data and Distributed Database Grids + Whoops, where did my architecture go
Getting started with Spring Data and Distributed Database Grids
Alternative data persistence approaches are all the rage these days. Transitioning our skill sets and legacy applications to these new and promising technologies though can be problematic. Spring Data is an exciting solution to persistence proliferation. It brings the flexibility and familiarity of the Spring Framework and adds the concepts of Repositories which allow developers to write their programs to using familiar methods such as save, update, delete, and dynamic finders.
In this presentation we will introduce Spring Data for GemFire and how it leverages your existing Spring Framework skills to create generic Spring style interfaces which will make it more efficient to transition to distributed data grids such as GemFire.
About the speakers
Mark Johnson
Mark Johnson is a Staff System Engineer at VMware where he focuses on helping people learn more about SpringSource technologies and they can aid enterprise applications.
Mark has worked on a wide range of technology during his career. Most recently he has focused on Groovy, Grails, and Scala as technologies which enable high quality applications quickly.
Mark is active in the software community as the President of the New England Java Users Group (NEJUG) and a regular presenter to user groups and various conferenes. When not working, Mark can be found riding his mountain bike on local trails and playing with his family
More About Mark »David Turanski
David Turanski is a Senior Software Engineer with SpringSource, a division of VMWare. David is a member of the Spring Data team and lead of the Spring Data GemFire project. He is also a committer on the Spring Integration project. David has extensive experience as a developer, architect and consultant serving a variety of industries. In addition he has trained hundreds of developers how to use the Spring Framework effectively.
More About David »Whoops! Where did my architecture go?
When applications grow bigger, modularity becomes a key aspect regarding maintainability. Design decisions made in the early days are hardly discoverable in the codebase, inter-module dependencies grow a lot. The talk introduces means and approaches to connect logical architecture to the codebase. Beyond that we discuss patterns and best practices around general code organization, package structures to build a solid foundation for Java applications and in how far Spring can help creating loosely coupled components and dedicated points to extend applications.
About the speaker
Oliver Gierke
Oliver Gierke is engineer at SpringSource, a division of VMware, project lead of the Spring Data JPA module and involved into other Spring Data modules (e.g. MongoDB) as well. He has been into developing enterprise applications and open source projects for over 6 years now. His working focus is centered around software architecture, Spring and persistence technologies. He is regularly speaking at German and international conferences as well as author of technology articles.
More About Oliver »SpringOne 2GX 2012 Replays: Monitoring and Managing Spring Integration, Building Big Data Pipelines with Spring Hadoop
In this presentation we will discuss the options for managing and monitoring applications that use Spring Integration. It will provide a comprehensive overview of the extensive support for JMX provided by Spring Integration, both in terms of providing access to Spring Integration internals, as well as creating a JMX client to interact with local and remote MBeanServers.
In addition, we will show how to use the Spring Integration plugin for Spring Insight to drill down into Spring Integration flow processing to examine application performance.
Topics include:
- Using the Integration MBean Exporter, and the MBeans it registers, for analyzing Messaging Endpoints and Channels.
- Exporting the Integration MBean Exporter itself as an MBean, to gain access to it's attributes and operations.
- Using the Control Bus to start and stop endpoints.
- Using the Spring Integration plugin for Spring Insight to get a real-time view of your application and its performance.
- Enabling and using Message History
- Using the orderly shutdown mechanism available in Spring Integration 2.2.
- Using JMX endpoints (with local and remote MBeanServers) to monitor attributes. invoke operations, publish notifications, and receive notifications.
About the speaker
Gary Russell
Gary has been in software engineering, concentrating on Enterprise Integration, for over 30 years on various platforms, and in the Java space since the late '90s.
He has been developing with the Spring Framework since 2004 and joined SpringSource/VMware in 2009 in a consulting role. From 2009 until the end of 2011 he taught Core Spring and Enterprise Integration with Spring to several hundred developers, as well as providing Enterprise Integration consulting services with Spring Integration, Spring Batch and Core Spring.
He has been a committer on the Spring Integration project for nearly 3 years and became a full time member of the engineering team in January 2012.
More About Gary »How to build Big Data Pipelines for Hadoop using OSS
Hadoop is not an island. To deliver a complete Big Data solution, a data pipeline needs to be developed that incorporates and orchestrates many diverse technologies. A Hadoop focused data pipeline not only needs to coordinate the running of multiple Hadoop jobs (MapReduce, Hive, Pig or Cascading), but also encompass real-time data acquisition and the analysis of reduced data sets extracted into relational/NoSQL databases or dedicated analytical engines.
This session looks at the architecture of Big Data pipelines, the challenges ahead and how to build manageable and robust solutions using Open Source software such as Apache Hadoop, Hive, Pig, Spring Hadoop, Batch and Integration.
About the speaker
Costin Leau
Costin Leau is an engineer within the SpringSource. His interests include data access and aspect oriented programming. With significant development experience, Costin has worked on various Spring Framework features (cache abstraction, JPA, java config), led the Spring Dynamic Modules (Spring OSGi probject), Spring GemFire and the Spring-inspired, OSGi 4.2 Blueprint Service RI. Currently Costin is working in the NOSQL and Big Data area, leading the Spring integration with Hadoop and Redis.
More About Costin »This Week in Spring - Feb 19th, 2013
Welcome back to another installment of This Week in Spring! This week I'm in Atlanta, GA with a few other SpringSource colleagues talking to developers at the DevNexus Java conference and - tomorrow - speaking at the Atlanta Spring User Group. This show is bigger and better than ever this year! I love the energy and community here.
If you're in Atlanta, GA, drop by the eHire labs (see the link above for the address) tomorrow night for the Spring User Group and we'll talk about REST, Spring MVC, Spring for Android, Spring Mobile, and more! I look forward to seeing you.
As usual, though, we've got a lot to cover, so let's get to it!
- The Spring Data release train "Arora" is now avialable, a synchronized, tested release of all Spring Data sub projects - check it out now!
- Craig Walls has announced that Spring Social 1.1.0.M2 has been released ! The new release incorporates tighter integration with Spring Security and a slew of new features.
-
Jeremy Grelle has announced When.js 1.8.0
which is cujojs's lightweight
Promises/A
implementation. - Register now to talk with Sam Brannan and Rossen Stoyanchev on Feb 21st in the Webinar: Testing Web Applications with Spring 3.2
- New replays from SpringOne2012 - talks from the Data and Integration track talks starting to hit YouTube. Check out Gary Russell's Monitoring and Managing Spring Integration Part 2, and Hadoop / Big Data enthusiasts shouldn't miss Costin's talk How to build Big Data Pipelines for Hadoop using OSS.
- As a bonus session this week, we've also released Spring Data REST: Easily export JPA entities directly to the web.
- Krishna's blog has a nice post on using CAS (single signon using Jasig) with Spring Security.
- Sergei Sizov has put together a nice post on using Spring Security and HTTP Basic authentication.
- The Lucky Ryan blog has a very nice post introducing HDIV - which can be used to prevent cross site request forgery (CSRF), remove the ability to alter non-editable data (hidden fields, params ) and even has options to limit characters globally across form fields - and explaining how to use HDIV with Spring MVC.
-
Your remoting layer (the layer that's exposed over the network)
might simply surface the domain model objects from your services layer.
Often, however, the object sent across the wire is a slightly different version of the data
used by the service. Perhaps fields are omitted because they contain too much data. Perhaps extra fields are added to communicate metadata about the service itself. Perhaps you simply want to flatten two different types into
a single object for ease-of-transport. Whatever the reason, the common pattern (or anti-pattern) to handling this is a DTO (data transfer object). We had these before with EJBs and DCOM and CORBA. Now we have
them with REST.
If you find you have to have DTOs, the jtransfo library introduced in this post seems like it might be helpful in reducing the tedious adapters from DTO to domain object. The post explains how to use
JTransfo
to automatically handle adapting domain objects to DTOs. - The Fahd.blog blog has a nice introduction to Spring Batch's
RetryTemplate
. This is a very powerful component of Spring Batch that doesn't get enough love, so I am glad to see this post! - The Learn and Shine blog has a nice post introducing how to use Spring MVC to render XSLT views.
- The Java Ninja Chronicles By Norris Shelton, Jr blog has a very concise post on how he took the first steps in using Spring's Java configuration style to make short work of loading properties from an exotic source.
<LI> Gary Russell <a href = "http://www.springsource.org/node/3813">has announced Spring Integration 3.0.0 M1</a>.
There are no major new features in this first milestone, it is mainly refactoring, removing deprecations, etc. Browse the documentation 'what's new' and the release notes for more information.
Spring Integration 3.0.0 Milestone 1 is Released!
We are pleased to announce that Spring Integration 3.0.0.M1 is now available. There are no major new features in this first milestone, it is mainly refactoring, removing deprecations, etc. Browse the documentation 'what's new' and the release notes for more information.
We are happy to see more community contributors and are continuing our efforts to promote that growing trend, both in the core project and the extensions respository.
- Release notes are available here.
- Reference Documentation is here.
- Artifacts are available in the SpringSource Milestone repo and the community download page.
More information is available on the project's home page.
When.js 1.8.0 Released
Dear Spring Community,
We are pleased to announce the release of when.js 1.8.0.
When.js is cujojs’s lightweight Promises/A and when() implementation, derived from the async core of wire.js, cujojs’s IOC Container. It also provides several other useful Promise-related concepts, such as joining multiple promises, mapping and reducing collections of promises, and timed promises.
Among other things, this release includes an extensive set of adapters for working with existing callback-based APIs, including node-style async APIs, allowing you to effectively convert them into promise-aware functions. In addition, most of the new features in this release are community contributions, which is awesome. Keep it coming!
Some specific highlights include:
- Adapters for promisifying existing callback-based code.
- Mechanisms for generating and processing unbounded/infinite lists
- Promise-based periodic polling utility.
Check out the changelog for more info and direct links to docs for all the new goodies.
If you're still wondering what this cujojs thing is all about, be sure to check out Brian Cavalier and John Hann's "IOC + JavaScript" talk from SpringOne 2012.
Spring Social Twitter 1.0.3 Released
Dear Spring Community,
I'm happy to announce the release of Spring Social Twitter 1.0.3.RELEASE.
Spring Social is an extension of the Spring Framework that enables you to connect your Java applications to Software-as-a-Service (SaaS) providers such as Facebook and Twitter.
This is an API-update release, bringing Spring Social Twitter's API binding up to date with version 1.1 of Twitter's API. Twitter has deprecated the 1.0 version of their API and will shut it down next month. It is recommended that if you are using Spring Social Twitter 1.0.2 or lower that you immediately upgrade to Spring Social Twitter 1.0.3 to avoid any disruption in functionality.
To get the software, download the release distribution.
It is anticipated that this will be the last release of Spring Social Twitter in the 1.0.x series. Work on Spring Social 1.1.0 is well underway and is now at milestone 2 for the 1.1.0 release.
Spring Data release train Arora available
I am pleased to announce the first themed release of the Spring Data release train named Arora. Going forward we'll use names of famous computer scientists to label a set of Spring Data modules to make it easier to identify modules being compatible to each other. This mostly refers to the Spring Data Commons version they refer to.
The Arora release contains the following modules:
- Spring Data Commons 1.5 - Artifacts - JavaDocs - Documentation - Changelog
- Spring Data JPA 1.3 - Artifacts - JavaDocs - Documentation - Changelog
- Spring Data MongoDB 1.2 - Artifacts - JavaDocs - Documentation - Changelog
- Spring Data Neo4j 2.2 - Artifacts - JavaDocs - Documentation - Changelog
- Spring Data Redis 1.0.3 - Artifacts - JavaDocs - Documentation - Changelog
- Spring Data Gemfire 1.3 M1 - Artifacts - JavaDocs - Documentation - Changelog
- Spring Data Solr 1.0 RC1 - Artifacts - JavaDocs - Documentation - Changelog
The major new features of the release are:
- Annotation based auditing support through
@CreatedDate
,@CreatedBy
etc. (except Spring Data Gemfire) - Exposure of Spring Data Mapping information for all modules (to be used by Spring Data REST)
- Spring Data Mapping information being read from accessor methods as well
- Automatic registration of JodaTime Converters if present on classpath (Spring Data MongoDB)
- Major improvements to mapping subsystem and query execution for Spring Data MongoDB
- Extended querying options on query methods (Spring Data Solr)
- Annotation support for Gemfire functions (Spring Data Gemfire)
- A
tag has been added to the gfe-data XML namespace for automatic basic client connection and region configuration. (Spring Data Gemfire) - Support for Lettuce Redis driver (raising the count of supported driver to 5, Spring Data Redis)
- Dynamic removal of listener for running MesageListenerContainer (Spring Data Redis)
- Refined Maven build to ease release process
Alongside the new major versions of the Spring Data Modules we've also published bugfix releases for Spring Data Commons (1.4.1), Spring Data JPA (1.2.1) and Spring Data MongoDB (1.1.2).
Note: The artifactId of the Spring Data Commons module has changed to from spring-data-commons-core
to spring-data-commons
. So if you're explicitly referring to it from your project, make sure you update the reference accordingly.
The binaries will be present in Maven central shortly if not already in place.
Spring Social 1.1.0.M2 Released
Dear Spring Community,
We are pleased to announce the second milestone release of Spring Social 1.1.0!
Spring Social is an extension of the Spring Framework that enables you to connect your Java applications to Software-as-a-Service (SaaS) providers such as Facebook and Twitter.
Along with Spring Social 1.1.0, we are also releasing second milestones for Spring Social Facebook 1.1.0 and Spring Social Twitter 1.1.0.
The main theme of milestone 2 is tighter integration with Spring Security, including a new SocialAuthenticationFilter to achieve sign-in-with-provider capability directly within the Spring Security filter chain.
In addition to Spring Security integration, these milestone releases also include:
- Support for non-standard parameters in the OAuth authorization flows.
- Interceptor capability in ProviderSignInController's flow to allow for custom behavior in authentication flow.
- Sign-in capability for Facebook Canvas applications, including a new spring-social-canvas sample to showcase the use of CanvasSignInController.
- Support for paging in the Facebook API binding with "since" and "until" parameters.
- Advanced search capabilities in the Twitter API binding.
- Support for ticker symbol pseudo-entity in Twitter statuses.
These milestone releases also contain several smaller improvements and bug fixes.
To get the software, download the release distribution (Core | Facebook | Twitter).
As always, the Spring Social community has been awesome at providing feedback and contributing pull requests to make this release possible. Significant contributions in this release came from Stefan Fussenegger, who contributed much of the Spring Security integration code and Yuan Ji who provided feedback and refactoring help in that same set of code. Also, it seems that the Spring Social community has taken a keen interest in using Spring Social to build Facebook Canvas apps, which led to the creation of CanvasSignInController.
If you'd like to follow along or contribute, we encourage you to participate in the Spring Social Forum, report bugs or suggest enhancements, or to fork the code and contribute back via pull requests.
SpringOne 2GX 2012 Replays: Ten Great Reasons to Virtualize Java Applications, What's New in CloudFoundry
Ten Great Reasons to Virtualize Your Java Apps
Customer interest in virtualizing Java workloads has been growing exponentially year on year. For the last few years, the focus has been largely around looking for best practice guidance to mitigate concerns around virtualizing Java workloads, particularly in the area of performance. Since joining VMware, SpringSource has been investing in providing first class support for the Java runtime on vSphere with products such as EM4J. Combined with the industry-leading capabilities of the vSphere platform and the growing product portfolio around the Java ecosystem, there are many great reasons to virtualize Java.
So rather than continuing to ask the question, is it OK to virtualize Java, this session boldly aims to suggest that you would be crazy not to!
About Benjamin Corrie
Ben Corrie has been working on Java since 1998, where he began at IBM testing JDK 1.1.4. He progressed to working on the internals of IBM's Java Virtual Machine where he lead a project to develop industry-leading memory management technology for the JVM. He joined SpringSource as a consultant in 2008 and moved to California a year later to lead an effort to improve Java performance on vSphere. As the tech lead on the recently announced EM4J project, he is successfully helping to make vSphere the best place to run Java.
More About Benjamin »What's New in Cloud Foundry
Come to this session to get an in-depth view of the latest and greatest in Cloud Foundry. It's easier than ever before to build and deploy your distributed polyglot applications. You will see some exciting new options, including new Java and Node runtimes and support for background workers and container-less web apps. These features allow you to create distributed apps comprised of many smaller, focused apps each written in the framework that fits its purpose best. We will also explore the latest in tooling, including new features in the STS plugin and the brand new "next gen" VMC client. We will peek under the hood to see what's new in the Cloud Foundry architecture. From Cloud Foundry beginner to expert, this session has something for everyone.
About Jennifer Hickey
Jennifer Hickey is a Sr. Software Engineer with SpringSource/VMware, with over a decade of experience in software engineering. Jennifer is a member of the Cloud Foundry team, specializing in developer experience and support of frameworks such as Spring, Grails, Rails, and Sinatra. She is passionate about increasing developer productivity in the cloud. Jennifer has led or contributed to a number of SpringSource projects, including Hyperic and tc Server. She has been involved in converting multiple large EJB/legacy codebases to Spring. Prior to joining SpringSource, Jennifer was a principal architect of a large-scale network management system.
More About Jennifer »About Ramnivas Laddad
Ramnivas Laddad is a SpringSource Principal Engineer. He has over a decade of experience in applying his enterprise Java and aspect-oriented programming (AOP) expertise to middleware, design automation, networking, web application, user interface, and security projects.
Ramnivas Laddad is a well-known expert in enterprise Java, especially in the area of AOP and Spring. He is the author of AspectJ in Action, the best-selling book on AOP and AspectJ that has been lauded by industry experts for its presentation of practical and innovative AOP applications to solve real-world problems. Ramnivas, a Spring framework committer, is also an active presenter at leading industry events such as JavaOne, JavaPolis, No Fluff Just Stuff, SpringOne, Software Development, and has been an active member of both the AspectJ and Spring communities from their beginnings.
More About Ramnivas »This Week in Spring - Feb 12th, 2013
Welcome back to another installment of This Week in Spring ! As usual, we've got a lot to cover, so let's get to it!
- Dave Syer is taking his SpringOne2GX talk to an online audience on Feb 14th, 2013 Webinar - When and Why Would I Use OAuth2?
- Dream team Sam Brannen (Swiftmind) & Rossen Stoyanchev (SpringSource) join forces on Feb 21st, 2013 for a Webinar: Testing Web Applications with Spring 3.2
- New SpringOne2GX 2012 talks released to YouTube in HD! Ten Great Reasons to Virtualize Your Java Apps, and What's New in CloudFoundry.
- Our pal Boris Lam is back, this time with two posts on how to use Spring Data MongoDB and JSF together.
-
The PluralSight blog has a video introduction to Spring MVC interceptors. This video is an excerpt from a full-fledged video course.
</LI> <LI> Cool demonstration: <A href="http://www.youtube.com/watch?v=LTxd0PGDaMI&list=UU7yfnfvEUlXUIfm8rGLwZdA&index=1">Spring Insight plugins for Spring Integration and RabbitMQ</a>.
- The syntx blog has a nice post on how to add HTTP Basic authentication using Spring Security to Spring MVC-secured resources.
-
Krishna's Blog has a nice post introducing
unit-testing the Spring Security layer with the
InMemoryDaoImpl
.
<LI> You know, I was looking for something like this just the other day! <EM>Mark's Blog </EM> has a nice post on the <A href="http://markchensblog.blogspot.com/2013/02/how-spring-mvc-works.html"> workflow of the various objects in servicing an incoming HTTP request in Spring MVC</a>. Is this stuff you could easily figure out by sticking a breakpoint in a controller and just looking at the call stack…