[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] ByteBuffers and Jetty?

What you want for hard memory access are NativeDirectByteBuffers

These can ONLY be created from native code run through JNI.  Once created they appear like any other ByteBuffer to the JVM.

http://www.ibm.com/developerworks/java/library/j-nativememory-linux/

On Mon, Apr 30, 2012 at 6:14 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Sun, Apr 29, 2012 at 04:15, David Walend <david@xxxxxxxxxx> wrote:
> I'm working on a project where I need direct access to memory via ByteBuffers and the ability to use http protocols to push the data around the internet. Can Jetty do that? How hard is it to do?
>
> (An early aspect of this project is transferring ~10GB files. Does Jetty have any baked-in limits on size of a single transfer?)
>
> I haven't been able to find doc or an email thread on ByteBuffers, so a "go read this" answer would be great help. Heck, even "go read this part of the source code" would be fine.

Jetty's DefaultServlet is already doing a bunch of smart things
related to mapped file buffers and such, see
http://wiki.eclipse.org/Jetty/Feature/Servlets_Bundled_with_Jetty#DefaultServlet
(in particular parameter "useFileMappedBuffer").

If that's not enough, you need to be more explicit on what you want to do.

Simon
--
http://cometd.org
http://intalio.com
http://bordet.blogspot.com
----
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
It's always darkest just before you are eaten by a grue.