Servlet NewJavaServlet Test



Yüklə 11,16 Mb.
Pdf görüntüsü
səhifə7/97
tarix07.11.2018
ölçüsü11,16 Mb.
#78896
1   2   3   4   5   6   7   8   9   10   ...   97


 CONTENTS  
 
xiv 
Integration with Java?................................................................................................................ 400

Continuous Integration ................................................................................................................... 401

Hudson ...................................................................................................................................... 401

Getting Hudson .......................................................................................................................... 401

Installing the Jython Plug-in....................................................................................................... 402

Creating a Hudson Job for a Jython Project ................................................................................ 403

Using Nose on Hudson ............................................................................................................... 407

Summary ....................................................................................................................................... 410

■ 
Chapter 19: Concurrency.............................................................................................................413 
Java or Python APIs?...................................................................................................................... 414

Working With Threads.................................................................................................................... 414

Thread Locals ................................................................................................................................ 416

No Global Interpreter Lock.............................................................................................................. 417

Module Import Lock ....................................................................................................................... 417

Working With Tasks ....................................................................................................................... 418

Thread Safety ................................................................................................................................ 422

Synchronization ......................................................................................................................... 423

Deadlocks.................................................................................................................................. 426

Other Synchronization Objects ................................................................................................... 427

Atomic Operations ..................................................................................................................... 431

Thread Confinement .................................................................................................................. 432

Python Memory Model ................................................................................................................... 433

Interruption .................................................................................................................................... 433

Summary ....................................................................................................................................... 436

■ 
Appendix A: Using Other Tools with Jython ...............................................................................437 
The Jython Registry ....................................................................................................................... 437

Registry Properties..................................................................................................................... 437

python.cachedir ..................................................................................................................... 437

python.verbose ...................................................................................................................... 437

python.security.respectJavaAccessibility................................................................................ 438

python.jythonc.compiler......................................................................................................... 438

python.jythonc.classpath ....................................................................................................... 438

python.jythonc.compileropts .................................................................................................. 438

python.console ...................................................................................................................... 438

python.console.readlinelib ..................................................................................................... 438

www.it-ebooks.info



 CONTENTS  
 
 
 
xv 
Finding the Registry File............................................................................................................. 438

Setuptools...................................................................................................................................... 438

Virtualenv....................................................................................................................................... 442

■ 
Appendix B: Jython Cookbook ....................................................................................................445 
Logging.......................................................................................................................................... 445

Using log4j with Jython, Josh Juneau ........................................................................................ 445

Setting Up Your Environment ................................................................................................. 445

Using log4j in a Jython Application......................................................................................... 446

Working with Spreadsheets............................................................................................................ 447

Creating and Reading Spreadsheets Using Apache Poi ............................................................... 447

Create Spreadsheet ............................................................................................................... 447

Read an Excel File.................................................................................................................. 449

Jython and XML ............................................................................................................................. 450

Writing and Parsing RSS with ROME, Josh Juneau..................................................................... 450

Setting up the CLASSPATH..................................................................................................... 450

Parsing Feeds ........................................................................................................................ 450

Creating Feeds....................................................................................................................... 451

Summary............................................................................................................................... 454

Working with CLASSPATH .............................................................................................................. 454

Using the CLASSPATH, Steve Langer.......................................................................................... 454

What to Do?........................................................................................................................... 454

Method .................................................................................................................................. 454

Summary............................................................................................................................... 456

Ant................................................................................................................................................. 456

Writing Ant Tasks with Jython, Ed Takema................................................................................. 456

Writing Custom Ant Tasks ...................................................................................................... 457

Setup Development Environment ........................................................................................... 457

SimpleTask Jython Class ....................................................................................................... 457

Compiling Jython Code to a Jar.............................................................................................. 458

Build.XML File to Use the Task............................................................................................... 458

A Task Container Task ........................................................................................................... 458

Build.XML File to Use the TaskContainer ................................................................................ 459

Things to Look Out For........................................................................................................... 460

Summary............................................................................................................................... 461

Developing Django Web Apps......................................................................................................... 461

www.it-ebooks.info


Yüklə 11,16 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   10   ...   97




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə