Spring Dynamic Modules in Action


Book Description

Java EE developers increasingly want to utilize OSGi to develop modular applications for component and service-based architectures. But tools required for OSGi implementation have been slow to develop. Spring Dynamic Modules (Spring DM) is a framework that simplifies the creation of component and service-oriented architectures with OSGi, to build modular Java applications using the powerful Spring framework. Spring Dynamic Modules in Action presents the fundamental concepts of OSGi-basedapps and maps them to the familiar ideas of the Spring framework. Then, it teaches the techniques and concepts required to develop stable, flexible enterprise apps. Along the way, readers will learn to incorporate other topics including dependency injection and unit testing in an OSGi-based environment. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.




Spring Integration in Action


Book Description

Summary Spring Integration in Action is a hands-on guide to Spring-based messaging and integration. After addressing the core messaging patterns, such as those used in transformation and routing, the book turns to the adapters that enable integration with external systems. Readers will explore real-world enterprise integration scenarios using JMS, Web Services, file systems, and email. They will also learn about Spring Integration's support for working with XML. The book concludes with a practical guide to advanced topics such as concurrency, performance, system-management, and monitoring. The book features a foreword by Rod Johnson, Founder of the Spring Network. About the Technology Spring Integration extends the Spring Framework to support the patterns described in Gregor Hohpe and Bobby Woolf's Enterprise Integration Patterns. Like the Spring Framework itself, it focuses on developer productivity, making it easier to build, test, and maintain enterprise integration solutions. About the Book Spring Integration in Action is an introduction and guide to enterprise integration and messaging using the Spring Integration framework. The book starts off by reviewing core messaging patterns, such as those used in transformation and routing. It then drills down into real-world enterprise integration scenarios using JMS, Web Services, filesystems, email, and more. You'll find an emphasis on testing, along with practical coverage of topics like concurrency, scheduling, system management, and monitoring. This book is accessible to developers who know Java. Experience with Spring and EIP is helpful but not assumed. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book. What's Inside Realistic examples Expert advice from Spring Integration creators Detailed coverage of Spring Integration 2 features About the Authors Mark Fisher is the Spring Integration founder and project lead. Jonas Partner, Marius Bogoevici, and Iwein Fuld have all been project committers and are recognized experts on Spring and Spring Integration. Table of Contents PART 1 BACKGROUND Introduction to Spring Integration Enterprise integration fundamentals 24 PART 2 MESSAGING Messages and channels Message Endpoints Getting down to business Go beyond sequential processing: routing and filtering Splitting and aggregating messages PART 3 INTEGRATING SYSTEMS Handling messages with XML payloads Spring Integration and the Java Message Service Email-based integration Filesystem integration Spring Integration and web services Chatting and tweeting PART 4 ADVANCED TOPICS Monitoring and management Managing scheduling and concurrency Batch applications and enterprise integration Scaling messaging applications with OSGi Testing




Pro Spring Dynamic Modules for OSGi Service Platforms


Book Description

Spring and OSGi's features are a natural fit; they are orthogonal to each other. The Open Services Gateway initiative (OSGi) is about packaging, deployment, and versioning issues, while Spring is about providing the necessary foundation to wire up Java classes in their most basic form using dependency injection and aspect orientation to fulfill an application's purpose. Pro Spring Dynamic Modules for OSGiTM Service Platforms by Daniel Rubio is the first book to cover OSGi as practically implemented by the world's most popular, agile, and open-source enterprise Java framework, Spring. Covers the ease at which OSGi is used with the Spring Framework in development, packaging, versioning, and deployment. Enterprises are trusting Spring more and more, and this book leverages OSGi in a way that can “complete” the use of Spring in the enterprise, as OSGi is already being trusted and adopted by IBM, BEA, and others. The text discusses how Spring OSGi makes your Spring applications trusted SOA applications.




Modular Java


Book Description

"Modular Java" is a pragmatic guide to developing modular applications using OSGi, the framework for dynamic modularity in Java, and Spring Dynamic Modules, an OSGi extension to the Spring Framework.




Spring Batch in Action


Book Description

