Auto-registering in the Server Mode
The following example shows how the TeaAgentServer can be configured to auto-register itself.
TeaAgentServer server =
new TeaAgentServer("HelloWorldAgent", "1.1", "Hello World Agent", 1234, "/helloworldagent", true);
server.registerInstance(new HelloWorldAgent());
server.registerAgentAutoRegisterListener("http://localhost:8777/tea");
server.start();
com.tibco.tea.agent.server.TeaAgentServer.registerAgentAutoRegisterListener()
is used to register the agent with the server. The method takes the server URL as the parameter.
Copyright © Cloud Software Group, Inc. All Rights Reserved.