Message distribution problem

Hi,
I am doing a simple test. I have total 2 Queue's on 2 different machines(each has 1 queue). Say A and B.
Queue's configs are identical.
I want to distribute 2 messages to queues on A and B by turn. The first one to A and the last one to B.
I wrote the test client code below. But what I get is that, both messages goes to A. B receives no message. (?)
I think I miss something about JMS, I reviewed some JMS resources but I can't managed to find out the problem???
Context jndiContext = null;
               ConnectionFactory connectionFactory = null;
               Connection connection = null;
               Session session = null;
               Queue queue = null;
               MessageProducer messageProducer = null;
               ObjectMessage message = null;
          Hashtable properties = new Hashtable(5);
          properties.put("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
          properties.put("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
          properties.put("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
          properties.put("org.omg.CORBA.ORBInitialHost", "............69");
          properties.put("org.omg.CORBA.ORBInitialPort", "3700");
          try {
               jndiContext = new InitialContext(properties);
               connectionFactory = (ConnectionFactory)jndiContext.lookup("jms/ConnFactory");
               queue = (Queue)jndiContext.lookup("jms/Queue");
               connection = connectionFactory.createConnection();
               session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
               messageProducer = session.createProducer(queue);
               message = session.createObjectMessage();
               message.setObject(new String("sdas"));
               messageProducer.send(message);
               // connection.close();
               //session.close();
               //messageProducer.close();
               //jndiContext.close();
               } catch (Exception e) {
                    e.printStackTrace();
     properties = new Hashtable(5);
          properties.put("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
          properties.put("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
          properties.put("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
          properties.put("org.omg.CORBA.ORBInitialHost", "............115");
          properties.put("org.omg.CORBA.ORBInitialPort", "3700");
          try {
               jndiContext = new InitialContext(properties);
               connectionFactory = (ConnectionFactory)jndiContext.lookup("jms/ConnFactory");
               queue = (Queue)jndiContext.lookup("jms/Queue");
               connection = connectionFactory.createConnection();
               session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
               messageProducer = session.createProducer(queue);
               jndiContext.close();
               message = session.createObjectMessage();
               message.setObject(new String("eeeeeee"));
               messageProducer.send(message);
               } catch (Exception e) {
                    e.printStackTrace();
               }

Hi Nav,
you need to implement Badi BBP_CTR to map the conditions used in SRM with the ones in R/3. Within the Badi there is an example for mapping. Also there are some threads here explaining the mapping. Have alook at Note 646903 - Global outline agreement: Tips and tricks explaining in detail how to implement these BADI's.
Cheers,
Claudia

Similar Messages

  • The message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." is displyed when I try to log on to my internet banking. Please can you tell me why?

    Since upgrading to the latest version of Firefox, I'm now getting the message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." when I try to log onto my internet banking site. This occurs after going thru the first two steps of the login process. I don't get this problem when I login to all my other bookmarked sites, or when I use Internet Explorer. I'm using Windows XP. Any suggestions? (Note: I've just reloaded version 6 of Firefox, but it's not made any difference.)

    See here  >  http://support.apple.com/kb/HT1527
    From Here  >  http://support.apple.com/kb/TS1368
    More info here  >  http://www.apple.com/support/itunes/downloading/

  • Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Hi! I can't upgrade my iTunes 10.3.1.55 on my Windows XP 2002 SP3 to the latest version of iTunes. Got the message: "A problem has occured with the Windows Installer-package. A program needed for this installation could not be run." What to do?

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Problem with HP pavillion dv7 giving message (a problem with the internal fan enter = shutdown

    HP Pavillion DV7 notebook PC
    Windows 7 64
    intel I5
    6 gig memory
    service pack 1
    I am trying to identify a problem with my HP Pavillion dv7 laptop
    Several months ago it started getting hot and showing messages about problems with the internal fan and battery. It would say enter = shutdown and shut off. I suspected a bad battery so I checked it without it just plugging it in with the power cable. It seemed to work better so I assumed that was the problem.
    I ordered a new battery and it worked for a while. The problem came back and is getting worse. I can run it without the battery for a while but it gets got and shows the same message.
    I read on here that flashing and updating the bios worked for some but the latest update gives me an error IHISI not support BIOS then Insyde flash not supported.
    any help would be great this PC has a lot of info on it and I dont think it is a lost cause
    thanks

    Hi duddy, sorry to hear that you are having issues with your computer over heating.  I have found a document that will assist you with Restoring the BIOS.  http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c02693833&lc=en&product=5199538&tmp...
    I have also found a document that will assist you with Troubleshooting and Overheating and Auto shutdown issue.    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03904182&lc=en&product=5199538&tmp...
    If you are still having issues, please let me know and I will be happy to offer more assistance..
    Thank you.
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Shortly after launching into itunes, it freezes and I get the following message: A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. How do I resolve this issue?

    Shortly after launching itunes, the program freezes and gives me the following message:A problem has caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. The program then closes, even if I have not completed what I am doing. How do I resolve this problem?

    That is what I thought. Cannot figure out how to turn it off, though.
    However, when I talked to her over the phone, she is definitely using Firefox. I tried to access her Internet Explorer, but it has been deactivated, I believe by Firefox.
    She primarily uses the Internet to communicate with her kids, grandkids, and great grandkids. Her e-mail account is with Yahoo Mail, and she uses Firefox to access it. Occasionally, she uses the web to look up information, and may have downloaded a virus.
    Do you think there's something in Yahoo Mail that conflicts with Firefox? Is there some remnant of Internet Explorer that needs to be deactivated? Could she have a virus?
    Any information would be gratefully appreciated. I live 7 hours away, and can only help her over the phone. I'm trying to develop a course of action that I can use with her. I know a little bit about Firefox, so need your expertise.

  • ITunes will not open, no message of problems

    iTunes does not show up whenever I click on it, and no message of problems comes onto the screen. Absolutely nothing at all happens. Help?

    See if QuickTime will open. iTunes uses QT codecs to play everything.
    Sometimes QT will give an error message, where iTunes won't.
    Also here is an article with lots more ideas to try:
    http://docs.info.apple.com/article.html?artnum=93976

  • I rented a movie (dark shadows) but I can not see it, because a message appear "Problem loading...try again later". Is not a problem connection. I tried a lot of times to watch the movie and I didn't can.

    I rented a movie (dark shadows) but I can not see it, because a message appear "Problem loading...try again later". Is not a problem connection. I tried a lot of times to watch the movie and I didn't can.
    Thanks
    Celeste

    I rented a movie (The Hobbit)...but  it stops loading.
    The movie costs CHF 7.50.
    A phone call to the support team costs CHF 46.-- !!!!!
    What do you think I will do?
    Pisella Verde

  • RFC Message: Internal Problem, in REDWOOD CPS.

    We have Redwood CPS 7 connected up to SAP IS-U Supply.
    We keep getting random RFC errors when executing a script.
    Any Idea
      ERROR LOG   *******************
    ABAP_RUN: R/3 call BAPI_XBP_JOB_OPEN failed
    RFC error: XM034
    RFC Message: Internal problem (function BAPI_XBP_JOB_OPEN)
    TCTRETURNS/        : deleted
    /ERROR LOG   *******************

    Hi,
    if this is a random issue I assume that the authorizations of the CPS communication user are OK, otherwise please verify:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/49/bb35b8623a489aa63abd9f5ebf2448/frameset.htm
    If this random issue happens only if you execute your custom script, I would assume that the script wants to create a job with invalid data. For example: some data is missing or wrong like start date/time, job class, job user, job name.
    Let's analyze what you have posted here:
    RFC error: XM034
    RFC Message: Internal problem (function BAPI_XBP_JOB_OPEN)
    -> XM034 point to the XMI log
    -> use transcation RZ15 to analyze the XMI log
    -> XM034 means "problem detected" (see appendix 8 of document ftp://ftp.sap.com/pub/icc/bc-xbp/BCXBPDOC70V3.pdf)
    I locked into the code and indeed it seems that function BAPI_XBP_JOB_OPEN returns this message if the job cannot be created.
    So if Sys- and XMI-Log cannot help you in solving this issue, I would create a message for dev. support.
    Cheers,
    Martin
    http://service.sap.com/jsm

  • Text message distribution list

    How do I set up a text message distribution list on an iPhone 4S?

    You don't. There are, apparently, apps that purport to do that in the App Store, though.

  • I have changed my PC, deactivated Adobe Acrobat and tried to load on new PC. Got to registration and get the message " A problem was encountered while trying to send information over internet" this is 8 standard

    I have changed my PC, deactivated Adobe Acrobat and tried to load on new PC. Got to registration and get the message " A problem was encountered while trying to send information over internet" this is 8 standard
    When I try to use it to make pdf files I get the message "Missing PDFMaker files
    It is a proper copy with serial numbers

    Moving this discussion to the Acrobat Installation & Update Issues forum.

  • My dreamweaver cs5.5  on window 7started working stop  showing message  A problem caused programe to

    my dreamweaver cs5.5  on window 7started working stop  showing message  A problem caused programe to stop work correctly       

    What's the error message you received?
    What do your logs tell you?
    What were you doing just before you got the error message?
    Nancy O.

  • Getting a message, "A problem has stopped PS Elements from working correctly."

    I just installed PSE11 on my new Windows 8 computer. (I had previously run it on my old computer with Windows 7). The icon flickers when I open PSE11 and then I get a message,  "A problem has stopped Photoshop Elements from working correctly. Windows will notify you if there is a solution to the problem." I never get a notification about a solution. Any ideas?

    Try the following user tip:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • After updating itunes three (3) days ago - itunes close shortly after starting with the message "a problem occured and cannot be solved, please close application"

    After updating itunes three (3) days ago - itunes close shortly after starting with the message "a problem occured and cannot be solved, please close application" - Platform: WIN7 - iTunes 11.2.9.115

    Start with the third box in  Troubleshooting issues with iTunes for Windows updates.
    If that doesn't work, use the steps in the second box to repair your iTunes installation. Your library should be unaffected by these steps but there is backup advice elsewhere in the user tip.
    tt2

  • Error Message: 'Distribution list still exists in the trash'

    HI All
    Please help us to provide the necessary solution as per the below query.
    1. Which SAP transaction or program can I run to find information on when & what Distribution Lists have been deleted and by whom?
    2. we are trying to recreate the same distribution list again  by using transaction code S023, we are unable to create the same distribution, we are getting the below error message.
    Error Message: 'Distribution list still exists in the trash'
    Regards

    SAp inbox

  • HT201365 Downloaded iOS7 on my 4S. Mostly went well, but sometimes screens lock up (especially text, but also Settings). Find I cannot access and send texts sometimes, plus do not receive some texts from others (group messages real problem).

    Downloaded iOS7 on my 4S. Mostly went well, but sometimes screens lock up (especially text, but also Settings). Find I cannot access and send texts sometimes, plus do not receive some texts from others (group messages real problem). Any work around? And related problem: Getting told can not connect to network when trying to sign on with Apple ID to launch Facetime and Messages.

    I've restarted several times. If I restore from backup, unfortunately the backup was done after iOS7 downloaded. Now, am I wrong that "restore as new" will essentially wipe me out? If so, and having backup, you're saying essentially start over and then backup?

Maybe you are looking for