How does jni manage the asynchronous messages like vc++ does?

Hi,
I am trying to wrap a vc++ dll in jni.
Frankly,I a novice in VC++ and all the COM stuff.I just have a ready made VC++ code,I wish to use in my project.
The VC++ dll;sends and receives asynchrounous messages,defined in the VC++ "MESSAGE MAPs".
I wish to wrap this using JNI.I dont know WHERE to start and defintely am clueless as to HOW.
ANy...any help on this would be greatly appreciated.
thank you for you valuable pointers..in advance.
rum

Thank you so much.
But maybe your earlier answer was closer to my question.
My questions on this subject are so many that I am unable to pinpoint what exactly I want to know:)
After I received your answer I went back and did some homework on COM.
So armed with this new knowledge,I will try once more.
Scenario:
1. I have a VC++ dll,which I intend to use from a java application.
Therefore,I use JNI to wrap this dll.
2.
There is some COM code that needs to be wrapped as well.
I understand that this COM code will allow my java client application to receive message notifications asynchronously.
3.
I see now that I need to spun two seperate threads in JNI to handle this problem.
Thread 1: to initialize COM and to wait for messages from the server.
Thread 2:to do the other Application stuff.
QUESTIONS:
a. Am I right so far? :)
b. How does thread 1 communicate with Thread 2 on receiving a message?
Thank you so much for being patient.
These misplaced pieces of the jigzaw puzzle are killing me
Thanks a lot

