tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wade Chandler <wchand...@redesetgrow.com>
Subject Re: [OT]shared memory
Date Thu, 13 Jan 2005 15:22:58 GMT
Elihu Smails wrote:
> --- Wade Chandler <wchandler@redesetgrow.com> 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:
>>
>>tomcat-user-unsubscribe@jakarta.apache.org
>>
>>>For additional commands, e-mail:
>>
>>tomcat-user-help@jakarta.apache.org
>>
>>>
>>>
>>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:
>>tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>tomcat-user-help@jakarta.apache.org
>>
>>
> 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message