Getting Testy with SOA 11g – Part 2: The Mock Web Service Pattern
Despite what the title implies, I’m not really cranky with SOA 11g. I promise. I certainly wouldn’t have spent the last few years working with it if I wasn’t constantly impressed by what this vast framework can do. The best thing about having had a chance now to go through a number of significant SOA 11g projects has been discovering new and even better patterns to make development easier and increase the overall quality of our finished product.
This series is all about discussing some of those patterns – specifically around the best way I’ve found so far to set up an automated and highly repeatable testing framework for SOA 11g service projects.
Getting Testy with SOA 11g – Part 1: The Integration Service Pattern
Most developers that I’ve met really dislike automated testing – hence the title. In the course of the SOA 11g projects I’ve worked on, I’ve found a number of patterns that have really made setting up automated tests for services easy. Honest. While this, of course, requires a little bit of extra work, it’s not as much as you’d think and the benefits far outweigh the additional coding. For starters, have you ever made a small change to a really complex service on a tight timeline hoping and praying you didn’t inadvertently hatch any new bugs while fixing your current one? If so, you’ll find this pattern is a much better way to calm your nerves rather than a prescription from your doctor because a framework that supports automated testing can quickly exercise every possible scenario
How to Make BPEL Gulp
I recently had a customer who needed to consolidate data from several legacy databases (Sybase, DB2, and Oracle 10g) and then copy the transformed result set to a Microsoft SQL Server 2008 database. This was clearly an ETL use case so, being a good consultant, I suggested that they use a tool like Oracle Data Integrator. However, because they had a limited budget for new licenses and already had a license to Oracle SOA Suite 11g that they wanted to test out, they asked me to do this using BPEL.
At first, I thought that this would be fairly simple. I figured all I had to do was to just slap in a bunch of database adapters into my composite along with a few transforms into my BPEL project and then I would be off to the races.
Oracle SOA Database Adapter 101 - WebLogic Configuration Steps
Remember the commercial with the “Easy” button? When you press it miraculous things happen and all your wishes come true. This is what Oracle had in mind when it created the SOA Database Adapter. Perhaps I’m overstating this just a little, but the idea is to remove most of the pain from interacting with a database, allowing the user to focus on the important things – like retrieving, saving, updating and deleting information.
Highway to the Danger Zone
Just like Top Gun’s Maverick and Goose shrieking into harm’s way in an F14 Tomcat, our lives as developers are always lived on the razor’s edge of speed and utter perfection.