Similar Messages

  • HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. MY question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this aren't working

    HI, I recently upgraded my operating system IOS 5.0.1 on an iphone 3gs. My question is, how do I get the text messaging preview to just pop up so that I can see the name only when the lock screen is on? The conventional ways of doing this, such as using turning off the SMS preview under the "passcode lock", well that option no longer exists, or if it does, I'm somehow missing it.
    When I go to the "messages" setting under settings on my phone, I still don't see an option of turning it off.
    If I can just get the name of the person sending the message, as I had it before, I'd be happy.
    Help!

    That option still exists in Settings > Notifications > Messages > Show Prview (OFF) and View in Lock Screen (ON). Here's how to configure your Notifications and Notification Center for iOS 5: http://iphone-and-i.blogspot.com/2012/01/how-to-customize-notification-center-in .html

  • How are the asynchronous messages persisted

    How are the asynchronous messages persisted ??
    thanks
    kumar

    HI Kumar
    1. Asynchronous Messages in XI are stored in database permanently
    2. After processing the message, Integration Engine makes a datbase commit explicitly and the processed message is stored in the database.\
    3. Async Messages can be restarted when they go into error
    4. Asynchrous messages while being sent if there is some problem in connectivity or something the message persists and when the connection is up,it tries to send it again
    Cheers..
    Vasu
    <i>** Reward Points if found useful **</i>

  • How to control the error messages (like Application..) in visual composer?

    hi
    is it possible to control the error message?
    After creating the delivery using a BAPI function,
    the return message is displayed in the table list if the transaction is succeeded.
    But the error occurred, dialog box is showed (Application Message).
    I just want to show the error message like being succeed in.
    Regards,
    Wooho.

    Hi
    You can try and use guard conditions or check the table for data, if there is no data in the table the application will return an error message.
    Jarrod Williams

  • How can i stop the upgrade message appearing everytime i open iphoto?

    How can i stop the upgrade message appearing everytime i open iphoto?
    It's getting ridiculous that every time i open iphoto that it insists in being upgraded and repaired. Anyone know how i can get rid of this without reinstalling it?
    Thanks

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • How can i see the error message?

    hi, i have written a procedure in the database 10g, with my own error, and it works. but, when my exception occurs, i want to see my ora-20000-message in the footer of the isql-screen in the same way like normal ora-errors do it. because, now the code handles the exeption, but i can not se any message.
    thx.
    (zahl1 in number, zahl2 in number)
    as
    maxvertrag number;
    ergebnis number;
    myerror exception;
    pragma exception_init(myerror, -20000);
    begin
    select max(vertragsnr) into maxvertrag from robertl.tblugovor;
    ergebnis := zahl1+zahl2+maxvertrag;
    if ergebnis>104
    then
    RAISE_APPLICATION_ERROR (-20000, 'Result is > 104!');
    end if;
    exception when myerror then
    ergebnis:=0;
    end;

    This is answered in how can i se the error message?.
    As a side note, you generally don't need to cross-post in these two fora, as many of us frequent both.
    Cheers, APC

  • Movies in my laptop, songs in Macmini - how do I manage the playlist?

    Movies in my laptop, songs in Macmini - how do I manage the playlist in 1 computer?

    You said you transfered from a USB
    If you just dragged them and dropped them or added the folder they were from on the External Device Directly....
    They will only play when that external is plugged in
    You should delete them from iTunes - since iTunes works as short cut and doesnt hold the music in its self.
    Then Move them Directly from the External to like your Music folder- create a new folder inside of it as example "USB MUSIC" and then add that to your ITunes library

  • In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    It will be backed up on your computer and can later be restored to an iOS device using iTunes, if desired.  Of course, if your hard drive crashes you'll lose it if it isn't backed up somewhere else.  If you want to included it in your computer backup, it will be located at one of the following locations:
    Mac OS X: ~/Library/Application Support/MobileSync/Backup
    Windows XP: %AppData%\Apple Computer\MobileSync\Backup
    Windows Vista: %AppData%\Roaming\Apple Computer\MobileSync\Backup
    Windows 7: %AppData%\Roaming\Apple Computer\MobileSync\Backup

  • When I turn on messages, I can't see my messages.  All I can see is a screen with horizontal lines and a text list of addresses.  How can I get the regular message screen back?

    When I turn on Messages, I can't see my messages.  All I can see is a screen with horizontal lines.  How can I get the regular Messages screen back?

    The same is happening for me. Today I decided to reboot my PC because it was acting up a bit, go figure, and then for some reason at the same time the PC was restarting my macbook froze. I had to do a reboot with the restart button but then all that came up was a gray background and in the middle of the screen was a darker gray folder with a white question mark in the middle of it, blinking. I can't imagine why the restart would've affected my macbook. After finding information on how to fix this, I tried all of the steps that were given about using the mac OS X disk to use the first aid utility to fix it. When using the Disk Utility option whenever I select my hardrive and am in the First Aid tab, the only button I can use is the Verify Disk Permissions. The other three buttons, and namely the most important Repair Disk button, is/are not selectable (grayed out). I then tried resetting the PRAM the way they also said with the command + option + P + R and waited for the second startup sound. After that I gave the Disk Utility a second try, but still nothing. And now if I try to just reinstall the OS completely I can't even select a destination volume on the third step (Select Destination). Apparently this means i'm SOL.

  • In Jsp TagLib how can I get the Attribute value (like JavaBean) in jsp

    Dear Friends,
    TagLib how can I get the Attribute value (like JavaBean) in jsp .
    I do this thing.
    public void setPageContext(PageContext p) {
              pc = p;
    pc.setAttribute("id", new String("1") );
              pc.setAttribute("first_name",new String("Siddharth")); //,pc.SESSION_SCOPE);
              pc.setAttribute("last_name", new String("singh"));
    but in Jsp
    <td>
    <%=pageContext.getAttribute("first_name"); %>
    cause null is returing.
    Pls HELP me
    with regards
    Siddharth Singh

    First, there is no need to pass in the page context to the tag. It already is present. How you get to it depends on what type of tag:
    Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html]SimpleTagSupport
    public class MyTag extends SimpleTagSupport
      public void doTag()
        PageContext pc = (PageContext)getJspContext();
        pc.setAttribute("first_name", "Siddharth");
        pc.setAttribute("last_name", "Singh");
        pc.setAttribute("id", "1");
    }Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/TagSupport.html]TagSupport or it's subclass [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/BodyTagSupport.html]BodyTagSupport the page context is aleady declared as an implicit object:
    public class MyTag extends TagSupport
      public void doStartTag()
        pageContext.setAttribute("first_name", "Siddharth");
        pageContext.setAttribute("last_name", "Singh");
        pageContext.setAttribute("id", "1");
    }In each case, this sort of thing should work:
    <mytags:MyTag />
    <%= pageContext.getAttribute("first_name") %>I

  • How can I view the text messages sent and received from my phone?how can I view the past text messages sent to my phone

    How can I view the text messages sent and received on one of the other phones on my plan?

    You would have to view them on the other phone.

  • How can we view the error message numbers in the web ui?

    Dear all,
    How can we view the error message numbers in the web ui? It gives the error but no number.  It is possible to debug in web UI so how can we accomplish this?
    Thanks,
    FK

    Hi  Fakhan,
    You can absolutely do that.
    Check the class: CL_BSP_MESSAGES
    Also if you want to find out the exact Message Class and Message Number, go to table T100, type text in field TEXT, you will get Message Class and Message number in fields ARBGB and MSGNR respectively.
    I hope this helps.
    THanks
    Vishal

  • How Best to Manage the Media Cache?

    Hi. I use a Mac Pro and have a 24TB RAID which holds most of my media. My problem is how best to manage the Media Cache which gets very big, certainly to hold on my OS drive (as recommended) . I could store it in a separate "cache" folder on my RAID but will this effect performance? Or is it best to save it with its media? I would rather not trash the Cache files as I often need to draw upon older projects and it's media for current projects. I think this is the weakest part for FCP editors switching to Premiere.

    Ideally you should have five internal 'drives':
    OS/Programs
    Projects
    Cache/Scratch
    Media
    Exports
    You've got the OS and Media drives worked out, now get those other three in place.

  • How do I manage the "open in" menu?

    How do I manage the "open in" menu?
    I know it's limited to 10 apps.

    You really can't manage it. Thre is no feature or settings that allows you to manage it. As you use Open In on the iPad, the compatible apps for that file type will appear in the Open In menu. The more that you choose a certain app for the file type, the faster it will move up to the top of the list - IIRC.
    Other than that, there is no way to control it or remove or add apps in the Open In menu.

Maybe you are looking for

  • Error in scheduling parameters for production orders

    Hi Guys, Greeting for the day u2026u2026u2026. I am trying to create production orders creation for own order  type ex MM01, but I am getting error message as u201C scheduling parameters are not defined for the order type u201C even though I have mai

  • Purchase order print out before release of p.o.

    Dear Experts, At present the process is as follows. Client prepares a purchase order. The purchase order is then released by 4 authorities. Clients requirement is that after release of P.O. if any modifications has to be done then system should not a

  • Breaking up the weblogs into different categories

    It will be really nice to break up the weblogs into different categories based on technical areas(kind of like forum but not that many categories). There could be one category where all the general discussion weblog could be posted. I think this will

  • 62HM84 HDMI port failure?

    On my 62HM84, the HDMI port has stopped working after about six years.  It's not the cable, as I've tested that.  When connected to my Comcast receiver, if I change the input to HDMI I get a picture for about three seconds and then the screen goes bl

  • Position to inherit company code and cost centre from Org Unit

    Hi Team, I have entered the company code and controlling area in my root Org. Unit.  All the sub-ordinate org units that I've created have inherited this company code and controlling area, however none of the positions I've created have inherited the