Comments
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


Federation and Integration
WorkSpace and Avaki in perfect harmony

In this article I want to show you how easy it is to use the new Avaki perspective and what you can achieve in the areas of Data Federation and Integration. This feature is newly available within Sybase WorkSpace v1.6 and integrated into the Workbench IDE (Integrated Development Environment). What I won't cover in this article is the installation, set-up, and configuration of Avaki and how to create your first Avaki Grid Domain Controller (GDC). This is very well explained within the Avaki documentation.

Data Federation
What is Data Federation? Simply put, it is the combining of data from various data sources into one single virtual data source or Data Service. The data can then be accessed, managed, and viewed as if it were part of a single system. This Data Service can be a combination of files, HTTP requests, Web services, SQL queries (including Stored Procedures), and other Data Services, etc. In my example, we will use the authors ASE 15 Pubs2 database table as our only data source. Simple I know, but let's walk before we can run.

Before we start our example we also need to introduce two concepts: a Database Connector and a Database Operation. The Database Connector is a mechanism that enables one or more database operations to connect to a relational database; a Database Operation is a mechanism that can extract/modify data from/in a relational database and deliver it to a Data Service. Our Federated Data Service will extract data from the authors table and manipulate it by concatenating a few fields together.

WorkSpace and the Avaki Perspective
Note that we will use the Avaki stand-alone JDBC driver, so make sure you copy Avaki_JDBCStandAlone.JAR into C:\Sybase\WorkSpace\DevRuntimes\EAServer\java\lib. This will be used at runtime within EAServer when we call our final Database Service in UO, as well as within WorkSpace to set up a new JDBC driver entry (see Figure 1).

To add a new driver, select the ellipsis button that is displayed next to the driver drop-down list shown in Figure 2. This will allow you to add the new JDBC driver entry (see Figure 1).

We can add a connection profile to the Avaki GDC. This will allow us to see all that we create and use them in WorkSpace just like any other Data Source, for example, in the Enterprise Explorer (see Figures 2 and 3). This will become very useful once we have created our Avaki Data Service.

Once the Avaki perspective is opened, we can use the File|New options (see Figure 4) to create a Database connector to our ASE 15 Pubs2 Database (see Figure 5). This will allow us to see all the tables in the Data Catalog View and even create a SQL View immediately. Now for our database operation, which is a straight SQL SELECT of all the columns from the authors table (see Figure 6) but using a WHERE clause on the au_lname column. As before, the Database Operation will appear in the Data Catalog View, very useful for our next step.

The next step is to create a new Avaki View Model, which will display a Palette and a canvas for us to drag and drop our newly created authors Data Operation, from the Data Catalog View (see Figure 7) onto the canvas and a Result object will be created automatically. Now drop a Projection onto the canvas and wire up the Data Operation, Projection, and Result with a connection, in that order.

Finally, change the Projection properties to combine some of the columns into single values (see Figure 8). Now that we have created our Data Service Model view, right-click on the canvas and test it with the Execute Model menu option; if it gives us the correct result, right-click on the canvas and take the Deploy option (see Figure 9).

True SOA and Integration Power
We can now switch to the Service Perspective and browse the Avaki Connection Profile for the Data Service we just created.

  • Question: How do we create this as a Database Service so it can be used in a Business Process Orchestration in UO?
  • Answer: Just like any other data source, right-click and take the Create Database Service menu option (see Figure 10). WorkSpace will take care of all of the code generation.
Just like any other service created in WorkSpace, we can then view the Service Interface (see Figure 11). This allows us to see any input parameters and Result Sets to be returned from the service operation. In our example, we will create a Sybase Service Package Profile and deploy this to our UO Server. Once deployed, we can test the service via our Test Service wizard and, of course, the correct results will be displayed (see Figure 12). I had no doubt! If you don't know how to perform the deploy-and-test steps, they are explained in my last two articles or blog at http://ianthain.pbdjmagazine.com.

Now that we know everything is working as we designed it, we can use the Database Service with a Business Process Orchestration. That's true SOA and Integration Power, and all from within the same IDE...seamless.

About Ian Thain
As one of the Sybase Technical Evangelists, Ian regularly addresses technical audiences all over the world and his sessions are always very well attended. He also writes education classes, whitepapers, demos and articles for various Sybase products and publishes regularly in Journals such as SYS-CON's PBDJ and International Developer Magazine. He is also the Sybase Unwired Platform & PocketBuilder Evangelist and works closely with the team in Dublin, CA and Concord, MA on new features and demonstrations for the products. He is also Tech Chair of iPhone Development Summit 2009 - New York (June) and San Francisco (November). In his customer-facing Evangelist role, Ian is very involved with the design, production and testing of Enterprise class Unwired Solutions, that have been implemented using Sybase's Unwired tools for Sybase customers around the globe. In addition, Ian is a dedicated technical expert continually working with Sybase's key partners and clients to enhance the capabilities of the Unwired solutions that Sybase can offer to its customers. Ian can also be found on Twitter @ithain

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Enterprise Open Source Magazine Latest Stories . . .
Apache Deltacloud, the Red Hat-contributed ReSTful API that abstracts differences between clouds so services on any cloud can be managed – provided of course there’s a driver – has graduated from the Apache Foundation’s incubator and is now a full-fledged Top-Level Project (TLP). The...
With Cloud Expo 2012 New York (10th Cloud Expo) just four months away, what better time to start introducing you in greater detail to the distinguished individuals in our incredible Speaker Faculty for the technical and strategy sessions at the conference... We have technical and st...
AMD said late Tuesday that its chief sales officer Emilio Ghilardi had left the company and that CEO and president Rory Read is going to do his job while a replacement is sought. AMD didn’t say why Ghilardi left but it’s assumed Read wants his own people. Read is relatively new to th...
During the lifespan of M3 (Monitis Monitor Manager) there has always been something lacking – timers. M3 execution procedure was outlined in this previous article. The execution mentioned in the latter was a one-time-execution, whereas server monitoring requires periodic invocati...
Red Hat is putting its bought-in Gluster scale-out NAS storage technology, acquired in October, on the Amazon cloud. It’s styled Red Hat Virtual Storage Appliance for Amazon Web Services and other clouds are supposed to follow in short order.
A new episode of the screencast series is now available at the OpenNebula YouTube Channel. This screencast demonstrates the new easily-customizable self-service portal for cloud consumers. Its aim is to offer a simplified access to shared infrastructure for non-IT end users. The scree...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE