Scala Actors with Java interop to underlying COM libraries

Posted by wheaties on Stack Overflow See other posts from Stack Overflow or by wheaties
Published on 2010-03-29T14:13:47Z Indexed on 2010/03/29 14:23 UTC
Read the original article Hit count: 514

Filed under:
|
|
|
|

I'm working on a JVM project which uses ESRI components (COM based, wrapped with JIntegra.) The client has requested the JAR files we produce work on the JVM and be accessible to Java code. I'd like to use Scala but I'm worried about how well the library will play with Scala's actors. Particularly I'm worried about the different mechanisms COM and Java employ to pass objects from one thread to another.

Does anyone have any experience with this? Will they play nice?

Edit: for clarification

I noticed that when performing I/O on the ESRI DB that the CPU utilization is roughly 15%. I'd like to read each row and pass that row over to another actor for parsing. Then I could have several threads reading from the DB at once. The problem is that each row retrieved using ESRI's library is actually a Java wrapped COM object.

© Stack Overflow or respective owner

Related posts about scala

Related posts about actors