Re: [OT]shared memory
--- Wade Chandler [EMAIL PROTECTED] wrote: Elihu Smails wrote: I have a C based application running on the same box as tomcat, and I want to know if I would be able to access the shared memory segment using Java. The C program is setting up the shared memory using shmctl, and not using memory mapped files. I know that Java can support reading memory mapped files, but not memory that is set up using the shm* functions in C. Does anyone have any insight on this issue. I am hoping that JNI is not my only option. thank you. __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yep. JNI is your only solution. But, JNI isn't hard. You can use JNI and create a wrapper class by extending ByteBuffer. You might also find apache APR to be useful to help you out. Don't forget either that if you are going to run this application on different endian cpu's or endian emulated OS you'll have to reverse your byte order. There may already be a package for doing this out there some where (shared memory and reording at once). Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks for getting back to me :) JNI is not that bad I agree, I just wish I could do this without JNI. As far as the endian issue, it will all be on the same box, so I am OK there. Do you know if JDK 1.5 has any new shared memory support in it? __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]shared memory
Elihu Smails wrote: --- Wade Chandler [EMAIL PROTECTED] wrote: Elihu Smails wrote: I have a C based application running on the same box as tomcat, and I want to know if I would be able to access the shared memory segment using Java. The C program is setting up the shared memory using shmctl, and not using memory mapped files. I know that Java can support reading memory mapped files, but not memory that is set up using the shm* functions in C. Does anyone have any insight on this issue. I am hoping that JNI is not my only option. thank you. __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yep. JNI is your only solution. But, JNI isn't hard. You can use JNI and create a wrapper class by extending ByteBuffer. You might also find apache APR to be useful to help you out. Don't forget either that if you are going to run this application on different endian cpu's or endian emulated OS you'll have to reverse your byte order. There may already be a package for doing this out there some where (shared memory and reording at once). Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks for getting back to me :) JNI is not that bad I agree, I just wish I could do this without JNI. As far as the endian issue, it will all be on the same box, so I am OK there. Do you know if JDK 1.5 has any new shared memory support in it? __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Not that I have read or heard about. It might though. If it isn't in the release documents then I seriously doubt it though. I know that doesn't help you any. :-( Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]shared memory
I have a C based application running on the same box as tomcat, and I want to know if I would be able to access the shared memory segment using Java. The C program is setting up the shared memory using shmctl, and not using memory mapped files. I know that Java can support reading memory mapped files, but not memory that is set up using the shm* functions in C. Does anyone have any insight on this issue. I am hoping that JNI is not my only option. thank you. __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]shared memory
Elihu Smails wrote: I have a C based application running on the same box as tomcat, and I want to know if I would be able to access the shared memory segment using Java. The C program is setting up the shared memory using shmctl, and not using memory mapped files. I know that Java can support reading memory mapped files, but not memory that is set up using the shm* functions in C. Does anyone have any insight on this issue. I am hoping that JNI is not my only option. thank you. __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yep. JNI is your only solution. But, JNI isn't hard. You can use JNI and create a wrapper class by extending ByteBuffer. You might also find apache APR to be useful to help you out. Don't forget either that if you are going to run this application on different endian cpu's or endian emulated OS you'll have to reverse your byte order. There may already be a package for doing this out there some where (shared memory and reording at once). Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]