Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Tuesday, December 8, 2009

RESTful Java Web Services

If you are already familiar with REST theory but are new to RESTful Java web services, and want to use the Java technology stack together with Java RESTful frameworks to create robust web services, this is the book for you.

This book is a guide to developing RESTful web services using Java and the most popular RESTful frameworks available today. It covers the theory of REST; practical coding examples for RESTful clients; a practical outline of the RESTful design process-yes, it's different from traditional web application development; and a complete implementation of a non-trivial web service using the following frameworks: Jersey's JAX-RS, Restlet's Lightweight REST, JBoss's JAX-RS RESTEasy, and Struts 2 with the REST plug-in.

We begin with an introduction to REST theory, for example, what it means for a web service to be RESTful, what it means for a web service to exchange representations of resources, and what it means to only use the conventional HTTP request method types-GET, POST, PUT, DELETE-for client/server communication. Before moving into the design and implementation process of a non-trivial web service, we look at a set of sample Java applications that connect to existing REST services that are freely available (Google, Yahoo, Twitter). We then outline a practical design process for RESTful web services and then cover the four most widely used frameworks available to date: JAX-RS implementations such as Jersey and RESTEasy, the Restlet framework, and Struts 2 with the REST plug-in. We cover each framework in detail to allow you to compare the strengths and weaknesses of each framework and to begin developing your own web services after the first reading; what's more, the whole source is included for you to modify and deploy in your own web services. Finally, we discuss the most common performance issues faced by RESTful web services and cover practical solutions to security-related issues such as authentication and data transfer.

What you will learn from this book?

  • REST architecture basics
  • What it means for a web service to be RESTful
  • How to connect to and consume RESTful web services such as Yahoo or Google
  • A RESTful web service design heuristic
  • How to deploy web services to Java web containers such as Tomcat and JBoss
  • How to implement an entire web service using the most popular open source frameworks currently available, including JAX-RS implementations Jersey and RESTEasy, Restlet, and Struts 2 with the REST plug-in
  • How to create standalone Java web services using the Restlet framework
  • How you can secure RESTful web services

Thursday, October 15, 2009

SCJA Sun Certified Java Associate Study Guide (Exam CX-310-019)

The best fully integrated study system available for Exam CX-310-019

With hundreds of practice questions and hands-on exercises, SCJA Sun Certified Java Associate Study Guide covers what you need to know--and shows you how to prepare--for this challenging exam.

* 100% complete coverage of all objectives for SCJA Exam CX-310-019
* Exam Readiness checklist--you're ready for the exam when all objectives on the list are checked off
* Inside the Exam sections highlight key exam topics covered
* Two-Minute Drills for quick review
* Simulated exam questions match the format, tone, topics, and difficulty of the real exam

Covers all the exam topics, including:

Packaging, Compiling, and Interpreting Java Code * Java Statements * Java Operators and Strings * Classes and Variables * Variable Scope and Class Construction * Classes and their Relationships * Class Inheritance * Object-oriented Principles * Representing Object-oriented Concepts with UML * Platforms and Integration Technologies * Client-side Technologies * Server-side Technologies

==> Download <==

Saturday, September 26, 2009

AspectJ in Action: Enterprise AOP with Spring Applications

To allow the creation of truly modular software, OOP has evolved into aspect-oriented programming. AspectJ is a mature AOP implementation for Java, now integrated with Spring.

AspectJ in Action, Second Edition is a fully updated, major revision of Ramnivas Laddad's best-selling first edition. It's a hands-on guide for Java developers. After introducing the core principles of AOP, it shows you how to create reusable solutions using AspectJ 6 and Spring 3. You'll master key features including annotation-based syntax, load-time weaver, annotation-based crosscutting, and Spring-AspectJ integration. Building on familiar technologies such as JDBC, Hibernate, JPA, Spring Security, Spring MVC, and Swing, you'll apply AOP to common problems encountered in enterprise applications.

This book requires no previous experience in AOP and AspectJ, but it assumes you're familiar with OOP, Java, and the basics of Spring.

"Clear, concisely worded, well-organized ... a pleasure to read."
-From the Foreword by Rod Johnson, Creator of the Spring Framework

"This book teaches you how to think in aspects. It is essential reading for both beginners who know nothing about AOP and experts who think they know it all."
- Andrew Eisenberg, AspectJ Development Tools Project Committer

"Ramnivas showcases how to get the best out of AspectJ and Spring."
-Andy Clement, AspectJ Project Lead

"One of the best Java books in years."
-Andrew Rhine, Software Engineer, eSecLending

"By far the best reference for Spring AOP and AspectJ."
-Paul Benedict, Software Engineer, Argus Health Systems

"Ramnivas expertly demystifies the awesome power of aspect-oriented programming."
-Craig Walls, author of Spring in Action

==> Download <==

Friday, September 11, 2009

SCJP: Sun Certified Programmer for Java Platform Study Guide: SE6 (Exam CX-310-065)

Sun's foundation-level Sun Certified Java Programmer (SCJP) for Standard Edition 6 is a must-have for any Java programmer, and is a prerequisite for Sun’s specialty certifications. This resource is essential preparation for the SCJP and focuses heavily on the skill set that Sun expects its SCJPs to have, with numerous examples, exercises, and real-world scenarios to give readers the tools needed to use what they learn. The material covers declarations, initialization, and scoping; flow control; API contents; concurrency; object-oriented concepts; collections/generics; and fundamentals. The interactive CD-ROM features chapter review questions, two bonus exams, a series of flashcards that can be used on PCs or handheld devices, and an e-book.

Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.

==> Download <==

Wednesday, September 2, 2009

Stripes: ...and Java web development is fun again

As a Java developer, you want to leverage your knowledge and the wealth of Java libraries and tools. But when it comes to web development, many frameworks seem over-engineered and too complex. They have a steep learning curve, and it's just too difficult to get them to do exactly what you need because of their "closed-box" design.

Stripes brings simplicity back to Java web development. You'll be up and running in minutes, and can go a long way with just a few simple concepts. You'll spend your time developing your application, not maintaining gobs of configuration. Because Stripes is very transparent, you will understand exactly what is going on from request to response.

The popularity of Stripes keeps increasing because of its clean design and extensibility. With this complete tutorial and reference, you can master Stripes and take advantage of its productivity in web application development. You'll tailor the framework to your requirements, not the other way around!

This book is packed with explanations and examples so that you learn practical problem-solving techniques. You'll be able to "wrap your head around the framework" and fully understand how Stripes works. When a client requests a feature, you'll answer "yes" with confidence because you're using a framework that lets you get the results that you need without getting in your way. Because of its open design, Stripes lets you easily integrate your favorite tools: tag libraries, AJAX frameworks, ORM solutions, dependency injectors, and more.

==> Download <==

Wednesday, August 19, 2009

Java SOA Cookbook

Java SOA Cookbook offers practical solutions and advice to programmers charged with implementing a service-oriented architecture (SOA) in their organization.

Instead of providing another conceptual, high-level view of SOA, this cookbook shows you how to make SOA work. It's full of Java and XML code you can insert directly into your applications and recipes you can apply right away. The book focuses primarily on the use of free and open source Java Web Services technologies -- including Java SE 6 and Java EE 5 tools -- but you'll find tips for using commercially available tools as well. Java SOA Cookbook will help you:

Construct XML vocabularies and data models appropriate to SOA applications Build real-world web services using the latest Java standards, including JAX-WS 2.1 and JAX-RS 1.0 for RESTful web services Integrate applications from popular service providers using SOAP, POX, and Atom Create service orchestrations with complete coverage of the WS-BPEL (Business Process Execution Language) 2.0 standard Improve the reliability of SOAP-based services with specifications such as WS-Reliable Messaging Deal with governance, interoperability, and quality-of-service issues.

The recipes in Java SOA Cookbook will equip you with the knowledge you need to approach SOA as an integration challenge, not an obstacle.

==> Download <==

Wednesday, February 4, 2009

Wicket in Action

