Send async message

Hi all,
in my application the user can start a long running job (one or more SQL query) which is executed in a separated thread. I'd like to notify to the user the end of the job (if he is still logged in), but I don't know how.
CAn somebody help me ?
Thanks a lot.
Flavio

flavio.easy wrote:
my project is not currently ajaxized so there isn't a way with standard objects ?You can also use a meta refresh header so that the page refreshes itself at certain intervals, but that is not very good for the user experience.
Anyway, thinking of introducing ajax, which objects is better to use ?Objects? You mean component libraries? I would suggest RichFaces/Ajax4jsf.

Similar Messages

  • Send async message between bpm processes takes long time

    Hi all,
    We use XI 3.0 SP16.
    We have 2 BPM Processes.
    One of these Processes sends an asynchronous message, which is directed
    to the other (by the receiver determination defined in the directory).
    In SXMB_MONI, we see that the "End Time" of the asynchronous send step
    is about 3 seconds after the "Start Time".
    Furthermore, when the first process sends this message to several other
    processes, this time is longer, and gets up to 10 seconds for the
    last "send" step in SXMB_MONI.
    What can be the cause for this?
    How can we minimize this time?
    Thanks ahead for any help,
    Yoav.

    Hi Sravya,
    Thanks for your answer.
    The main process is similar to the Multicast pattern.
    The other process(es) is an Async/Sync Bridge.
    We use A/S Bridge for every receiver so that we can first send all requests asynchronously,
    and only then handle responses as they arrive.
    (Otherwise, a request is sent only after the former response arrives).
    However, paradoxically, using A/S bridge makes the whole process take longer (for few receivers) due to the problem described.
    Yoav.

  • Error while sending the messages to JMS Queue

    Hi ,
    I am trying to pick the file from JMS Queue and send the response xml as outbound message to JMS Queue again using XAI Sender
    I Created XAI Sender, Outbound Message Type(DM-RCVRESP) and configured these two with External System.
    I am able to pick the file from JMS Queue but unable to send the message through XAI Sender (Real-time)
    Plz find below the error trace getting.
    [Wed Jun 15 16:12:09 IST 2011] Error while processing sender "UPLOADSTG" : Unable to update response in staging table: Row id not given.
    com.splwg.mpl.sending.SameThreadSendingManager$ProcessException
         at com.splwg.mpl.sending.SameThreadSendingManager.processDestination(SameThreadSendingManager.java:341)
         at com.splwg.mpl.sending.SameThreadSendingManager.sendResponse(SameThreadSendingManager.java:293)
         at com.splwg.mpl.sending.SameThreadSendingManager.doSend(SameThreadSendingManager.java:249)
         at com.splwg.mpl.server.async.ExecSendRequestProcessor.ProcessRequest(ExecSendRequestProcessor.java:61)
         at com.splwg.mpl.server.async.RequestProcessingThreadAdapter.run(RequestProcessingThreadAdapter.java:46)
         at com.splwg.mpl.server.PooledThread.run(PooledThread.java:91)
         at java.lang.Thread.run(Thread.java:662)
    Please guide me in this regard..
    Thanks,
    sukumar

    What have you configured for the response tab for the sender? Are you using the MPL or the MDB?
    Take a look at:
    MPL Best Practices (Doc Id 1308165.1)
    Oracle WebLogic JMS Integration (Doc Id: 1308181.1)

  • ABAP Program to send HTTP message

    Hi All,
    I tried executing the program in "[ABAP-Based HTTP Client for Messages to SAP XI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ae388f45-0901-0010-0f99-a76d785e3ccc]" Article to send HTTP messages to XI system.
    Entered all required parameters and entered XMl Payload with the option "Insert Payload as Text"
    The scenario in XI has Integration Process and the first step is a Sync-Async step.
    The message execution fails in that step with status "Pipeline Timeout"
    I can see only half of the xml payload in sxmb_moni.
    There are no short dumps and the Integration Process is working fine when I send messages using HTTP client.
    Let me know if there are any checks for tracing the problem.
    Thanks,
    Uma

    Hi,
    I have gone thru this blog but I want send SMS to US Mobile no.I checked other webservice but it supports only few cellular networks in US.
    any other alternate for this...
    anyway thanks for your reply
    Regards,
    Nivas

  • Why is latency for sync messages more than async messages in PI?

    Hi All,
    Is it normal thing for Sync messages to have more latency time than async messages in PI. if yes then what is the reason behind it?
    Also whats the appropriate latency time in PI?
    Thanks

    Hi XIer,
    synchronous message sender need to wait for a response. They cant wait for an eternity, so there must be a timeout, usually 3 minutes or something.
    asynchronous message sender do not care (techniquely) about any reaction, the program can go on after sending. Therefore any timeout makes no sense.
    Regards,
    Udo

  • Session Bean trying to send a message to Websphere MQ5.3

    Hello all,
    I use WSAD5.1 and Websphere MQ 5.3. Websphere MQ is installed on a
    Solaris box with a Queue Manager configured and several queues created on it.
    The WSAD, is running on a different machine. I have written a session bean with a method, putMessage( ).
    Inside this putMessage( ), I'm supposed to send a message to one of the
    queues configured in Websphere MQ running on the solaris box. How should I code in my putMessage( ) method, so that I'm able to send a message to the queue.
    My major doubt is I need to look up for the QueueConnectionFactory and also the queue inside the session bean. I doubt if this is possible using JNDI.
    I'm coding as per EJB2.0 specs.
    Can someone guide me what is the right approach so that I'm able to send a message from sessionbean to a queue.
    If someone could point to some kind of example code, that would be great.
    P.S. I know, how to code if I create the queue and QueueConnectionFactory, in WSAD, i.e., in the Server configuration.
    But what I don't know is, how to code if I'm using MQ Series running
    elsewhere.
    Thanks in advance,
    Pandit.
    Please get back to me if you need any clarifications.

    try this : (you need some mq libraries (search for ma88 in google ( MQSeries classes for Java and MQSeries classes for Java))
    import com.ibm.mq.*; // Include the WebSphere MQ classes for Java package
    public class SendMessageToMQ
    private String qManager = "AIXD004"; // define name of queue // manager to connect to.
    private MQQueueManager qMgr; // define a queue manager
    // object
    public static void main(String args[]) {
    new SendMessageToMQ();
    public SendMessageToMQ() {
        // Set up WebSphere MQ environment
    MQEnvironment.hostname = "192.168.19.41";
    MQEnvironment.port=1415;
    // hostname & channel
    //MQEnvironment.channel = "S_ibcn_c029"; // string directly here!
    //MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY,MQC.TRANSPORT_MQSERIES);//Connection
    MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
    MQEnvironment.channel = "SYSTEM.DEF.SVRCONN";
       try {
          // Create a connection to the queue manager
          qMgr = new MQQueueManager(qManager);
          // Set up the options on the queue we wish to open...
          // Note. All WebSphere MQ Options are prefixed with MQC in Java.
          int openOptions = MQC.MQOO_INPUT_AS_Q_DEF |
          MQC.MQOO_OUTPUT ;
          // Now specify the queue that we wish to open,
          // and the open options...
          MQQueue system_default_local_queue =
          //qMgr.accessQueue("ENTEST1.HOST.ASYNC.RECEPCION",
          qMgr.accessQueue("QNO.0002.AIXD004.L",
          openOptions);
          // Define a simple WebSphere MQ message, and write some text in UTF format..
          MQMessage hello_world = new MQMessage();
          hello_world.writeUTF("Hello World!");
          // specify the message options...
          MQPutMessageOptions pmo = new MQPutMessageOptions(); // accept the // defaults,
          // same as MQPMO_DEFAULT
          // put the message on the queue
          system_default_local_queue.put(hello_world,pmo);
          // get the message back again...
          // First define a WebSphere MQ message buffer to receive the message into..
          MQMessage retrievedMessage = new MQMessage();
          // Set the get message options...
          MQGetMessageOptions gmo = new MQGetMessageOptions(); // accept the defaults
          // same as MQGMO_DEFAULT
          // get the message off the queue...
          system_default_local_queue.get(retrievedMessage, gmo);
          // And prove we have the message by displaying the UTF message text
          //String msgText = retrievedMessage.readUTF();
          String msgText = retrievedMessage.readUTF();
          System.out.println("The message is: " + msgText);
          // Close the queue...
          system_default_local_queue.close();
          // Disconnect from the queue manager
          qMgr.disconnect();
      // If an error has occurred in the above, try to identify what went wrong
      // Was it a WebSphere MQ error?
      catch (MQException ex)
      System.out.println("A WebSphere MQ error occurred : Completion code " +
      ex.completionCode + " Reason code " + ex.reasonCode);
      // Was it a Java buffer space error?
      catch (java.io.IOException ex)
      System.out.println("An error occurred whilst writing to the message buffer: " + ex);
    } // end of sample

  • Obtaining the WSDL and sending a message (like Web Services)

    Hi All,
    Is it possible to use a service interface defined in XI as any other web service? Consider the following scenario.
    1. Create an async service interface (outbound) in XI (This has a message mapping and the message goes to some inbound interface). 
    2. Can we write an external application (a Java swing client or something) which can send a message to this service interface?
    3. While writing a normal web services client we specify the url of the WSDL and then send a SOAP message using some APIs.
    4. Can this be achieved in XI? If so could you provide me some links or blogs etc to have some idea about this. Also how do we specify the URL of the interface.
    5. I have seen a similar application (an HTML file) which takes the XML payload (conforming to the message type of the interface) and sends the message to the interface. In this case the URL is formed from sender namespace, server name, port etc. The name of this HTML is XIHttp_adapter.html.
    6. Can somebody give me more inputs in this direction?
    Many Thanks,
    Sandeep

    Hi Sandeep,
    The Info below should surely help you find an answer.
    If you're on WAS 6.20 and up, you can expose an RFC as a webservice directly from WAS.
    Or if you’re on Basis layer 4.6D, you'll need to use XI (or some other integration tool) to expose the RFC as a webservice.
    To do this in XI you'll need to:
    Integration Repository
    1) Import the RFC
    2) Define a message and datatype for the SOAP interface
    3) Create inbound and outbound interfaces
    4) Create maps between the RFC and SOAP messages
    5) Create an interface map
    Integration Directory
    1) Create an RFC Receiver Channel
    2) Create a SOAP Sender Channel
    3) Generate the WSDL (Tools->Define Web Service)
    You can then handoff the WSDL and a login username and password to your developer and they will have everything they need to make the WS call.
    Here are answers to a few doubts u might have:
    1) Do I need to actually create a WS that calls the RFC ? Isn’t the virtual interface exposed by the XI sufficient?
    Yes, you need to create a WS in XI that calls the RFC.
    2) If I really have to create the WS and deploy it in order to expose it with the XI, then what is my benefit of exposing it with the XI, why not just exposing it as a normal WS ?
    You don't have WAS 6.20 or up. Even if you did, you may still want to expose it using XI in order to have all of your integration go through the same application.
    3) If I expose my web service through the XI, how does the client application executes one of its methods? To which url does it have to access (the XI or the actual WS)?
    You expose a SOAP interface in XI by generating a WSDL file. This file contains all of the information a developer will need to call the webservice including the URL.
    You actually specify the URL when you generate the WSDL. Be sure to read the documentation to get the correct format because the URL that the wizard suggests isn't correct.
    Also check this Pdf for the Receiever SOAP Adapter configuration:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/40728f7b-0401-0010-d9bc-8c73884a3789
    Also the target URL must be the URL to the WSDL. So, if you try putting it in your browser you must see the wsdl code.Please do ensure the same.....
    I hope this helps.
    Regards,
    Abhy

  • I cannot open iCal because of a problem. Can anybody help me? The computer will not allow it to open and sends a message to apple each time. The icon has gone from the dock, but ical works on my iPad and I am afraid to sync it with my computer.?

    I cannot open iCal because of a problem. Can anybody help me? The computer will not allow it to open and sends a message to apple each time. The icon has gone from the dock, but ical works on my iPad and I am afraid to sync it with my computer in case it wipes everything .

    I have the exact same problem. I have not changed anything. This is probably a bug or something that has gone bad with Mac OS X (10.7.2). I have not found any solution for this on the web.
    MacBook Pro, Mac OS X (10.7.2).

  • I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up und one account.

    I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up under one account.

    You can have a different receiving email in the Messages app on each device : Settings > Messages > Receive At . I'm not sure that there is a different way to have the message only go to one device.

  • Cannot send email via AOL on iPad2 - "A copy has been placed in your Outbox. Sending the message content to the server failed."

    My CEO has an ipad2 and I set it up w/ AOL.  She cannot send any email via her AOL account from her iPad.  She gets a message that says "A copy has been placed in your Outbox. Sending the message content to the server failed."   We've tried it on wifi and on 3G (Verizon version).  I've removed the account and added it, I've tried setting it up as an IMAP account vs. using Apples standard AOL mail setting and nothing seems to work.  The SMTP settings are smtp.aol.com, port 587.  I've tried adding an alternate server/smtp, but I haven't been able to find anything that works.  Any advice or other people having this issue?  It works fine sending an email from her aol web mail.  And unfortunately, having her sign up for a gmail account is not an option.  Thanks

    Interesting.  Firstly I have been on AOL since the early 90s with no current intention to switch as my primary personal email account.
    I have two email accounts on my iphone - AOL and my email from my business website.  I deleted both and then recreated first the business account and then the AOL account.  Same error.  Then I wasn't sure what you suggested but I turned off the AOL SMTP server and selected the business email SMTP server by turning it on with the same result.  I still get the error "A Copy has been placed in your Outbox.  Sending the mssage content to the server failed."
    Perhaps this problem will get fixed by IOS 6.   AOL will not talk to me unless I pay and Apple says its not their problem.  So for the time being I use the AOL web interface in the iPhone's Safari to send emails from the phone.

  • I have changed from an iPhone to a Sony but when my wife send a message on her IPhone it still gets sent as a iMessage how do I change the settings

    I have changed from an iPhone to a Sony but when my wife send a message it still gets sent as an iMessage how do I change the settings

    Hello, Vespa Boy125. 
    Thank you for visiting Apple Support Communities. 
    Here are the steps that you will need to process on your line to remove your number from iMessage. 
    iOS: Deactivating iMessage
    http://support.apple.com/kb/ts5185
    Cheers,
    Jason H. 

  • TS3899 Tried all the tips on line. Every time I try to send an e-mail, it gives me this message, "A copy has been placed in your Outbox. Sending the message content to the server failed" Any help in how to resolve would be appreciated

    I went through all the steps to try to resolve getting the message in a box every time i try to send an e-mail. What next ?
    Message is " A copy has been placed in your
                        Outbox. Sending the message content to the server failed."
    Any assistance would be greatly appreciated. My internet works fine as I can send e-mails from my Yahoo account on my MAC no problem.
    Address is fine etc.

    How long has it been going on? I've had my yahoo mess up and if i wait a bit it resolves itself. Yahoo is doing something with their servers and it messes with your mail if your mail happens to be on one of those servers.

  • What is difference between I-mesage and Text Message, some I want to send I message and but I send text and it's charge to me

    What is difference between I-mesage and Text Message, some timeI want to send I-message and but I send text and it's charge to me.

    Thanks Wj,
    another question, how I got to know, my I-message is activated, I put as ON, but I am not getting mesage it's activated, there is link showing to me, learn more abount I-message. do it will take time? please advise how I can activate my I-message. Please advise.

  • HT1296 When I send a message on MESSAGES using my iPad2, they do not show up on my iPhone or my MacBook Mountain Lion messages. Did I miss a setting on any of the devices as I thought iCloud took care of syncing all of my devices

    When I send a message on MESSAGES using my iPad2, they do not show up on my iPhone or my MacBook Mountain Lion messages. Did I miss a setting on any of the devices as I thought iCloud took care of syncing all of my devices

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    http://www.macobserver.com/tmo/article/messages_why_your_chats_dont_show_across_ cross-device/

  • Can't send text messages (can only recieve). How do I change Service Center Number

    Hello. As my subject states, i can't seem to send text messages (but i can receive them). I'm told by my carrier that i need to change my service center number (and they provided it). I've been looking all over the phone for this option, and can't seem to find it. I keep seeing posts saying "On your device: Options > SMS > Service Center." but "service center" does not appear when i go to options>SMS text. I see the following; screen options conversation style: show names: message options priority: callback number: disable autotext: so my question is;, where do i find this?

    ayall wrote:
    firstly - if i'm posting in the "BlackBerry 9500 Series Smartphone" setion,
    I have a bit more than 30 messages on this forum, and my experience says that many people do not post in the board that matches their device. So it's a good idea to make sure.
    ayall wrote:
    you can see under avatar it cleraly says "My Device: BB Storm 9530"
    you did publish it in your "private information" part in your profile. But you have to configure your profile to allow people to view your private information. Here is a screenshot of what I see :
    please listen to people when they are trying to help you.
    A bit of politeness does not cost much either.
    That being said, we will nevertheless try to help you.
    Please state your OS version (4 numbers seperated by fullstops).
    When you go to home screen >> options >> sms,  please write down here all what is written in this page.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

