Servlet NewJavaServlet Test



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


 CONTENTS  
 
xii 
A Quick Tour of Django .................................................................................................................. 282

Starting a Project (and an “App”) ............................................................................................... 283

Models....................................................................................................................................... 284

Bonus: The Admin...................................................................................................................... 287

Views and Templates ................................................................................................................. 292

Reusing Templates Without “include”: Template Inheritance...................................................... 297

Forms ........................................................................................................................................ 300

Feeds......................................................................................................................................... 302

Comments ................................................................................................................................. 304

And More... ................................................................................................................................ 306

J2EE Deployment and Integration................................................................................................... 307

Deploying Your First Application................................................................................................. 308

Disabling PostgreSQL Logins ..................................................................................................... 308

A Note About WAR Files ............................................................................................................. 309

Extended Installation.................................................................................................................. 311

Connection Pooling With JavaEE ................................................................................................ 312

Dealing With Long-running Tasks .............................................................................................. 315

Thread Pools.............................................................................................................................. 315

Passing Messages Across Process Boundaries........................................................................... 318

Summary ....................................................................................................................................... 325

■ 
Chapter 15: Introduction to Pylons .............................................................................................327 
A Guide for the Impatient ............................................................................................................... 327

A Note about Paste ........................................................................................................................ 329

Pylons MVC.................................................................................................................................... 329

An Interlude into Java’s Memory Model.......................................................................................... 330

Invoking the Pylons Shell ............................................................................................................... 331

request.GET ............................................................................................................................... 332

request.POST............................................................................................................................. 332

request.params.......................................................................................................................... 332

request.headers......................................................................................................................... 333

Context Variables and Application Globals ...................................................................................... 333

Routes ........................................................................................................................................... 333

Controllers and Templates ............................................................................................................. 334

Adding a JSON API......................................................................................................................... 340

Unit Testing, Functional Testing, and Logging ................................................................................ 341

www.it-ebooks.info



 CONTENTS  
 
 
 
xiii 
Deployment into a Servlet Container .............................................................................................. 346

Summary ....................................................................................................................................... 346

■ 
Chapter 16: GUI Applications ......................................................................................................347 
Summary ....................................................................................................................................... 357

■ 
Chapter 17: Deployment Targets ................................................................................................359 
Application Servers ........................................................................................................................ 359

Tomcat ...................................................................................................................................... 360

Deploying Web Start .............................................................................................................. 360

Deploying a WAR or Exploded Directory Application ............................................................... 360

Glassfish.................................................................................................................................... 361

Deploying Web Start .............................................................................................................. 361

WAR File and Exploded Directory Deployment ........................................................................ 362

Glassfish v3 Django Deployment ............................................................................................ 362

Other Java Application Servers .................................................................................................. 362

Google App Engine......................................................................................................................... 362

Starting With an SDK Demo ....................................................................................................... 363

Deploying to the Cloud ............................................................................................................... 363

Working With a Project............................................................................................................... 364

Object Factories with App Engine ............................................................................................... 365

Using PyServlet Mapping ........................................................................................................... 365

Example Jython Servlet Application for App Engine .................................................................... 366

Using Eclipse ............................................................................................................................. 369

Deploy Modjy to GAE.................................................................................................................. 370

Java Store...................................................................................................................................... 370

Deploying a Single JAR .............................................................................................................. 371

Mobile............................................................................................................................................ 375

Summary ....................................................................................................................................... 375

Part IV: Strategy and Technique......................................................................................................377 
■ 
Chapter 18: Testing and Continuous Integration .......................................................................379 
Python Testing Tools...................................................................................................................... 379

UnitTest ..................................................................................................................................... 379

Doctests .................................................................................................................................... 384

A Complete Example .................................................................................................................. 388

Nose .......................................................................................................................................... 395

www.it-ebooks.info


Yüklə 11,16 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   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ə