There are dozens of Java frameworks out there, but most of them require you to learn special coding techniques and new, often rigid, patterns of development. Wicket is different. As a component-based Web application framework, Wicket lets you build maintainable enterprise-grade web applications using the power of plain old Java objects (POJOs), HTML, Ajax, Spring, Hibernate and Maven. Wicket automatically manages state at the component level, which means no more awkward HTTPSession objects. Its elegant programming model enables you to write rich web applications quickly.

Wicket in Action is an authoritative, comprehensive guide for Java developers building Wicket-based Web applications. This book starts with an introduction to Wicket's structure and components, and moves quickly into examples of Wicket at work. Written by two of the project's earliest and most authoritative experts, this book shows you both the "how-to" and the "why" of Wicket. As you move through the book, you'll learn to use and customize Wicket components, how to interact with other technologies like Spring and Hibernate, and how to build rich, Ajax-driven features into your applications.

==> Download <==

Monday, January 26, 2009

Pro Java™ EE Spring Patterns: Best Practices and Design Strategies Implementing Java EE Patterns with the Spring Framework

“The Java™ landscape is littered with libraries, tools, and specifications. What’s been lacking is the expertise to fuse them into solutions to real–world problems. These patterns are the intellectual mortar for J2EE software construction.” —John Vlissides, coauthor of Design Patterns: Elements of Reusable Object–Oriented Software

Pro Java™ EE Spring Patterns focuses on enterprise patterns, best practices, design strategies, and proven solutions using key Java EE technologies including JSP™, servlets, EJB™, and JMS APIs.

This Java EE patterns resource, catalog, and guide, with its patterns and numerous strategies, documents and promotes best practices for these technologies, implemented in a very pragmatic way using the Spring Framework and its counters. This title

* Introduces Java EE application design and Spring framework fundamentals
* Describes a catalog of patterns used across the three tiers of a typical JEE application
* Provides implementation details and analyses each pattern with benefits and concerns
* Describes the application of these patterns in a practical application scenario

==> Download <==

Monday, December 1, 2008

Practical API Design: Confessions of a Java Framework Architect

You might think more than enough design books exist in the programming world already. In fact, there are so many that it makes sense to ask why you would read yet another. Is there really a need for yet another design book? In fact, there is a greater need than ever before, and Practical API Design:

Confessions of a Java Framework Architect fills that need!

* Teaches you how to write an API that will stand the test of Time
* Written by the designer of the NetBeans API at Sun
* Based on best practices, scalability, and API design patterns

==> Download <==

Thursday, September 18, 2008

Service Oriented Architecture with Java



Service Oriented Architecture provides a way for applications to work together over the Internet. Usually, SOA applications are exposed through web services.

Web services have been around for a while, but complex adoption processes and poor standardization hampered their use at first. However, with the adoption of new, simpler protocols such as REST, and major companies supporting SOA, the time is now right to adopt these standards.

This book will show you how to build SOA, web services-based applications using Java. You will find out when SOA is the best choice for your application, how to design a sound architecture, and then implement your design using Java.

The book covers the important web services protocols: XML-over-HTTP, REST, and SOAP. You will learn how to develop web services at all levels of complexity and for all kinds of business situations.

Thursday, September 4, 2008

TCP/IP Sockets in Java, Second Edition: Practical Guide for Programmers



Keith Edwards, Professor, Georgia Tech--
"In particular, it's definitely time for an update to this book, since so many changes to the Java platform have happened since the first edition. While I don't see the need to update most books every time there's a minor update, this book is definitely overdue for a revision.

"I think the book is especially appropriate for mature practitioners and students, who need an easily-accessible and to-the-point overview of the Java networking APIs. To me, one of the strongest points of the book is that it?s concise enough to serve as a quick guide and reference to key ?gotchas.? Thus, I think the structure of the book serves audiences who are already good network programmers, or who need a good Java reference, quite well."

Robert Brunner, Research Programmer, National Center for Supercomputing Applications (NCSA)--
"I think the book does a good job of hitting this market. It is not suited to be a main textbook for a class, and it does not try to do that, But it does do a nice job of succinctly hitting the major points, providing nice examples, as well as a reference for the major important topics. So I see this as a nice book for developers who want to quickly (and cheaply) master networking Java, as well as a supplemental book for courses in continuing education courses or colleges."

Wednesday, July 2, 2008

Games on Symbian OS: A Handbook for Mobile Development

The first part of this book discusses the mobile games industry, and includes analysis of why the mobile industry differs from other sectors of the games market, a discussion of the sales of mobile games, their types, the gamers who play them, and how the games are sold.

The second part describes key aspects of writing gam
es for Symbian smartphones using Symbian C++ and native APIs. The chapters cover the use of graphics and audio, multiplayer game design, the basics of writing a game loop using Symbian OS active objects, and general good practice. There is also a chapter covering the use of hardware APIs, such as the camera and vibra.

Part Three covers porting games to Symbian OS using C or C++, and discusses the standards support that Symbian OS provides,and some of the middleware solutions available. A chapter about the N-Gage platform discusses how Nokia is pioneering the next generation of mobile games, by providing a platform SDK for professional games developers to port games rapidly and effectively.

The final part of the book discusses how to create
mobile games for Symbian smartphones using java ME, Doja (for Japan) or Flash Lite 2. This book will help you if you are:

* a C++ developer familiar with mobile development but new to the games market
* a professional games developer wishing to port your games to run on Symbian OS platforms such as S60 and UIQ
* someone who is interested in creating C++, Java ME or Flash Lite games for Symbian smartphones.

This book shows how to create mobile games for Symbian smartphones such as S60 3rd Edition, UIQ3 or FOMA devices. It includes contributions from a number of experts in the mobile games industry, including Nokia's N-gage team, Ideaworks3D, and ZingMagic, as well as academics leading the field of innovative mobile experiences.

Sunday, June 29, 2008

Effective Java (2nd Edition)

Are you looking for a deeper understanding of the Java™ programming language so that you can write code that is clearer, more correct, more robust, and more reusable? Look no further! Effective Java™, Second Edition, brings together seventy-eight indispensable programmer’s rules of thumb: working, best-practice solutions for the programming challenges you encounter every day.

This highly anticipated new edition of the classic, Jolt Award-winning work has been thoroughly updated to cover Java SE 5 and Java SE 6 features introduced since the first edition. Bloch explores new design patterns and language idioms, showing you how to make the most of features ranging from generics to enums, annotations to autoboxing.

Each chapter in the book consists of several “items” presented in the form of a short, standalone essay that provides specific advice, insight into Java platform subtleties, and outstanding code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why.

Thursday, June 26, 2008

Adobe AIR: Create - Modify - Reuse

Adobe Integrated Runtime (AIR) revolutionizes the way Rich Internet Applications (RIAs) are deployed. AIR supports two primary technologies, Flash and HTML/Ajax, in order to make desktop development something that every web developer can do. This book shows you how to set up a practical development environment and then walks you through eleven fully implemented AIR applications with source code that you can use as they currently exist or customize.

Each project begins by providing a discussion of architecture and design, followed by code implementation. You'll get hands-on knowledge of AIR application design and development that you can then use to build dynamic RIAs.

Thursday, June 5, 2008

EJB 3 Developer Guide

Book Description

The EJB 3 (Enterprise Java Beans version 3) specification is a core component of enterprise-level JEE (Java Platform Enterprise Edition) implementations and this improved version is set to simplify the development of Enterprise Java applications.

This book covers the core elements of EJB 3 technology, exploring them in a concise manner with many supporting examples. You will gain a thorough understanding of EJB 3 technology and learn about the most important features of EJB 3 quickly.

Tuesday, May 6, 2008

Groovy Recipes: Greasing the Wheels of Java

Book Description

Each recipe in Groovy Recipes begins with a concise code example for a quick start, followed by in-depth explanation in plain English. These recipes will get you to-to-speed in a Groovy environment quickly.

You'll see how to speed up nearly every aspect of the development process using Groovy. Groovy makes mundane file management tasks like copying and renaming files trivial. Reading and writing XML has never been easier with XmlParsers and XmlBuilders. Breathe new life into Arrays, Maps, and Lists with a number of convenience methods. But Groovy does more than just ease traditional Java development: it brings modern programming features to the Java platform like closures, duck-typing, and metaprogramming.

