I'm trying to create a wave robot that reacts to outside events, To do this, I have a program that POST's data to an HTTPServlet, which then processes the data into a usable form. I then somehow need to send this data to my robot wavelet so that it can make the changes to google wave. The problem is that the method of obtaining other servlets as outlined here (http://www.novocode.com/doc/servlet-essentials/chapter3.html) was deprecated in the Java Servlet API 2.0. I have created an ADT that encapsulates all of the data I need, so there's only one object to pass between the servlets.
My options (I believe) are:
- Somehow POST the data back to the wavelet from the HTTPServlet. This is kinda dumb and shouldn't be necessary.
- Create a method in my ADT that passes its data to the other servlet. I'm not sure how to do this because I think it has the same problem as the initial solution (deprecated api).
- Somehow use the operation queue's to send operations to the wavelet's operations queue. Google's docs on this are frustratingly thin (http://code.google.com/apis/wave/extensions/robots/operations.html#OperationQueues) and I can't find any external information about it. This seems to be the way to go, but how do I get the context of the robot to do stuff with it, from another class?