I need your help and opinion on JNI

I am assigned a task to build one Java API above one existing protocol stack written in legacy C++, which involves UDP and TCP communication.
The C++ code involves callback method.
My qustion is:
1. I only tried some simple examples on one way trasfering, for example, invoke c++ from Java (HelloWorld example), and either invoke Java from C++. Is it possible to do it all together? I mean invoke C++ from Java and invoke Java from C++ for the callback methods at the same time?
2. Is it possible to do this with JNI? I doubt because it involves callback method in C++ code, so in Java, a interface should be created with the callback method declared inside it.
I really need your help!

1. Yes it is possible to call out of java into C, and back into java from C. And the tool of choice is JNI.
2. You better buy a JNI book.
3. As you get into it, you will probably find that designing around threading issues become important. Scan this forum.

Similar Messages

  • I need your help and experience !

    I used Oracle Database 9i Release 2, and now I want to install Orale9iAS portal. I tried many times but I am not success. I read Orale9iAS Pible book, he said Oracle9iAS Portal just for Oracle8i, so is it right ?
    I need documents explaining how to install Oracle9iAS Portal with Oralce9i Database, if you have any please send to my email : [email protected]
    Thank you very much !
    Best regards,

    Hi,
    It's completly wrong portal only runs on 0racle 8i, you might have read a very old document, is runs on 9i and 10g too.
    Installation is completed via OUI (Oracle Universal Installer), but you should carefully read installation manuals (found on oracle's website) before, there are lots of possibilities and things to know.
    Regards
    Arnaud

  • I need your help and support

    To Whom it may concern,
    i lost my Mac Book, description MBook white 2.26GHz/2GB/250GB/SD, my question is there any way to block it.
    Thank you

    Hi Patricia Zouein.  Here is the only thing the apple has on this. Read this and see if it can apply to you, Sorry for your loss. http://support.apple.com/en-us/HT2526

  • Updating to WM 6 Pro but which one??? Need your help and advice

    Good Day!
    I just recently bought a Treo 750 here in Taiwan and I want to update my device from WMPro 5 to WMPro 6.. I saw 2 different updates both from palm support
    This link i got from a chinese online palm community. This update is for the 2.23 version and labeled as generic English.
    https://ws.palm.com/SupportDownload/app?service=external/Home&sp=20
    This link i got from palm philippines and this update is for the 2.27 version labeled as generic English for APAC Region http://www.palm.com/ph/support/treo750/downloads/wm6update.html
    Device String Download file Treo 750 Treo 750-1.16-RWE Download
    Which file do I download?? I'm thinking of downloading the latter since it is a much higher version compared to the previous one.. Hope to hear from you guys soon thanks a lot!!!!
    hyuuga_patik
    Post relates to: Treo 750
    Message Edited by hyuuga_patik on 10-18-2008 02:15 PM
    This question was solved.
    View Solution.

    Hi HardBeatZ thanks for the reply.. my version is Treo750 - 1.16-RWE. So do I download the 2nd one the one from the palm philippines website? I am a bit confused by your suggestion...
    here is the link http://forum.palmislife.com/thread-81973-1-1.html for the chinese forum where I got the first download link..you can maybe scroll down a little bit then you can see this part.. 
    -- 2.23 --
    Palm 750  / 零售 unlock  / 官方下载
    Treo 750-1.16-RWE
    升級後版本 Treo 750-2.23-RWE
    which is also matches the same string version from the palm philippines website and my current device.. Hope to hear from you soon thanks a lot and take care!
    ****the chinese word on the right side of unlock / is the link to the updater..
    ****from the palm phil website the link to the updater is Download next to this: Device String Download file Treo 750 Treo 750-1.16-RWE (see first post)
    hyuuga_patik
    Post relates to: Tungsten E2
    Message Edited by hyuuga_patik on 10-19-2008 01:42 AM

  • I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980's and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my

    I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980’s and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my own folder and file naming conventions. I currently have over 23,000 images of which around 60% are scans going back 75 years.  Since I keep a copy of the originals, the storage requirements for over 46,000 images is huge.  180GB plus.
    I now have a Macbook Pro and will add an iMac when the new models arrive.  For my photos, I want to stay with Photoshop which also gives me the Bridge.  The only obvious reason to use iPhoto is to take advantage of Faces and the link to iMovie to make slideshows.  What am I missing and is using iPhoto worth the effort?
    If I choose to use iPhoto, I am not certain whether I need to load the originals and the edited versions. I suspect that just the latter is sufficient.  If I set PhotoShop as my external editor, I presume that iPhoto will keep track of all changes moving forward.  However, over 23,000 images in iPhoto makes me twitchy and they are appear hidden within iPhoto.  In the past, I have experienced syncing problems with, and database errors in, large databases.  If I break up the images into a number of projects, I loose the value of Faces reaching back over time.
    Some guidance and insight would be appreciated.  I have a number of Faces questions which I will save for later. 

    Bridge and Photoshop is a common file-based management system. (Not sure why you'd have used ACDSEE as well as Bridge.) In any event, it's on the way out. You won't be using it in 5 years time.
    Up to this the lack of processing power on your computer left no choice but to organise this way. But file based organisation is as sensible as organising a Shoe Warehouse based on the colour of the boxes. It's also ultimately data-destructive.
    Modern systems are Database driven. Files are managed, Images imported, virtual versions, lossless processing and unlimited editing are the way forward.
    For a Photographer Photoshop is overkill. It's an enormously powerful app, a staple of the Graphic Designers' trade. A Photographer uses maybe 15% to 20% of its capability.
    Apps like iPhoto, Lightroom, Aperture are the way forward - for photographers. There's the 20% of Photoshop that shooters actually use, coupled with management and lossless processing. Pop over to the Aperture or Lightroom forums (on the Adobe site) and one comment shows up over and over again... "Since I started using Aperture/ Lightroom I hardly ever use Photoshop any more..." and if there is a job that these apps can do, then the (much) cheaper Elements will do it.
    The change is not easy though, especially if you have a long-standing and well thought out filing system of your own. The first thing I would strongly advise is that you experiment before making any decisions. So I would create a Library, import 300 or 400 shots and play. You might as well do this in iPhoto to begin with - though if you’re a serious hobbyist or a Pro then you'll find yourself looking further afield pretty soon. iPhoto is good for the family snapper, taking shots at birthdays and sharing them with friends and family.
    Next: If you're going to successfully use these apps you need to make a leap: Your files are not your Photos.
    The illustration I use is as follows: In my iTunes Library I have a file called 'Let_it_Be_The_Beatles.mp3'. So what is that, exactly? It's not the song. The Beatles never wrote an mp3. They wrote a tune and lyrics. They recorded it and a copy of that recording is stored in the mp3 file. So the file is just a container for the recording. That container is designed in a specific way attuned to the characteristics and requirements of the data. Hence, mp3.
    Similarly, that Jpeg is not your photo, it's a container designed to hold that kind of data. iPhoto is all about the data and not about the container. So, regardless of where you choose to store the file, iPhoto will manage the photo, edit the photo, add metadata to the Photo but never touch the file. If you choose to export - unless you specifically choose to export the original - iPhoto will export the Photo into a new container - a new file containing the photo.
    When you process an image in iPhoto the file is never touched, instead your decisions are recorded in the database. When you view the image then the Master is presented with these decisions applied to it. That's why it's lossless. You can also have multiple versions and waste no disk space because they are all just listings in the database.
    These apps replace the Finder (File Browser) for managing your Photos. They become the Go-To app for anything to do with your photos. They replace Bridge too as they become a front-end for Photoshop.
    So, want to use a photo for something - Export it. Choose the format, size and quality you want and there it is. If you're emailing, uploading to websites then these apps have a "good enough for most things" version called the Preview - this will be missing some metadata.
    So it's a big change from a file-based to Photo-based management, from editing files to processing Photos and it's worth thinking it through before you decide.

  • I want to get iBook, Facebook and Skype to my iphone 4.2.1 through my iTune, but I coudn't because it is said that it requires a newer version of iOS. Please I need your help. Thanks

    I want to get iBook, Facebook and Skype to my iphone 4.2.1 through my iTune, but I coudn't because it is said that it requires a newer version of iOS. Please I need your help. Thanks

    If your iPhone can't be updated to a higher iOS version then the only way to get them is if you downloaded versions of them which were compatible with iOS 4.2.1 and you still have copies of those versions somewhere e.g. on your computer or on a backup - only the current version of each app is available in the store, and as apps (and other content) are tied to the account that downloads them, you will need to have older copies that are linked to your id

  • Hi i have an ipad mini and i have not used it for 2 month or more. Today i have tried to use it i came across with a problem. my Ipad is blocked and it asks me to wait 23,401,418 :) what should i do need your help. thanks

    hi i have an ipad mini and i have not used it for 2 month or more. Today i have tried to use it i came across with a problem. my Ipad is blocked and it asks me to wait 23,401,418 what should i do need your help. thanks 

    Have you charged ipad Try a Reboot press & hold power button & menu button hold both down until you see Apple Logo You may need to do this more than once. Bsydd uk

  • Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    Hi, my iphone its in recovery mode and when i restore my iphone 5s loading show the blue screen and show note on itunes (unknown error 14) please i need your help please . thanks

    In the article Resolve iOS update and restore errors this is what it says about error 14:
    Check your USB connections
    Related errors: 13, 14, 1600, 1601, 1602, 1603, 1604, 1611, 1643-1650, 2000, 2001, 2002, 2005, 2006, 2009, 4005, 4013, 4014, or “invalid response."
    If the USB connection between your device and computer is interrupted, you may be unable to update or restore.
    To narrow down the issue, you can also change up your hardware:
    Use the USB cable that came with your device, or a different Apple USB cable.
    Plug your cable into a different USB port directly on your computer. Don't plug it into your keyboard.
    Try a different computer.
    If necessary, resolve any further issues with the USB connection, then with your security software.
    If you're still seeing the error message, check for hardware issues by following the next section.

  • Please I'm frankly tired and in need of your help to activate the iPhone5 it does not account Icloud Old I know of has been good, I did not get before Fargo as a result of your help and thank you and appreciation

    please im tired and in need of your help to activate the iphon5 it does not account icloud old iknow of has been good, idid not get before fargo as aresult of your help and thank you and appreciation

    please im tired and in need of your help to activate the iphon5 it does not account icloud old iknow of has been good, idid not get before fargo as aresult of your help and thank you and appreciation

  • Hello..i have IPhone 4S i did reset to factory settings by fault and till now after a 2 hours there is nothing just a waiting icon in the middle of the screen and none of home or turn off button are response so i do need your help plz

    hello..i have IPhone 4S i did reset to factory settings by fault and till now after a 2 hours waiting (as known it takes a 1 to 2 minutes maximum) there is nothing just a blank screen and a running waiting icon in the middle of the screen and none of home or turn off button are responsed so i do need your help plz & thanks in advance..

    Try to reset it by holding the power an home buttons at the same time until you see the Apple logo, then release.  If it won't reset, you'll probably have to force it into recovery mode and restore it, as explained here: http://support.apple.com/kb/ht1808.

  • HT201210 please,I need your help ! I was updating my iphone ios to ios4.2 and then problems begins when it shows that it needs to restore the factory software to I was trying to restore ,but that didn't happen it begins but then it shows unknown error 101

    please,I need your help ! I was updating my iphone ios to ios4.2 and then problems begins when it shows that it needs to restore the factory software to I was trying to restore ,but that didn't happen it begins restoring but then it shows unknown error 1015

    Stop being impatient.
    From the article that the question was posted from:
    Errors related to downgrading iOS
    The required resource cannot be found: This alert message occurs when your device has a newer version of iOS than what is available in iTunes. When troubleshooting a device that presents this alert message, go to Settings > General > About and check the version of iOS on the device. If it is newer than the latest released iOS version, the device may have a prerelease developer version of iOS installed.   Installing an older version of iOS over a newer version is not supported.
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
    You cannot downgrade.
    If you have a 3GS, you can only install iOS 6.1.3 which is the current version of iOS for the device.

  • HT201210 I tried to update to IPad 5.1, but when it finished and tried to restore the backup, it shows me that Itunes could not back up because a session could not be started with iPad. need your help please

    I tried to update to IPad 5.1, but when it finished and tried to restore the backup, it shows me that Itunes could not back up because a session could not be started with iPad. need your help please

    This has happened to me a couple of times and what I do is quit iTunes and restart my Mac and then try again and then it will work.
    If iTunes has already created the backup, you should still be able to restore from the backup when you are connected to iTunes. Right click on the iPad name on the left side of iTunes and select restore from backup. After the process completes, sync with iTunes to transfer all of your apps, music, photos and other media back onto the iPad.

  • HT4623 Hi there , I have ipone3GS it is locked and I need your help to unlocke it as soon as possible .

    Hi there ,
    I have ipone3GS it is locked and I need your help to unlocke it as soon as possible .
    IMEI :  01 299500 378415 1
    I am waiting for your help for unlocke it to use it soon .
    Thank you for understanding my situation .
    Regards
    Sultan Alsharari

    Could you please give me their email to contact them.
    I am waiting for your replay .
    Thank you
    Sultan Alsharari

  • I just brought an iphone 4 16gb off Ebay and everytime i insert my sim it doesnt allow me to activate any further i really need your help?

    i just brought an iphone 4 16gb off Ebay and everytime i insert my sim it doesnt allow me to activate any further i really need your help?

    applelogo wrote:
    ...Please insert another SIM card from a supported carrier or request that this iPhone be unlocked by your carrier. ...
    You need to Contact the Carrier that it is locked to...
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • Please , i need youre help ! im from Mexico and i dont speak inglish well but ill try explain me... i buy a cs5 students edicion but i lost my paswoord for the instalacion can you helpe me ? how can i recuperade my paswoord

    please , i need youre help ! im from Mexico and i dont speak inglish well but ill try explain me... i buy a cs5 students edicion but i lost my paswoord for the instalacion can you helpe me ? how can i recuperade my paswoord
    Creative Suites

    Find your serial number quickly
    Mylenium

Maybe you are looking for

  • How to relink media in CS6

    When I first open a project in PrPro it asks a strange request to relink media.  No files have been moved and all my media is on one hard drive.  I understand how to relink media but this is strange.  It asks "Where is the File "V1-etc, etc, etc?  I'

  • Creating DOMAIN INDEX on INTERVAL PARTITIONING

    Hi ! I hava a problem, and I hope someone can help me! Two questions are asked below: 1. Main question: HOW CAN I SOLVE THIS PROBLEM, ARE THERE OTHER WAYS DOING THE SAME JOB (MAYBE FASTER) ? 2. Additionally: Is there a way to accelerate the deletion

  • Is there anyway to retrieve my deleted texts?

    Also how far can I go back if possible?

  • Spell Checker broken

    Ever since I upgraded to 10.4.5, the spell check doesnt work as well. Simple things that were caught before, like letters being transposed, are now not listed. Sometimes it finds the error, but doesnt have a suggestion whereas in the past it did. Wha

  • What happened to third party apps for OSX 10.5 ?

    A case most curious ! I cant seem to locate any third party apps for OSX 10.5 when clicking on the third party apps link on the apple downloads page ! The link doesnt seem to work any longer - any idea as to why ? Thank you in advance