Using Code Examples
This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission; in fact, all example code has open source licensing. Selling or distributing a CD-ROM of text from O’Reilly books does require permission, however. Answering a question by citing this book and quoting example code does not require permission.
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, copyright holder, and ISBN. For example: “Enterprise JavaBeans 3.1, Sixth Edition, by Andrew Lee Rubinger and Bill Burke (O’Reilly). Copyright 2010 Andrew Lee Rubinger and William J. Burke, Jr., 9780596158026.”
If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact us at permissions@oreilly.com.