Memory-Mapped Files & Transparent Persistence of Java Objects

Posted by geeko on Stack Overflow See other posts from Stack Overflow or by geeko
Published on 2010-06-02T07:38:36Z Indexed on 2010/06/02 7:43 UTC
Read the original article Hit count: 342

Greeting All,

I want to achieve transparent persistence of Java objects through memory-mapped files (utilize the OS paging/swapping mechanism).

My problem is: how can I move a Java object to my memory-mapped block ? Plus, how can I force a new object instance to reside in such blocks ?

As you all know, a memory-mapped block can be seen as a byte array, and what I am really asking here is how to overlap the address space of Java objects with the one of such arrays ?

If Java does not allow me for this, what cross-platform & garbage-collecting OO language would you advise me to use ?

Thank you all in advance.

© Stack Overflow or respective owner

Related posts about java

Related posts about memory-mapped-files