Chapter 13. Communication between Erlang and Java via Jinterface

This chapter covers

  • Using Jinterface to communicate with Java programs
  • Building a bridge between Erlang and the HBase database
  • Integrating HBase with the Simple Cache application

In the previous chapter, we talked about interfacing between Erlang and foreign code via Erlang’s ports. That’s a useful and general approach, but it isn’t the most convenient route to take for every form of interaction. In this chapter, we talk about a different kind of interface, where the foreign code masquerades as an Erlang node and communicates over the Erlang distribution protocol (see chapter 8). Fortunately, the Erlang language implementers have already done a lot of the heavy lifting, providing ...

Get Erlang and OTP in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.