Running the HelloWorld Sample
You can begin to explore TIBCO Enterprise Administrator SDK by running the Hello world sample.
Before you begin
- JRE and Apache Ant are installed. For details on the versions, see
readme.txt. - The jar files that implement the TEA agent library are installed
- TIBCO Enterprise Administrator server is running, and your browser can connect to it
- Procedure
- In a command shell, navigate to <TIBCO_HOME>/tea/tea_version/samples/helloworld.
- Run
ant.
The default ant target compiles and runs the sample program.
- Register the HelloWorld agent with the TIBCO Enterprise Administrator server.
- In a web browser, navigate to the server home page.
- In the Settings pane, click the Agents icon.
- Click the Register new button.
- Enter a name for the agent; for example, HelloWorld Agent.
- Enter the URL where the agent accepts requests from the TIBCO Enterprise Administrator server: http://localhost:1234/helloworldagent
- Enter a description string for the sample agent; for example, My sample HelloWorld agent.
- Click the Register button to complete registration.
- Test the HelloWorld agent.
- In the TIBCO Enterprise Administrator server GUI, navigate to the home page.
- In the
Products pane, click the
HelloWorldTopLevelType icon.
This action navigates to the HelloWorld product page.
- Click the hw button, which invokes the agent's only operation.
- In the dialog, select Hello World Agent as the operation target.
- Enter a string in the greetings field.
- Click the
hw button to complete the operation.
The agent outputs a greeting in the alert box.
- Click the Dismiss button to close the alert box.
What to do next
To learn more about the sample code, see The HelloWorld Sample: Lessons for Agent Developers.
Subtopics