Summary Spring Batch in Action is an in-depth guide to writing batch applications using Spring Batch. Written for developers who have basic knowledge of Java and the Spring lightweight container, the book provides both a best-practices approach to writing batch jobs and comprehensive coverage of the Spring Batch framework. About the Technology Even though running batch jobs is a common task, there's no standard way to write them. Spring Batch is a framework for writing batch applications in Java. It includes reusable components and a solid runtime environment, so you don't have to start a new project from scratch. And it uses Spring's familiar programming model to simplify configuration and implementation, so it'll be comfortably familiar to most Java developers. About the Book Spring Batch in Action is a thorough, in-depth guide to writing efficient batch applications. Starting with the basics, it discusses the best practices of batch jobs along with details of the Spring Batch framework. You'll learn by working through dozens of practical, reusable examples in key areas like monitoring, tuning, enterprise integration, and automated testing. No prior batch programming experience is required. Basic knowledge of Java and Spring is assumed. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book. What's Inside Batch programming from the ground up Implementing data components Handling errors during batch processing Automating tedious tasks Table of Contents PART 1 BACKGROUND Introducing Spring Batch Spring Batch concepts PART 2 CORE SPRING BATCH Batch configuration Running batch jobs Reading data Writing data Processing data Implementing bulletproof jobs Transaction management PART 3 ADVANCED SPRING BATCH Controlling execution Enterprise integration Monitoring jobs Scaling and parallel processing Testing batch applications




Restlet in Action


Book Description

Summary Restlet in Action gets you started with the Restlet Framework and the REST architecture style. You'll create and deploy applications in record time while learning to use popular RESTful Web APIs effectively. This book looks at the many aspects of web development, on both the server and client side, along with cloud computing, mobile Android devices, and Semantic Web applications. About the Technology In a RESTful architecture any component can act, if needed, as both client and server—this is flexible and powerful, but tricky to implement. The Restlet project is a reference implementation with a Java-based API and everything you need to build servers and web clients that integrate with most web and enterprise technologies. About the Book Restlet in Action introduces the Restlet Framework and RESTful web APIs. You'll see how to easily create and deploy your own web API while learning to consume other web APIs effectively. You'll learn about designing, securing, versioning, documentation, optimizing, and more on both the server and client side, as well as about cloud computing, mobile Android devices, and Semantic Web applications. The book requires a basic knowledge of Java and the web, but no prior exposure to REST or Restlet. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book. What's Inside Written by the creators of Restlet! How to create your own web API How to deploy on cloud and mobile platforms Focus on Android, Google App Engine, Google Web Toolkit, and OSGi technologies Table of Contents PART 1 GETTING STARTED Introducing the Restlet Framework Beginning a Restlet application Deploying a Restlet application PART 2 GETTING READY TO ROLL OUT Producing and consuming Restlet representations Securing a Restlet application Documenting and versioning a Restlet application Enhancing a Restlet application with recipes and best practices PART 3 FURTHER USE POSSIBILITIES Using Restlet with cloud platforms Using Restlet in browsers and mobile devices Embracing hypermedia and the Semantic Web The future of Restlet




Spring Data


Book Description

You can choose several data access frameworks when building Java enterprise applications that work with relational databases. But what about big data? This hands-on introduction shows you how Spring Data makes it relatively easy to build applications across a wide range of new data access technologies such as NoSQL and Hadoop. Through several sample projects, you’ll learn how Spring Data provides a consistent programming model that retains NoSQL-specific features and capabilities, and helps you develop Hadoop applications across a wide range of use-cases such as data analysis, event stream processing, and workflow. You’ll also discover the features Spring Data adds to Spring’s existing JPA and JDBC support for writing RDBMS-based data access layers. Learn about Spring’s template helper classes to simplify the use of database-specific functionality Explore Spring Data’s repository abstraction and advanced query functionality Use Spring Data with Redis (key/value store), HBase (column-family), MongoDB (document database), and Neo4j (graph database) Discover the GemFire distributed data grid solution Export Spring Data JPA-managed entities to the Web as RESTful web services Simplify the development of HBase applications, using a lightweight object-mapping framework Build example big-data pipelines with Spring Batch and Spring Integration




Java Persistence with Hibernate


Book Description