As an added bonus, this book also covers Grails. You'll be amazed at how quickly you can have a first-class web application up and running from ground zero. Grails includes everything you need in a single zip file⎯a web server (Jetty), a database (HSQLDB), Spring, Hibernate, even a Groovy version of Ant called GANT. We cover everything from getting a basic website in place to advanced features that take you beyond HTML into the world of Web Services: REST, JSON, Atom, Podcasting, and much much more.

Wednesday, April 23, 2008

Core Java, Vol. 2: Advanced Features, 8th Edition

Book Description

The revised edition of the classic Core Java™, Volume II–Advanced Features, covers advanced user-interface programming and the enterprise features of the Java SE 6 platform. Like Volume I (which covers the core language and library features), this volume has been updated for Java SE 6 and new coverage is highlighted throughout. All sample programs have been carefully crafted to illustrate the latest programming techniques, displaying best-practices solutions to the types of real-world problems professional developers encounter.

Tuesday, April 22, 2008

Java Power Tools

Book Description

All true craftsmen need the best tools to do their finest work, and programmers are no different. Java Power Tools delivers 30 open source tools designed to improve the development practices of Java developers in any size team or organization. Each chapter includes a series of short articles about one particular tool -- whether it's for build systems, version control, or other aspects of the development process -- giving you the equivalent of 30 short reference books in one package. No matter which development method your team chooses, whether it's Agile, RUP, XP, SCRUM, or one of many others available, Java Power Tools provides practical techniques and tools to help you optimize the process. The book discusses key Java development problem areas and best practices, and focuses on open source tools that can help increase productivity in each area of the development cycle, including: Build tools including Ant and Maven 2 Version control tools such as CVS and Subversion, the two most prominent open source tools Quality metrics tools that measure different aspects of code quality, including CheckStyle, PMD, FindBugs and Jupiter Technical documentation tools that can help you generate good technical documentation without spending too much effort writing and maintaining it Unit Testing tools including JUnit 4, TestNG, and the open source coverage tool Cobertura Integration, Load and Performance Testing to integrate performance tests into unit tests, load-test your application, and automatically test web services, Swing interfaces and web interfaces Issue management tools including Bugzilla and Trac Continuous Integration tools such as Continuum, Cruise Control, LuntBuild and Hudson If you area Java developer, these tools can help improve your development practices, and make your life easier in the process. Lead developers, software architects and people interested in the wider picture will be able to gather from these pages some useful ideas about improving your project infrastructure and best practices.

Friday, April 18, 2008

Core Servlets and Javaserver Pages: Advanced Technologies, Vol. 2 (2nd Edition)

Book Description

Java EE is the technology of choice for e-commerce applications, interactive Web sites, and Web-enabled services. Servlet and JSP technology provides the link between Web clients and server-side applications on this platform. Core
Servlets and JavaServer Pages, Volume 2: Advanced Technologies, Second Edition, is the definitive guide to the advanced features and capabilities provided by servlets and JSP.

Volume 2 presents advanced capabilities like custom tag libraries, filters, declarative security, JSTL, and Struts. Like the first volume, it teaches state-of-the-art techniques and best practices illustrated with complete, working, fully documented programs.

Volume 2 explains in detail the advanced tools and techniques needed to build robust, enterprise-class applications. You'll learn how to control application behavior through the web.xml deployment descriptor file, how to enhance app
lication security through both declarative and programmatic methods, and how to use servlet and JSP filters to encapsulate common behavior. You'll also learn how to control major application lifecycle events, best practices for using JSTL, and how to build custom tag libraries. Volume 2 concludes with an in-depth introduction to the Jakarta Struts framework.

Wednesday, April 16, 2008

Practical DWR 2 Projects

Book Description

The Ajax craze is sweeping the world, and there is no shortage of libraries from which to hoose to make it all easier to develop. One of those libraries has risen near the top in the Java space, and that library is DWR. DWR, or Direct Web Remoting, allows you to treat your Java classes running on the server as if they were local objects running in the browser, bringing the full power of your server–side business logic to the client without the usual problems that entails.