Sample Component Development

To illustrate and reinforce the concepts that have been discussed in this chapter, let's walk through an exercise to create a very basic component hierarchy that shows off error logging, EAServer API access, data access (including transaction management), and exception handling. All we'll do is create a base object, a base data access object, a custom DataStore object, and a custom exception object. You'll be able to use this as a starting point for any EAServer development effort and easily build on it for yourself.

The Base Object

The base object is just that: It's very basic. This is a standard EAServer component created with the New, Target, EAServer Component Wizard, as discussed in this chapter. Notice when ...

Get PowerBuilder® 9: Internet and Distributed Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.