How to handle failure when sending messages to remote queues from OAS10.1.3

Hi,
Here is my problem. IN my project, I have a MDB which is looking for message in a queue and once a message arrived, it supposed to send the message to remote queues.
Assume that there are 3 remote queues, and my mdb is trying to send the message to all the 3 remote queues,
1) My problem is, If one of the remote queue is not reachable or down, then the MDB should be able to resend it several times until it reaches the failed remote queue.
2) At the same time, I dont want to resend the messages(duplicate) to the queues which are successful ones.
Please suggest me some solution for this in JMS.
My MDB deployed at 10.1.3 and assume that remote queue can be in either another 10.1.3 or WAS 6.0(Optional).
Thanks and regards,
SS.

Hi,
1) My problem is, If one of the remote queue is not reachable or down, then the MDB should be able to resend it several times until it reaches the failed remote queue.
Not very sure what is your question, depending on if you want to resend the message if one of three queues is down.
If the message has to arrive to a certain destination while mdb received it, you may try to reconnnect and resend the message in a couple of times. Perhaps you need a couter or timeout to limit the number of time to retry or the period to retry.
Is that what you are asking.
2) At the same time, I dont want to resend the messages(duplicate) to the queues which are successful ones.
While sending message to a queue, those implementation is within the exception try/catch block, so any resend failure (JMSException) will fall into the catch block I guess. And we can probably use that exception to determine if the message is able to send to remote queue, if not, keep resending util it is over the limit of retries. For example:
onMessage(Message){
resend(message, counter);
public void resend(message, counter) {
try{
if (counter <= retryLimit){
.... // do the reconnect or/and resend operation
}catch(exception e){
resend(message, counter++);
If the above is not what you are asking, please clarify a bit.
Rocky

Similar Messages

  • JMSOrderException when sending message on distibuted queue

    My environment is an enterprise application deployed on a cluster composed by 3 server.
              All jms queue are distibuted on cluster using load balancing policy (Round-Robin or Random) so all messages sent are distributed equally on Servers...
              When I want to process messages that require a serialization dispatching I use Unit of order like:
              ((WLMessageProducer)(sender)).setUnitOfOrder(unitOfOrder);
              This ensures that message will dispatched only by one server of the cluster so the serialization is guarantee!
              But if one of the 3 server is down (it may be possible on cluster environment) sending message using unit of order rise this exception: weblogic.jms.extensions.JMSOrderException
              For example, if Server 3 is down the message exception is:
              weblogic.jms.extensions.JMSOrderException: hashed member of {EARName}!{JMSName}!{queueName} is {EARName}!{JMSName}!{JMSserverName}3@{queueName} which is not available
              If I use a Random load balancing policy is possible that the hashed member result is a started server, in this case if I'm lucky it works! But It must to work allways!
              I will appreciate every advice!
              Thanks!

    Hi Tom,
              in fact I tried to change the unit-of-order-routing to 'PathService' for the concerned queue.
              I created before a PathService targetting it to a PersistentStore and to a migratable Server like descibed in documentation...
              Now no exception is raised and I've noted that all message will dispatched by JmsServer targeted by PathService created before...
              Now I think that if this Server go down, having the PathService's target is a migratableServer, all the messages will switched automatically to another server.. isn'it ??
              Sincerely I'm never tested how the migration works, I tried to migrate a Server manually and it works but I'd like to view an automatic migration from a Server to another when it goes down.
              Any suggestion Tom ?
              thanks a lot!
              bye!

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

  • When send message it's says " messagae send failure" but message already send.why?

    when send message it's says " message send failure" but message alredy send.why?

    Go through the troubleshooting steps under "If you see 'Waiting for Activation'..." in this article: http://support.apple.com/kb/ts4268.

  • Test message from RWB: Error when sending message: 401 Unauthorized

    Hi Experts,
    While I am sending test message from RWB, I am getting following error:
    Error when sending message: 401 Unauthorized
    I am using correct userid/password as I am working with Repository/directory. Also in one of the test scenario files are picking up from folder but never got processed because of similar issue (HTTP_RESPONSE_CODE_NOT_OK) and SERVICE NOT AVAILABLE.
    I am having SAP_ALL authorizations and few days back everything was fine.
    I think something wrong with configuration in XI but I am unable to pin point.
    Please help.
    Regards,
    Gourav

    Yes,
    but
    Role of Business System : Integration system
    Corresponding Integ. Server : http://<XI server>:<http port>/sap/xi/engine?type=entry
    How can I change it to Application system
    and RUNTIME->IS_URL = http://<XI server>:<http port>/sap/xi/engine?type=entry
    Regards,
    Gourav

  • Error when sending message: Method not implemented

    Hi, All:
    We have newly setup system and when we test sending test message from RWB, (RWB-Component Monitoring-Integration Engine-Test Tab), we got following error:
    "Error when sending message: Method not implemented", I know this is related to post configuration issue, I just know someone has come cross the situation and how it was resolved.
    Thanks
    Liang

    HI Liang
    Yes it looks like post installation problem. I have not come across this but i think you should check with the RFC created for IE while installation. To connect IE & AE and even the exchange profile if something is missing
    Thanks
    Gaurav

  • [svn:bz-trunk] 21494: bug fix BLZ-581 Possible deadlock situation when sending message

    Revision: 21494
    Revision: 21494
    Author:   [email protected]
    Date:     2011-06-29 11:25:54 -0700 (Wed, 29 Jun 2011)
    Log Message:
    bug fix BLZ-581 Possible deadlock situation when sending message
    change the scope of lock EndpointPushNotifier.pushNeeded to be minimal (retrieving the messages from the message buffer), that way, we can avoid the connection write failure to occupy the lock forever.
    Checkintests pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-581
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java

    Adobe has donated BlazeDS to the Apache Flex community, and the source code is hosted on the Apache Flex website in a GIT repository.
    http://flex.apache.org/dev-sourcecode.html

  • [svn:bz-trunk] 21209: bug fix BLZ-581 Possible deadlock situation when sending message

    Revision: 21209
    Revision: 21209
    Author:   [email protected]
    Date:     2011-05-04 18:26:18 -0700 (Wed, 04 May 2011)
    Log Message:
    bug fix BLZ-581 Possible deadlock situation when sending message
    change the scope of lock EndpointPushNotifier.pushNeeded to be minimal (retrieving the messages from the message buffer), that way, we can avoid the connection write failure to occupy the lock forever.
    Checkintests pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-581
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java

    Adobe has donated BlazeDS to the Apache Flex community, and the source code is hosted on the Apache Flex website in a GIT repository.
    http://flex.apache.org/dev-sourcecode.html

  • When sending messages from my iPad its says cannot send message retry

    my iPad is saying error retry when sending messages over to my friends

    A few more details would really be helpful. Describe how this all comes about.

  • Error when sending message(e-mail) from Process Chain ?

    Hello SDN s,
    How ya all ?
    I scheduled a Process Chain with Message option to send it to (U - INternet Address) email ID but it says some error in sending message. What could be the reason ?
    The following is the Job Log Entries....
    30.06.2006 18:05:53 Job started                                                                          00        516         S    
    30.06.2006 18:05:53 Step 001 started (program RSPROCESS, variant &0000000000261, user ID ALEREMOTE)     00        550         S    
    30.06.2006 18:05:54 Hierarchy/attribute change successfully carried out                                RSM        794         I    
    30.06.2006 18:06:00 Document <PV FOR GETTING MESSAGE THROUGH E-MAIL - SUCCE> could not be sent          SO        654         S    
    30.06.2006 18:06:00 Error when sending message                                                        RSRA2        11         S    
    30.06.2006 18:06:01 Job finished                                                                        00        517         S    
    Thanks !!!
    Best Regards....
    Sankar Kumar
    +91 98403 47141

    Hey yes, in that T.Code all the values are 0. What to do to activate that ????????????
                                                                         Duration   Duration 
                             Completed  Error      In transit Waiting    In transit Waiting  
                                                                             hh:mm      hh:mm                                                                               
    B08(100)                        0          0          0          0                                                                               
    FAX Telefax              0          0          0          0       0:00       0:00
         5  INT Internet             0          0          0          0       0:00       0:00                                                                               
    SMTP              0          0          0                  0:00       0:00                                                                               
    X40 X.400                0          0          0          0       0:00       0:00
            RML R/Mail or            0          0          0          0       0:00       0:00
            PAG                      0          0          0          0       0:00       0:00
            PRT                      0          0          0          0       0:00       0:00
    So, how to solve this issue ? how to send e-mails ? what configuration or settings to be done ?
    could u give the steps to do that ? as i am the only one BW guy here !?
    Thanks !!!
    Best Regards....
    Sankar

  • Error when sending message: 500 Internal Server Error

    Hi
    IE is not accepting any messages,
    when I try to send the messgae to the IE ( using RWB) i am getting the below error " Error when sending message: 500 Internal Server Error".
    following things what i have noticed.
    1. Pipleline URL is fine, both in the BS of XI and in the RFC destnation which i am maintaing on the  IE admin) URL is  "http://<host>:8000/sap/xi/engine?type=entry"
    2. SICF all the XI serivess are up and running, i am able to test these service.
    3. The http port is active ( SMICM )
    Pls note the error is  500 Internal Server Error  
    regards
    Nisar

    I think in a simple term 500 can be said as "the request cannot be processed curretnly", these options mentieoned by you are not applicable in my case.
    This generally occurs due to load problem or if you are on an SP less than 12 or even if there is an administration problem---I am on PI7.0 , what are the administration problem you are talking about?
    1 Check Table Space is enough. ---i had installed server recently & very few interface running.
    2 Server licence Date or Time. In this case change system date and restart server.---i have recently installed server.
    3 Check the service pack levels on your XI. If it is obsolete upgrade it with latest versio----Can u explain more on this?
    Try restart the java stack(XI Server) and follwing services.
    com.sapii.af.app ---I am not passing trough Adater framework, so i dont think this service will matters....
    com.sapii.cpa.af.app.---CPA cahe is done sucessfully, as i said i am not passsing through adapter framework.
    basically for a simple HTTP post what might cause 500 error if all necessary services are up and running?
    regards
    Nisar

  • Error when sending message: 404 not found

    Hi,
    New to XI, practicing file to jdbc scenario. File is pickedup from the source folder but nothing appearing on the receiver end ms access database.
    In the Component Monitoring, tried sending message manually with all the right info in Integration engine, getting an error message saying:
    "Error when sending message : 404 not found"
    Also tried in Adapter Engine and the result same.
    Before doing this scenario, I tried file - file scenario then also the sender file pickedup from source folder but nothing happend at the receiver end.
    Any idea's?? what might be the issue????
    Thanks,
    Venu.

    Hi Venu,
    "404 is a not found error", plz make a check of  your URL you're using is correct? do you use the right port? Normally the port is 80<SystemNo>, so rather 8001 than 7001.
    Also check in transaction SICF, if the node /sap/xi/adapter_plain has been activated, if not, activate it and try again.
    If you are testing sending the message to the Adapter Engine, then the Send Message URL should be like this:
    http://<server>:<J2EEport>/MessagingSystem/receive/AFW/XI
    For your error, refer to the following threads:
    Unable to find an associated SLD element
    Unable to refresh cache contents in XI.
    Unable to find an associated SLD element
    Also check that the Adapter Engine is successfully registered in the SLD. To do this, call the Content Maintenance function in the SLD as follows:
    http://<sld-host>:<sld-j2ee-port>/sld u2192 Administration u2192 Content Maintenance.
    Select XI Adapter Framework.
    Thirteen associations have to be registered.
    (Source: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2498bf90-0201-0010-4884-83568752a857)
    If you can't find all the associations, then you will have to create the associations manually.
    This is a very good blog which answers ur question:
    check this weblog
    https://weblogs.sdn.sap.com/pub/wlg/4061?page=last&x-showcontent=off [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Vinod.

  • Strange characters when sending messages in Mail 2.1.2

    When sending messages from Mail 2.1.2 , some of the recipients get strange characters when opening my messages
    I use a french keyboard with ponctuations that appears to the recipients as black diamond with ponctuation marks in the middle.
    Is it something from my end?

    Here is some info on the problem. Sending plain text instead of rich text is the easiest thing to try.
    http://homepage.mac.com/thgewecke/woutlook.html

  • Error when sending message: 500 Timeout

    while sendin a message in the http to rfc scenario, im gettin this error message "Error when sending message: 500 Timeout".
    can any1 throw some light on this.

    Hi venu,
    you need to go to RZ10 and there select the profile instance and go with the extended maintance option in the change mode.
    there are two ways you can change it:
    1. check out note: 824554
    TCODE - rz10
    icm/server_port_0 = PROT=HTTP,PORT=8010,TIMEOUT=800,PROCTIMEOUT=800
    (for 800 seconds)
    8010 is my HTTP port so you have to change it:)
    2. SXMB_ADM -> configure integration server -> change specific identifiers
    runtime parameter:
    Parameter HTTP_TIMEOUT
    Meaning
    Specifies the timeout for http connections (time between two data packages at line level). This value overrides the system profile parameter icm/server_port_n (for example, icm/server_port_0 : PROT=HTTP, PORT=50044, TIMEOUT=900). If you do not set the parameter HTTP_TIMEOUT or if you set the parameter to 0, then the setting for the system profile parameter is used.
    Personally I only changed the one from the instance profile but the second one should work too
    My suggestion is change only PROCTIMEOUT to 600 or 900 but dont change TIMEOUT. Imp thing is u need to restart the XI, then onlychanges will take place.
    If these dosent work out go for changing TIMEOUT also. Just set the value for the instance and dont maintain the HTTP_Timeout in the sxmb_adm
    Let me know what u have done , if it works
    Thanks,
    srini

  • RWB:Error when sending message: 404 Not Found

    Dear all,
    "i am getting error:      Error when sending message: 404 Not Found"
    while testing from rwb > Component Monitoring   > Non-Central Adapter Engines >  Adapter Engine AIPID > test message >
    with send message to = http://pid:50000/sap/xi/engine?type=entry - pi server url
    sld buss system > pipeline url http://pid:50000/sap/xi/engine?type=entry (same)
    and my id comm channel > target host > bid.xxx.com with service no
    (adapter type: xi
    adapter engine: Integration server
    address type: url address
    target host: bid
    service no: 8000
    path: /sap/xi/engine?type=entry
    i am working in nw2004s system)
    while testing cache connectivity test from rwb > Component Monitoring 
    i got error:http://docs.google.com/Doc?id=dcdrq9jt_0g6j35p
    green: Integration Repository
    green: Integration Directory
    green: Integration Server - JAVA
    red:Adapter Engine af.axd.aipid
    yello:Integration Server - ABAP
    Adapter Engine af.axd.aipid > Attempt to fetch cache data from Integration Directory failed; cache could not be updated
    [Fetch Data]: Unable to find an associated SLD element (source element: SAP_XIIntegrationServer, [CreationClassName, SAP_XIIntegrationServer, string, Name, is.00.aipid, string], target element type: SAP_BusinessSystem)
    [Data Evaluation]: GlobalError
    though if i try to send message from rwb...> with send message to field with : directly to bi rather than pipeline url through bi than message send successfully but not getting into component monitoring.
    what should i do?
    best regards,
    dushyant.
    refer this forum: is rwb's send message to field = sld>buss system>Pipeline URL?
    and
    SXI_CACHE
    @8O@ Error during last attempt to refresh cache
    LCR_GET_OWN_BUSINESS_SYSTEM - NO_BUSINESS_SYSTEM
    Smq2 = 0
    Sm58 = 0

    Hi,
    If you are testing sending the message to the Adapter Engine, then the Send Message URL should be like this:
    http://<server>:<J2EEport>/MessagingSystem/receive/AFW/XI
    For your error, refer to the following threads:
    Unable to find an associated SLD element
    Unable to refresh cache contents in XI.
    Unable to find an associated SLD element
    Cheers
    Manish

Maybe you are looking for