At the top of the post, I did state the two use cases I am working on to make components for: 1) A Real Time Messaging and 2) A Twilio component.
More broadly, I am looking at the various way that I can interface external systems/applications. Some of the systems I interface with use WebHooks, as is the case with Twilio, some are FTP, Screen Scraping, WebSocket … the data formats I have to work with are all over the place … JSON, XML, CSV, XLS etc
I currently have a number of “recipies” for doing interfaces and I am looking at coming up with similar set of “recipes” for CUBA as one size does not fit all and each interface/client has different requirements … Technical, Security, Performance, Availability … the usual stuff.
Given that, the CUBA REST interface seems to only work where you can control the application communicating with CUBA (Or is this really the case?). For example, In the case of Twilio, I have to comply with someone else’s specification and need to bend CUBA to fit.
I am new to CUBA and Java so I am looking for guidance on the best approach to write these custom interfaces. Can I use Servlets? Should I use Controllers? Can I use a Spring RESTController? There was another post where the advice was to not use Servlets but rather use Spring MVC Controllers.
My prototypes using Controllers are not working but given my naivete I need to do more work before making a post for support. Alas, this is all part of my learning curve and it does force me to crawl through the CUBA code to understand the architecture and how CUBA implements the various frameworks/libraries.
Mario, I did send you an email describing the proof of concept Real Time Messaging component as it relates to your posts on Asynchronous Messaging but you never responded to me. If you would have looked at my email, you would have a better idea of my thought process and what my goals are.