developerWorks spacesCloud Computingsite. This article focuses on the Platform as a Service(PaaS) and Data as a Service (DaaS) capabilities of the WebSphere sMash and DB2 Express-C AMIsrespectively.WebSphere sMash and DB2 Express-CIndividually, WebSphere sMash and DB2 Express-C are powerful tools for developers. UsingWebSphere sMash, you can create Web 2.0 style applications using well-known technologies andpatterns like DOJO, PHP, Groovy, and REST services. DB2 Express-C provides efficient, responsive,and reliable storage of enterprise data and includes pure XML handling capabilities. However, an evenhigher level of value can be realized when these technologies are combined to deliver rich,responsive, data-oriented Web applications.The sample applicationincluded with this articledemonstrates a restaurant seating application thatprovides a glimpse of the capabilities provided with the WebSphere sMash Zero Resource Model(ZRM) and a DB2 Express-C database. The patterns for this application can be easily extended to dealwith the most complex of data and data relationships. The Zero Resource Model integrated with DB2Express-C is utilized to provide a rich front end experience fueled by a lightweight yet efficient andresponsive back end.The IBM AMIs are offered with a development license free of charge, but remember to terminate theinstances upon completion. Otherwise, you will continue to be charged Amazon's normal hourly ratefor instance hosting.
Set up the AMIs
To use the IBM AMIs, you must perform these steps, the first of which is a prerequisite:Set up your ownAmazon Web Services (AWS) account. This account is used to manageyour EC2 usage.a.Retrieve and configure theWebSphere sMash AMIand theDB2 Express-C AMI. When
you configure the DB2 Express-C instance, use the default user names for the purpose of this demonstration. Do not create a database yet; those details are described in the nextsection.b.Deploy the AMIs to your AWS account by way of the supplied instructions.c.1.
Create and activate the database
After deploying both the DB2 Express-C and WebSphere sMash AMIs to EC2, configure thedatabase of your running DB2 Express-C instance. This database contains the tables utilized byyour application.Use SSH to log into and authenticate your DB2 AMI instance. After you log in, switch tothe db2inst1 user using the
su - db2inst1
command.a.Create the database for the application using the createDatabase command. From the/home/db2inst1/bin directory, enter the
./createDatabase RSTDB
command.b.2.
Cloud computing for the enterprise: Part 2: WebSphere sMash a...http://www.ibm.com/developerworks/websphere/techjournal/0...3 of 147/21/09 2:03 PM
Add a Comment