Using Java Beans

Generated Java beans can be used to add host access tasks to applications created in any Java application development environment. Each bean includes additional read-write and read-only methods representing the inputs and outputs built into the task. Using Task Builder, you can generate two types of Java beans:

Using Java Beans

To see files generated by Task Builder, and their locations, see these two topics: Generating Task Bean Interface Objects, and Generating Service Bean Interface Objects.

When writing code to access your tasks through Java beans, you should typically follow this workflow:

  1. Instantiate the bean.
  2. Set the bean's input properties.
  3. Execute the task.
  4. Get the bean's output properties.
  5. Terminate the bean.
Note Since each service bean can contain more than one task, you would repeat steps 2 through 4 until each task has been executed.

Service Beans with Apache Axis Web Services

When you generate Web services for Apache Axis, a bean is generated, which is essentially identical to a service bean, but includes a Web Service Deployment Descriptor (WSDD) for deployment to the Apache Axis server. A WSDD is an XML document for configuring Apache Axis Web services.

Related Topics
Bullet Using Tasks in Your Applications
Bullet ITask Sample Code
Bullet Task Bean Input and Output Examples
Bullet Attachmate Javadocs