Programmatically resubmitting a message from backend applications

The 11.1.1.7 documentation for B2B indicates that the Instance Message Java API can be used for resubmitting message from a back-end application, as quoted from the documentation below.
Programmatically Accessing Instance Message Data
Instance Message Java API is a Java API provided in Oracle B2B to retrieve runtime data that is exchanged between Trading Partners.
Some Instance Message Java API use cases include:
Resubmitting from a back-end application
Checking the status for a particular order number
Payload introspection by a back-end application
Checking the remaining retries for the message
Checking the wire message of the payload
This seems to be very desirable feature provided to application developers. However, when I examined the API methods exposed by InstanceMessageUtil and InstanceMessage classes, I could not figure out how to achieve the "resubmitting" function using the API.
The command line tool does have a utility for resubmitting messages. But exactly what class and API methods should we use to implement the use case "
Resubmitting from a back-end application
" cited above?
LXZ

thanks you very for the reply.
But we want to integrate this resubmit capability of B2B with another system, so that we can use that tool to activate resubmit. The InstanceMessageUtil does not expose any API method for resubmitting a message. I guess one could think of manipulating the Java class exposed through the command tool to achieve this purpose as well.
Do you or does anyone have any suggestion how we can programmatically use the command line tool Java class for resubmitting messages?
regards LXZ.

