testing and automated deployment bea user's group october 2006

18
Testing and Automated Deployment Strategies Scott Ryan October 2006 BEA User’s Group

Upload: soaring-eagle-llc

Post on 13-May-2015

636 views

Category:

Technology


0 download

DESCRIPTION

A discussion of best practices when developing a automated build, testing and depl0yment strategy

TRANSCRIPT

Page 1: Testing and Automated Deployment BEA User's Group October 2006

Testing and Automated Deployment Strategies

Scott RyanOctober 2006

BEA User’s Group

Page 2: Testing and Automated Deployment BEA User's Group October 2006

Agenda

• Maven 2o Automated Deploymento Testing

• Cargoo Automated Deploymento Testing

• WTFIGO• Apache Con

Page 3: Testing and Automated Deployment BEA User's Group October 2006

Maven Lifecycle

• Validate• Compile• Test• Package• Integration Test• Verify• Install• Deploy

Page 4: Testing and Automated Deployment BEA User's Group October 2006

Plugin Configuration

<plugins><plugin><groupId>org.codehaus.mojo</groupId><artifactId>weblogic-maven-plugin</artifactId><version>2.8.0-SNAPSHOT</version><executions><execution><configuration><adminServerHostName>localhost</adminServerHostName><adminServerPort>7001</adminServerPort><adminServerProtocol>t3</adminServerProtocol><userId>weblogic</userId><password>weblogic</password><targetNames>myserver,anotherserver</targetNames></configuration><goals><goal>deploy</goal> </goals></execution></executions> </plugin></plugins>

Page 5: Testing and Automated Deployment BEA User's Group October 2006

Profiles

• Profiles can be used to control executiono Set as default

<activeProfiles> <activeProfile>profile-1</activeProfile> </activeProfiles>

o Command line -P profile1,profile2

o Activation sections

Page 6: Testing and Automated Deployment BEA User's Group October 2006

Profile Activation

<profile> <activation> <jdk>1.4</jdk> </activation></profile> <activation> <property> <name>environment</name> <value>test</value> </property></activation>

Page 7: Testing and Automated Deployment BEA User's Group October 2006

Demo

• Deploy, Start, Stop, Re-deploy, Un-deploy

Page 8: Testing and Automated Deployment BEA User's Group October 2006

Cargo

Page 9: Testing and Automated Deployment BEA User's Group October 2006

Cargo Configurations

• Custom Configurations• Local Configuration

o Existingo Standalone

• Runtime Configuration

Page 10: Testing and Automated Deployment BEA User's Group October 2006

Cargo Containers

• Local Containero Embedded Containero Installed Container

• Remote Container• Actions

o Createo Starto Stop

Page 11: Testing and Automated Deployment BEA User's Group October 2006

Cargo Deployments

• Local Deployer• Remote Deployer• Types

o Hot Deploymento JSR-88 Deploymento Hot Deployment

Page 12: Testing and Automated Deployment BEA User's Group October 2006

Interfaces

• Java• Maven 1• Maven 2• Ant

Page 13: Testing and Automated Deployment BEA User's Group October 2006

Demo

Page 14: Testing and Automated Deployment BEA User's Group October 2006

WTFIGO

Page 15: Testing and Automated Deployment BEA User's Group October 2006

Features

• Jar Discovery• Hibernate Configurations• Spring Configurations• Log Management• Cache Management• Session and Request information

Page 16: Testing and Automated Deployment BEA User's Group October 2006

Demo

Page 17: Testing and Automated Deployment BEA User's Group October 2006

ApacheCon

• Web Application Architectures• Tuscany• Synapse• OpenJPA

Page 18: Testing and Automated Deployment BEA User's Group October 2006

Archiva

• Repository Management• Proxy for Repositories• Reporting• Dependency Management• Security• Maestro

o Continuum, Release Manager, Archiva