Summary Java Persistence with Hibernate, Second Edition explores Hibernate by developing an application that ties together hundreds of individual examples. In this revised edition, authors Christian Bauer, Gavin King, and Gary Gregory cover Hibernate 5 in detail with the Java Persistence 2.1 standard (JSR 338). All examples have been updated for the latest Hibernate and Java EE specification versions. About the Technology Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. Persistence—the ability of data to outlive an instance of a program—is central to modern applications. Hibernate, the most popular Java persistence tool, offers automatic and transparent object/relational mapping, making it a snap to work with SQL databases in Java applications. About the Book Java Persistence with Hibernate, Second Edition explores Hibernate by developing an application that ties together hundreds of individual examples. You'll immediately dig into the rich programming model of Hibernate, working through mappings, queries, fetching strategies, transactions, conversations, caching, and more. Along the way you'll find a well-illustrated discussion of best practices in database design and optimization techniques. In this revised edition, authors Christian Bauer, Gavin King, and Gary Gregory cover Hibernate 5 in detail with the Java Persistence 2.1 standard (JSR 338). All examples have been updated for the latest Hibernate and Java EE specification versions. What's Inside Object/relational mapping concepts Efficient database application design Comprehensive Hibernate and Java Persistence reference Integration of Java Persistence with EJB, CDI, JSF, and JAX-RS * Unmatched breadth and depth About the Reader The book assumes a working knowledge of Java. About the Authors Christian Bauer is a member of the Hibernate developer team and a trainer and consultant. Gavin King is the founder of the Hibernate project and a member of the Java Persistence expert group (JSR 220). Gary Gregory is a principal software engineer working on application servers and legacy integration. Table of Contents PART 1 GETTING STARTED WITH ORM Understanding object/relational persistence Starting a project Domain models and metadata PART 2 MAPPING STRATEGIES Mapping persistent classes Mapping value types Mapping inheritance Mapping collections and entity associations Advanced entity association mappings Complex and legacy schemas PART 3 TRANSACTIONAL DATA PROCESSING Managing data Transactions and concurrency Fetch plans, strategies, and profiles Filtering data PART 4 WRITING QUERIES Creating and executing queries The query languages Advanced query options Customizing SQL




OSGi in Action


Book Description

What is OSGi? Simply put, OSGi is a standardized technology that allowsdevelopers to create the highly modular Java applications that are required forenterprise development. OSGi lets you install, start, stop, update, or uninstallcomponents without taking down your entire system. The interest in OSGi basedapplications has exploded since major vendors like Sun, Spring, Oracle,BEA, and IBM have gotten behind the standard. OSGi in Action is a comprehensive guide to OSGi with two primary goals.First, it provides a clear introduction to OSGi concepts with examples that arerelevant both for architects and developers. Then, it explores numerous practicalscenarios and techniques, answering questions like: How much of OSGi doyou actually need? How do you embed OSGi inside other containers? What arethe best practices for moving legacy systems to OSGi? Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.




Enterprise OSGi In Action


Book Description

Summary Enterprise OSGI in Action is a hands-on guide for developers using OSGi to build the next generation of enterprise Java applications. By presenting relevant examples and case studies, this book guides the reader through the maze of new standards and projects. About This Book Enterprise OSGi is a set of standards for building modular Java applications which integrate seamlessly with existing Java EE technologies. It extends the OSGi component framework to distributed systems. Enterprise OSGi in Action is a hands-on guide for developers using OSGi to build enterprise Java applications. Many examples and case studies show you how to build, test, and deploy modular web applications. The book explains how to take advantage of dynamism, distribution, and automatic dependency provisioning, while still integrating with existing Java EE applications. The book is written for Java EE developers. No prior experience with OSGi is required. What's Inside Build modular applications using servlets, JSPs, WARs, and JPA Better component reuse and robustness Expert tips for Apache Aries Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Authors Holly Cummins and Tim Ward are lead engineers who regularlyspeak at developerWorks, Devoxx, JavaZone, and EclipseCon. Tim has written standards in both the OSGi Core and Enterprise Specifications and both authors are active Apache Aries committers. Table of Contents PART 1 PROGRAMMING BEYOND HELLO WORLD OSGi and the enterprise—why now? Developing a simple OSGi-based web application Persistence pays off Packaging your enterprise OSGi applications PART 2 BUILDING BETTER ENTERPRISE OSGI APPLICATIONS Best practices for enterprise applications Building dynamic applications with OSGi services Provisioning and resolution Tools for building and testing IDE development tools PART 3 INTEGRATING ENTERPRISE OSGI WITH EVERYTHING ELSE Hooking up remote systems with distributed OSGi Migration and integration Coping with the non-OSGi world Choosing a stack