Maybe you are looking for

  • I can no longer open multiple pages by clicking on my safari in my dock.  What do I do?

    Just recently I have not been able to open more than one page using my safari buttom on my dock.  It used to have a "open new window' selection when I double clicked on the safari app.  Now it is gone.  Can someone help me fix this? thank you

  • Aperture 3.4 plug-ins give Editing Error..

    I updated Aperture to 3.4 and as before sharing my iPhoto library. When I try and use any plug-ins like dfine or others I get the following error. Editing Error. One or more of the selected versions has a original files which is still being imported.

  • M2v files suddenly have blank icon and open droplet app

    Hi everybody Suddenly all my m2v files have lost their quicktime icon. When I double click on them, they open an application called droplet which I've never seen before and do not know what it's for. Yet, if I drag the files to the quicktime (pro) ic

  • Cannot open a db file larger than 2GB

    Hello, I have an Oracle Express Edition 10g running on Redhat Enterprise Linux 4 server. I have an Oracle database file which is 2.1 GB in size. I am not able to open this file using the application or the Oracle sql developer. The error message that

  • Portege R700 - original recovery image re-installation failed

    Hello I have a Toshiba Portege R700 for years. As i already have some trouble, i did a reinstallation few years ago, from recovery partition. Directly. But, few days ago, i had some issues with my portege. HDD seems to be broken as it make some noise