To close off, we need to define the topology using Clojure. Remember that the point of this topology is to drive home the polyglot nature of Storm. You can deliver multi-technology real-time topologies and you must select the appropriate method. The bolts described earlier in this chapter used the minimal multilang protocol. There are various other ways, including Thrift, the Clojure's Java interop, and, in the case of Qt, you could have easily used the Qt Jambi project. The selection of the appropriate method depends on many factors within your environment. Use the right tool for the right job.
Create the Lein project file within the
polyglot-count-topology
project folder, and name the fileproject.clj
.(defproject polyglot-count-topology "0.0.1-SNAPSHOT" :source-paths ["src/clj"] :java-source-paths ["src/jvm" "test/jvm"] :test-paths ["test/clj"] :javac-options ["-target" "1.6" "-source" "1.6"] :resource-paths ["multilang...