Monitor message in adapter engine through java code

Hi all,
I need to write a java code to monitor message using message ID in adapter engine.
Is it possible to write such a code?
If yes, then please provide information regarding to that.

Hi,
Check these threads
Retrieving a message id
Re: How to extract XI-header fields from XI-message in JAVA?
Thanks!

Similar Messages

  • Message in adapter engine

    Hi all,
    We monitor messages in adapter engine through RWB.
    Can anyone tell me where these messages are stored?

    hi,
    it has the misconception that RWB uses the same data base as of sxmb_moni.
    but this is not true. actually RWB has a java componenet and IE is  a abap componenet.
    RWB getting tha data from SXMB_MONI  db(abap table) through the jrfc call and storing it into the XI_AF_MSG table. this can be verified because, when u try to fatch payload for the sych message in RWB ,it is showing payload is deleted to save memory . but the same message with the payload can be displayed at SXMB_MONI .but  for this u need to set the retention period at sxmb_adm---intigration engine configuration.by default value for this is 0 days.please have a look of below link.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/xi%252btables
    the XI_AF_MSG_AUDIT  table stored the detail of all the audit log.thats why the no of entrieds in this table is more than XI_AF_MSG table.
    now Q is how to access these DB.
    these DB can be access through the DB tool say SQLplus.
    to get the total no of entries byststus u can use the fllowing query.
    select status, count(1) as
    current_number from sap[sid]db.xi_af_msg
    group by status;
    regards,
    navneet

  • CPALookupException while sending a Test message to Adapter engine

    Hello Experts,
    I am getting following exception while sending a test message to Adapter engine through Runtime Workbench.
    Error while sending message: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve outbound binding for the given P/S/A values: FP=<Configured Party>;TP=;FS=<Configured Communication component>;TS=;AN=<Configured Outbound Interface>;ANS=<Configured Namespace>
    This scenario works fine when I submits the message through Integration engine. So ID configuration is perfect. Also cache contents are upto date.
    Thanks in advance.
    Regards
    Rajeev

    Error is clearly saying that it is unable to find receiver agreement for that particular interface.
    Please check your receiver agreement for the interface.
    If your receiver agreement is fine then do CPA cache refresh using following URL:-
    http://<host>:<port>/CPACache/refresh?mode=full

  • Automatic restart of Error-Message in Adapter-Engine (Job?)

    Hi,
    we are working on PI 7.11 and facing following problem:
    Often in message-monitoring error-messages are forgotten because of wrong date-selections by the monitorer (not enough days back). It would be very nice, if there is a function witch is repeating error-messages in adapter-engine automaticly and witch can be scheduled.
    Does anybody know something about an excisting program / function on PI?
    Regards
    Jürg

    Hi,
         By default if any failure occurs in adapter engine (in case of receiver,during delivery to target system)
    it will retry 3 times after a period interval of 5 minutes..this is by default even this can be change if needed with the help of the proeprties at NWA/VA...
    but in case of failures at IE level (mappings,...) then you need to schedule the report RSXMB_RESTART_MESSAGES....
    search SDN if like to know more about the reports...
    HTH
    Rajesh

  • Cannot resend messages in adapter engine

    Hi all,
    I encountered thousand messages in adapter engine yesterday with error category: XI_J2EE_ADAPTER_ENGINE, error code: JMS_TRANSMISSION_ERROR.
    First I checked the affected communication channel, and there was an error in MQ side. Also, our database crashed. But these issues were resolved already. Then I tried to resend the messages, but still it ended up in system error. As I looked in the log,
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Connector for ConnectionProfile of channel: JMS_--_Receiveron node: -having object id: - encountered error: MQJMS2007: failed to send message to MQ queue in sending to destination queue:///?targetClient=1, the message message: JMS Message class: jms_text  JMSType:         null  JMSDeliveryMode: 2  JMSExpiration:   0  JMSPriority:     4  JMSMessageID:    null  JMSTimestamp:    1193614619284  JMSCorrelationID:--
    Exception caught by adapter framework: Connector for ConnectionProfile of channel: JMS_----
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Pending message discovered: -
    .The channel is configured throw an recoverable, temporary error for this warning (default). Decide whether you want to bypass this message. If so, set the Pending Handling  channel parameter to 'Bypass' and restart the message afterwards.
    Exception caught by adapter framework: Pending message discovered: -
    .The channel is configured throw an recoverable, temporary error for this warning (default). Decide whether you want to bypass this message. If so, set the Pending Handling  channel parameter to 'Bypass' and restart the message afterwards.
    Every time I tried to resend the message, it ended up in error stated above. But there are successful messages today which means that the communication channel is working fine.
    How can I resend the messages stucked in the adapter engine? Hope someone can help me.
    Thanks a lot in advance.

    May be when u tried to send the message some of the message got stuck in AE due to some Error.
    As I no the message can stuck in AE when....Target Systems is down, Test data is not valid for receiver..then few of the messages goes in System Error and later message come in waiting/Holding/To be Delieverd state...
    Check all the messages that has in System Error status...
    Thanks
    Farooq.

  • How to see old successfully delivered messages in Adapter Engine

    We are unable to see the messages that were successfully delivered  by Adapter Engine more than a day.Ho do we see old successfully delivered messages by Adapter Engine.We are only able to see the messages that were 1 day old.We are using PI 7.1.
    We are able to see the older messages in Integration Engine as per the config  in sxmb_adm.
    Any Help greatly appreciated.
    Thanks,
    Aravind

    Only message that contain error,holding,not delivered are getting persisted not the sucessfully delivered ones.
    Is there any Archiving scheduled for your Adapter Engine?
    I want to see the old messages that were delivered sucessfully
    In Message Monitoring Itself select Archive (instaed of Database) and make a search.....if archiving is scheduled then you should be able to see the messages by this option.
    Regards,
    Abhishek.

  • Change the Summary Attribute Value through Java code

    Hi ,
    I am working on a requirement where I need to set the Attribute value on the final Summary Screen through Java Code.
    Code :
            InterviewUserData data = new InterviewUserData();
            InterviewEntityInstance globalInstance = data.getGlobalInstance();
            globalInstance.setValue("Name", value_to_set);
    On completion of the interview session Name is displaying as NULL.
    I need to set NAME = value_to_set and display it on the final summary screen.
    Any help on this will be appreciated.
    Regards

    The InterviewUserData object is effectively a change set, to apply this to a session you use the InterviewSession.submit(InterviewUserData) method. You don't say how you are invoking this code but if it's inside an event Interview Engine handler the InterviewSession object should be accessible.
    Regards
    Ian

  • Getting problem when connecting to SMTP server through java code

    Hi all,
    I am getting problem when i am going to connect with "Kerio SMTP server" through java code. The error what i am getting is :
    "[16/Sep/2008 15:59:09] Sent: Queue-ID: 48cf8a73-000000f9, Recipient: <[email protected]>, Result: failed, Status: 5.3.2 554 5.0.0 Too many hops (101, max 100), message looping" when sending an email from [email protected]

    Looks like something is set up wrong on your server that's causing messages
    to be forwarded around a loop too many times without ever reaching the destination.
    For instance, if server A forwards to server B, and server B forwards to server A,
    this would happen.

  • Running windows command through java code

    Hello
    i want to execute jar.exe through java code , i have written following piece of code , but it isn't working
    ProcessBuilder processBuilder = new ProcessBuilder(new String[]{"cmd.exe","/c","%java_home%\\bin\\jar.exe"});
              Process process = processBuilder.start();
              BufferedReader inputReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
              String line = inputReader.readLine();
              while(line != null){
                   System.out.println(line);
                   line = inputReader.readLine();
    does anybody knows why
    Regards
    Edited by: Mayur Mitkari on Mar 5, 2013 10:19 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM
    Edited by: Mayur Mitkari on Mar 5, 2013 10:20 PM

    sorry for that , but the
    Runtime runtime = Runtime.getRuntime();
              Process proc = runtime.exec(new String[]{"cmd.exe","/c","jar"});
              proc.waitFor();
    int i = proc.exitValue();
    this code was different from first one
    and in case of Process if runtime .exec is succesful it is wainting for long time , in this case i want if the runtime.exec is succesful something should be returned
    Regards

  • Archiving message in Adapter Engine in XI 3.0

    Dear all,
    Could you please explain the procedure of Archiving Messages in Adapter Engine in XI 3.0.
    I have read many blogs regarding deleting messages in Adapter Engine, but nowhere i can see about Archiving.
    I have been told that activating and scheduling "Default Version Archive Job" in RWB->Components->Adapter Engine->Background Processing would solve the purpose.
    But while activating, i am unale to set rules, as it gives error " Rules are not allowed for jobs with set 'archive edited messages only' flag."
    Thanks and regards

    Hi,
    Please check the [link|http://www.****************/Tutorials/XI/Archiving/Index.htm]
    Also check this
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=147266890
    Regards,
    Naveen.

  • Adding rows to J2ME WTK/Settings/User Defined (through Java code)

    Hi all..
    Just a quick question..
    Is it possible to add Key/Value pairs to a MIDlet's 'User Defined' field through Java code..(ie) - add a new row to the User Defined field..
    If not, can anyone tell me how a Bluetooth-Client GUI can save an image it has been sent by a Bluetooth-Server GUI?
    Thanks in advance..
    Rookie

    if i understand you, you want to call application module method when user clicks on add button on the UI and your table is from VO
    so what i can come up for now is:
    1) create variable binding from the iterator for both name and price.
    2) on your UI action button :
    <af:commandButton actionListener="yourbean.addToCart">
    <f:attribute name="pName" value ="binding.<created name bind variable>"
    <f:attribute name="pPrice" value = "binding.<created price bind variable>"
    </af:commandButton>
    3) custom Managed Bean:
    //yourBean.java
    public void addToCart(ActionEvent e){
    // get binding here
    // use executeWitParams method to send parameter to the function "testMethod" and execute
    //AppModuleImp.java
    public void testMethod(String pName,String pPrice) {
    CardVOImpl vo = this.getCartVO1();
    CardVORowImpl r = (CardVORowImpl)vo.createRow();
    r.setAttribute("NAME", pName);
    r.setAttribute("PRICE", pPrice);
    vo.insertRow(r);
    Hope this helps...
    Let me know if not..
    Thanks
    Edited by: MavenDev on Oct 30, 2011 8:08 PM

  • Hi. about monitor message of integration engine from RWB.

    I  want to monitor message of iintegration engine from RWB.
    but i can not open message content tab page and queue monitor tab page.
    hint is : SSO login failed. need to  logon again.
    which user should i use to logon?
    i tried so many user not to be able to logon successuflly.

    Hi Joy,
       if you want to use the SSO functionality for any component you need to maintain it first....i think u SSO configurtion is not yet done ....and hence you are getting the above error.......
    Pls chk the below link....thsi is for PI 7.1...
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/32/1c1041a0f6f16fe10000000a1550b0/content.htm
    Hope this will help..
    Regds,
    Pinangshuk.

  • How to Increase Java Heap Size through Java Code. Increase inside Code?

    Hi All,
    I am using a third party tool. When i run a particular program it says OutOfMemory error. I like to increase heap size through Java Code before calling the particular Java application or Code..
    Is there is any way to set the Heap Size through Java Code in run time ???
    Pls Kindly help.
    Thanks.

    if you start the program with a -Xmx512m flag, the virtual machine gets half a gigabyte of memory to use (or that's the max it's allowed to use). All things run in the same virtual machine will have the same limit, third party tools run in the same virtual machine can't "not care about this" unless they're throwing OOMs themselves for some stupid reason.

  • How do I trigger an Oracle report through Java Code?

    Hello,
    I am new to reports. Is there any way to trigger a report through java code - I know there is an OS command to trigger a report automatically. Has anybody done this through a high level PL?
    Amit

    We are in a similar situation. If you receive any answers can you forward the same to [email protected]

  • Problem with executing shell script on linux through java code.

    i am facing problem to kill jboss process on linux that is my application requirement. for that i created one shell script that will get all the process for jboss instance and kill them when i am running that script from command prompt on linux its working perfectly.
    The command i am using ---
    /opt/RW9/jboss/v4.0.5.GA/bin/restartjboss.sh.
    but when i am running through java code its not working.
    the java code i am using is:-
    pp = Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", "/opt/RW9/jboss/v4.0.5.GA/bin/restartjboss.sh"});
    could anyone tell me what is the problem ?
    Edited by: akm198110 on Sep 2, 2008 9:24 AM

    I got the problem after long struggle ,after doing proper path i am able to execute the shell script..

Maybe you are looking for

  • Poor performance - portlet timeouts

    I have a Portal instance running Oracle 8.1.7.2.0 and 9iAS 1.0.2.2.1 (Portal 3.0.9.8.2) on a 4 CPU Sun Solaris 2.6 box. Performance is totally unacceptable. Navigation between pages is very slow and the portal consistently has portlet timeout issues.

  • IMP: How to delete the service order

    Hey Experts, Can you tell me how to delete the service order which was created in IW31..? or we have any Functions Module to delete the service order? and one more question is I have more than 100 service order in the table ,but it will display only

  • Multiple Chart Types Question

    I have a chart with 4 data series.  The 1st 3 are column and the 4th is line.  The line is removed on the 4th series to show up as a data point.      The data point for the 4th series shows up as in the middle of the 3 other series so it looks like t

  • Java mapping in ccBPM works in PI 7.0 but fails in PI 7.1

    Hi guys, at the moment we are upgrading form SAP PI 7.0 to SAP PI 7.11. In a scenario for processing of incoming orders we use an ccBPM. In this ccBPM there is an mapping where the original xml document of the order are combined with some additional

  • Missing everything in ''all my files''

    I have a MacBook Air (Mac OS X, version 10.7.5) My memory was completely full on the computer so I started to delete lot of files, such as caches and others that I thought were not important. After I removed them, the folder '' all my files '' is com