Skip to main content
Content Starts Here

We've Moved!

Please note that we have moved to our New Forum site.


Ask Search:
Anu VargheseAnu Varghese 

RequestStartPlaceAgentStateReporting events monitoring

Hi All,

I'm stuck with below problem and hope someone can help:

We are trying to listen to InteractionServer events using java PSDK.
From the documentation it looks like RequestStartPlaceAgentStateReporting class can help.

Have written the following piece of code to receive events from InteractionServer.

InteractionServerProtocol interactionServerProtocol = new InteractionServerProtocol(
   new Endpoint("InteractionServer", "myServerhosr", port));
interactionServerProtocol.setClientName("EntityListener");
interactionServerProtocol.setClientType(InteractionClient.AgentApplication);
interactionServerProtocol.open();
RequestStartPlaceAgentStateReporting requestStartPlaceAgentStateReporting =
   RequestStartPlaceAgentStateReporting.create("myPlace");
interactionServerProtocol.send(requestStartPlaceAgentStateReporting);

Anyone has a sample code on how the interaction server event messages can be received in the code after this.

Thank you!