Sunday, February 24, 2008

MINA bindings for Scala (updated)





Originally, the ActorIoHandler class did three things:

  1. It associated each IoSession with an actor.
  2. It translated IoHandler events into messages for each actor.






David Bernard said...


At work, we plan to use scala + mina so we look at scala-mina. I've got a question :
why do you package it as a "patch"/fork of mina instead of a standalone lib with dependency to mina ?

Rich Dougherty said...

Hi David

The initial reason is that I wanted to develop against MINA 2, which hadn't made a release at the point when I started development. Since MINA was changing a lot, it was just easier to maintain the Scala code as part of the same project.

There now also a chance that the Scala bindings might make it into the main MINA distribuation, so I'm maintaining a patch for the moment. If that doesn't happen then the bindings will probably be easier to maintain a separate project, as you suggest, especially now that there's a milestone release of MINA 2.

If it helps, I've now made a compiled snapshot, which you can download from the project site.

I'm interested to hear how you go with your Scala/MINA integration. Is this anything to do with the MMO project which was mentioned on the mailing lists?


robey said...

I can't figure out how to email you, Rich, but the snapshots are returning 404, and the maven build is currently broken.

Rich Dougherty said...

Hi Robey

Sorry about the 404s, that's very frustrating. Actually, David Bernard, the host of, has set up an automated build from the latest sources. So you can download the files from there. I'll update project documentation to point there too.

You should be able to find my email address on my profile. At least I can see it. :-) Let me know if it's not publicly visible.