testing and automated deployment bea user's group october 2006
DESCRIPTION
A discussion of best practices when developing a automated build, testing and depl0yment strategyTRANSCRIPT
Testing and Automated Deployment Strategies
Scott RyanOctober 2006
BEA User’s Group
Agenda
• Maven 2o Automated Deploymento Testing
• Cargoo Automated Deploymento Testing
• WTFIGO• Apache Con
Maven Lifecycle
• Validate• Compile• Test• Package• Integration Test• Verify• Install• Deploy
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>
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
Profile Activation
<profile> <activation> <jdk>1.4</jdk> </activation></profile> <activation> <property> <name>environment</name> <value>test</value> </property></activation>
Demo
• Deploy, Start, Stop, Re-deploy, Un-deploy
Cargo
Cargo Configurations
• Custom Configurations• Local Configuration
o Existingo Standalone
• Runtime Configuration
Cargo Containers
• Local Containero Embedded Containero Installed Container
• Remote Container• Actions
o Createo Starto Stop
Cargo Deployments
• Local Deployer• Remote Deployer• Types
o Hot Deploymento JSR-88 Deploymento Hot Deployment
Interfaces
• Java• Maven 1• Maven 2• Ant
Demo
WTFIGO
Features
• Jar Discovery• Hibernate Configurations• Spring Configurations• Log Management• Cache Management• Session and Request information
Demo
ApacheCon
• Web Application Architectures• Tuscany• Synapse• OpenJPA
Archiva
• Repository Management• Proxy for Repositories• Reporting• Dependency Management• Security• Maestro
o Continuum, Release Manager, Archiva