I apologize in advance if my question is unclear - I am afraid I do not understand all of this quite well enough to form my question precisely, but I will give it a shot.
I recently managed to get an OpenLayers map set up and displaying a WFS layer (mostly by piecing together examples from others' questions), the data for which is stored in a PostGIS database and served with GeoServer. My next task is to figure out how to connect the map to our existing database, which is an Accumulo database. We have a Jetty server set up for communicating with the Accumulo database. To the best of my knowledge, what I want to do is to replace the WFS protocol on my vector layer with a different protocol that will communicate with this Jetty server. If we can get a request sent to the Jetty server in some easily parsed format, we already have the capability to turn this into a database query and return JSON with the results of the query.
I have looked at both the HTTP and Script protocols, and it seems to me that one of these may be what I want to use. However, Google searches provide little in the way of examples of how these protocols work.
Am I on the right track with this?