Similar Messages

  • File polling from backend application

    Hi,
    Have a requirement to poll a file from backend application. the file will have the proper naming convention in the listening channel screen (e.g: "toParty_doctype_docRev.xml")
    But not able to identify the from party and to party and hence not able to identify the agreement.
    Please advice..
    Also would like to know if there is any specific separator format, which is underscore.. or can we use any separator.
    Dheeraj

    For this use case, please follow the below,
    1. Make sure to enable "Is Internal" flag for listening channel, this enables B2B treat the arriving message at this endpoint as Outbound message. This we call it as Listening Internal Channel that is intended to receive messages from Back end application.
    2. Please configure the filename format as "%TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.xml. Note: File and its format extension can be anything, here just given "xml" as an example.
    3. B2B uses "_" as separator for the filename format. In future releases, post AS11 PS1 the separator can also be made as an configurable item.
    Thanks,
    Sinkar

  • Send short message from Java application on mobile phone to server; http

    Hello!
    My question is: can I send short message from Java application on mobile phone to server - with the use of SMS (WMA) or http connection?
    I found this topic http://forums.sun.com/thread.jspa?threadID=5405431 about: "how to send data from midlet to servlet using doPost method".
    There is also such topic http://forums.sun.com/thread.jspa?threadID=5408046&tstart=0 about: "CLDC and MIDP - sending SMS to server -> Wireless Messaging API (WMA)".
    Please, kindly help me.
    Code from the topic mentioned above, edited by me so that it can be read easily:
    //http://forums.sun.com/thread.jspa?threadID=5405431
    //CLDC and MIDP - Re: how to send data from midlet to servlet using doPost method
    I want to know how to pass the values .
    for examples : this is what i wrote for doGet
    String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="+loggedInUserId"&svComp="saveCompHex;
    userId and svComp has the data which is very long so i wanted to use doPost.
    Now i dont know how to do it.
    This is what i have done in doGet (midlet)
    public void saveCompanyProfile(String saveComp,int flag,String blankFieldNm)
         System.out.println("flag===" flag);
         if (flag==1)
              displayAlert("Company Profile Edit",blankFieldNm+" field cannot be blank.",AlertType.ERROR, edCmpRecForm, true);
         else
              String saveCompHex = helper.encodeHexString(saveComp);
              // String saveCompHex =saveComp;
              HttpConnection httpConn = null;
              serverSettings setting = new serverSettings();
              System.out.println("saveCompHex===" saveCompHex);
              String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="loggedInUserId"&svComp="saveCompHex;
              System.out.println("url of save company profile:: "+url);
              InputStream is = null;
              OutputStream os = null;
              try {
                   // Open an HTTP Connection object
                   httpConn = (HttpConnection) Connector.open(url);
                   System.out.println("urlMidlet1 save edited company data===::" url.length());
                   // Setup HTTP Request
                   httpConn.setRequestMethod(HttpConnection.POST);
                   httpConn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
                   System.out.println("urlMidlet2===" url);
                   int respCode = httpConn.getResponseCode();
                   System.out.println("respCode edit company profile=====" respCode);
                   if (respCode == httpConn.HTTP_OK)
                        StringBuffer sb = new StringBuffer();
                        os = httpConn.openOutputStream();
                        is = httpConn.openDataInputStream();
                        int chr;
                        while ((chr = is.read()) != -1)
                             sb.append((char) chr);
                        String sResultSvCompanyProfile= sb.toString();
                        System.out.println("+++++++++++++Company sResult+++++++++++++==="sResultSvCompanyProfile);
                        if (resultViewCompanyProfile.trim().equals(""))
                             System.out.println("++++++++++++++If++++++++++++++SaveCompanyProfile===");
                             displayAlert("Login Incorrect","Username and Password incorrect", AlertType.ERROR, mainForm, true);
                        else
                             System.out.println("++++++++++++++Else++++++++++++++SaveCompanyProfile===");
                             //companyProfile();
                             displayAlert1("Information","Company Profile edited successfully", AlertType.INFO, profileMenuScreen, true);
                   else
                        System.out.println("Error in opening HTTP Connection. Error#" respCode);
                        //the line below divided into two lines because it was too long
                        displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                        AlertType.ERROR, mainForm, false);
              catch(IOException e)
                   e.getMessage();
              finally {
                   if(is!= null)
                        try
                             is.close();
                        catch (IOException e)
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                             displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                             AlertType.ERROR, mainForm, false);
                   if(os != null)
                        try
                             os.close();
                        catch (IOException e)
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                             displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                             AlertType.ERROR, mainForm, false);
                   if(httpConn != null)
                        try
                             httpConn.close();
                        catch (IOException e)
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                             displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                             AlertType.ERROR, mainForm, false);
              } //end finally
         } //end else (?)
    } //end savecompany

    hi,
    SMS API(WMA) is an optional package. It is not a MIDP1.0 or MIDP2.0 api's.
    There are phones which has WMA api with MIDP1.0 support .... Nokia 3650
    Seimens has some phone with their own api's to send sms.Check out seimens site for more info
    BTW, What do you mean buy sending SMS to Server????
    If you want to send message to server you can do it with Http.
    HTH
    phani

  • JMS message from one application to the another appl in the same container?

    I have a question.
    Can I send JMS message from one application to the another application in the same container?
    If yes ...can you provide me info.
    I want to know in regards of EJB2.0 and EJB3.0.
    Thanks,
    Rahul

    So the receiver application is a Message Driven Bean, right?
    In your container, do you have a mean to ensure that it is correctly configured to listen the desired destination? Like an administrative console that would show the destinations, the number of pending messages, the number of active consummers...?
    btw what is the destination type? A queue or a topic?

  • On starting up firefox i am getting an error message from javascript application telling me that my username is an invalid username/password combination.If i continue to get this error message,try entering my email address as my username.

    Hi,on starting firefox which i have used solely as my browser for years i am now getting an error message from java script application that shows my username followed by a message saying; 'username'-Invalid username/password combination.If you keep getting this error,try entering your email address as your username'. I then press the OK button within that error message box and it dissapears and everything seems ok although hover my cursor over the mail(envelope) icon and it says not connected.
    I only started having this problem since downloading firefox 4.It also does not tell me where this problem is occuring so i do not know where to log on with this information.I would be most grateful for any help with this matter.Many thanks.

    Take a look in the Error Console for details about that.
    Tools > Error Console <br />
    Right-click the message and use '''Copy''' to get that complete message.

  • Display A Success Message From An Application Process

    Apex 3.2
    I have an on demand application process, which is resetting my application, except application items
    BEGIN
       FOR c IN (SELECT page_id
                   FROM apex_application_pages
                  WHERE application_id = :app_id)
       LOOP
          apex_util.clear_page_cache (c.page_id);
       END LOOP;
    :F270_REFRESH_INTERVAL := null;
    END;
    I have a list item that calls some javascript on page zero
    <script type="text/javascript">
    function resetapp(){
    var answer=confirm("Do you really want to reset the application ?");
    if(answer==true) {
    var get = new htmldb_Get(null, null, 'APPLICATION_PROCESS=RESET_APPLICATION');
    var gReturn = get.get();
    redirect('f?p=&APP_ID.:1:&APP_SESSION.');
    </script>
    The user clicks on the item in the list. A confirmation appear and when they click ok,
    then the on demand process runs and they are directed to page 1.
    This is all working ok.
    My problem is that I would like to display a message (a sucesss message) on page 1.
    I have an unconditional branch on page 1 with the tick box checked for include process message.
    I have tried the following in my application process, but none seem to work.
    apex_application.g_print_success_message := 'Application Has Been Reset';
    htp.prn('Application Has Been Reset');
    HTP.P('Application Has Been Reset');
    How can I do this ?
    Gus

    Can anyone help ?
    Gus

  • Cannot send messages from email application on PlayBook

    The email app on this PlayBook has become unable to send emails from my Hotmail address, even when there is a very strong WiFi signal, & l can connect to the Web with no problem. I just get this message 'there was an interruption sending your message please try again'. I see there were some posts on this a year or two ago, so it seems to be a recurrent problem. Does anyone have any ideas? On an android device I would uninstall & reinstall the application, but I can't see any way to do this on the PlayBook. Thanks. 
    Solved!
    Go to Solution.

    You can delete all your message accounts,  restart pkaybook, tben just add the hotmail account and test it.  Yiu only need address and password,  no fancy settings.
    If that fails and it doesn't resolve itself, it's a security wipe or even debrick. 

  • I am using iPhone 4s, after my update to ios 5.1.1 I'm facing a problem that even though I've read messages from any application like whatsapp, messenger or normal message it still appears on my lock screen. What do I do?

    I am using iPhone 4s And I'm facing a problem that even if I read a message it still appears on my locksreen like I've not read it.
    Please help me out, thanks

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • Error message from Application Server

    Hi All,
    Is it possible to capture a descriptive error message from the Application server when we try to transfer a file from SAP and it does not get written to the application server.
    I know it is possible to catch the standard catchable runtime exceptions, but I also would like to know if the file transfer fails in any other conditions which do not result in runtime dumps, nevertheless I should be able to get the error message.
    Thanks in advance,

    hi,
    it is not possible to find the run time errors in application server while writing the file.using sy-subrc only we can find out. where it is writing correctly like this.
    we can see all the application server files in this Tcode: AL11

  • Can I send email address, message, etc. to TB from another application via DLL

    I have an application written in Omnis Studio version 4.X. It has the ability to act as a email client but only supports simple password authentication. I can get around this on the Mac by using AppleScript to send the contents of the email, to & from addresses, et. from my application to Mail. mail then acts as the mail client and processes the emails.
    I'm looking for a similar solution for my Windows users. Can TB accept a DLL message from another application as a way to pass an email from Omnis to TB?
    Thanks,
    Mike K

    No Mike, whilst it is probably possible considerable development effort would be required.
    Have you looked at the[http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29 command line switches]? perhaps they will do the job for you, but you still need to press the Send button to actually send the message.

  • How to pass a CString from one application to another application using WPARAM/LPARAM in sendmessage fn.

    I have two different application A & B. I am trying to send a message from A to B. In application A , I get the window handle of application B and call postmessage fn to post a message to application B. While posting the message I am trying to send a
    cstring in wparam parameter so that it can be accessed in the message handler.
    Code in Application A:
    void CTestApplnDlg::OnBnClickedOk()
     CString csProcessName = _T("FSAPP.exe");
     CFSProcess objProcess;
     HWND hFSWnd = NULL;
     if(objProcess.GetProcessHandle(csProcessName, hFSWnd))
      CString * csMessage = new CString(_T("This is message from A application."));
      ::PostMessage(hFSWnd, WM_THIRD_PARTY_NOTIFICATION, (WPARAM)csMessage
    , NULL);
    In the other application in the event event handler I try to do the following :
    LRESULT CMainFrame::OnProcessThirdPartyNotification(WPARAM wParam, LPARAM lParam)
     CString* csMessage = (CString*)wParam;
     if(csMessage )
      AfxMessageBox(*csMessage);
     return 0L;
    In the message handler fn, the variable csMessage is pointing to a address but the value is a bad ptr. On accessing the variable like *csMessage it crashes. I have created the variable in heap when the message is posted. So I hope the variable will be in memory.
    Pls help.

    The ultimate problem is that when you place a CString in a wparam like that you are putting an address.  That address only has meaning in the first program.  Your second program cannot access the first programs memory (this is good, otherwise misbehaving
    programs could take down all applications in Windows).  But it does make transferring data between programs more complicated. 
    Some messages like WM_COPYDATA will copy a data buffer from one process to another and are appropriate for what you are trying to do, but a custom message like
    WM_THIRD_PARTY_NOTIFICATION is not one of them.
    By the way your example has a memory leak as well since you would have no way to ever clean up the string you allocate in OnBnClickedOk

  • Suppress a message from

    Hi All!
    Is it possible to suppress a message from Backend on webdynpro appplication?
    bye
    sas

    Hi malyala and the others !
    There are two output messages
    The second line belongs to me.
    ( msgMgr.reportWarning(" xxxxxxxx");     
    The first one in the first line comes from backend. All what I need is
    to suppress the first line .
    reagards
    sas

  • Printer stopped working. Different error messages for each application.

    Hello. Recently I have been unable to print anything from any application and get different error messages from each application. For example:
    Word says "Word cannot print due to a problem with the current printer. Make sure you have a printer selected in Print Canter. You may need to print again or adjust your printer settings."
    Entourage says "An error occurred while printing. Not enough memory."
    Excel says "Microsoft Excel could not communicate with the printer."
    Preview says "Print. Error while printing."
    I have tried installing new drivers, repairing the disk and permissions, and deleting and adding the printer from the System Preferences.
    I am running OS X 14.4.10 on an iMac G4 1.25 GHz PowerPC with 256 MB DDR SDRAM.
    Any ideas? Thanks.

    Try downloading the 10.4.10 Combination Updater from Apple and re-update.
    If that doesn't help try the free trial of Printer Setup Repair from www.fixamac.net.
    If those don't help, reinstall OS X using the Archive & Install option in the installer.

  • Send Text message from adf to mobile device

    Hi All,
    My concern is that I want to send a SMS/text message from adf application to user mobile is there any sample proj / document/example application related to this requirement .pls help
    Thanks
    Edited by: 931029 on Jun 20, 2012 2:17 AM

    The example will not help you
    because the url that we generate we take it from the sms provider ( or the mobile service company )
    so its will not work with you.
    I mean if you want to send sms there is no standard way
    because its depend on the sms provider ( or the mobile service company )
    because every provider have different way>
    So the sms provider must tell you how to generate that URL or what is the a webservice
    that will send the sms.
    Thanks

  • Message from app to WIP 310

    Hi all,
    how - if possible - can i send message from my application to WIP 310 in local area network. App is in C#  (MS WIN) created and i would like to send short text message about job queues to phone .

    Simply extend PreloaderNotification and add fields/methods as you need.
    Then cast to your new type in the handleApplicationNotification().
    See Example 9-11 in the guide: http://docs.oracle.com/javafx/2/deployment/preloaders.htm#BABDDGCD
    It does not define own extension class but handleApplicationNotification() should be ok as a reference i think.

Maybe you are looking for

  • Safari won't create webclips in dashboard

    This was an issue in my previous version of Safari as well, but I'd hoped that updating to 5.0.1 would fix it (it didn't). When trying to create a webclip in dashboard from safari, I select the element, hit add, and *nothing happens*. Dashboard doesn

  • Error message failed "ALIGNMENT" after changing black cart on 7360 no black print.

    I have an issue with black print on my 7360, I installed a new black cartridge, ink level monitor displays full. printed test page no black print and have" failed alignment"  message after running this test. Tried to run clean" print head" same resul

  • File to Mail with report format

    Hi I have a requirement in which I have to send the email to the user and all the information should be present in the email content no attachment. I have to pick the xml file for the FTP location and then send the email to the user in the specific f

  • External Material Group (UNSPC)

    We would like to use the External Material Group field on the Material Master to house our UNSPC Codes.  We would then use the Material Group field to develop and In-house code that is more intuitive for our Buyer's to enter on Purchase Orders to bet

  • Missing Buttons in Site Settings?

    Is anyone else having problems with missing buttons and other interface items in the site setup menu? I've got CS6 for mac via creative cloud. If I hover over where they should be, they appear until I leave the screen. It's not shutting me down, but