Synchronous message handling between OSB and MQ

Hi,
I have a requirement to have a PS in OSB that gets some XML data from another application.
The PS implementation has to be synchronous.
The interface is like
External Application<->OSB PS<->MQ<->OSB <-> External Application
Can anyone help me with the request-reply implementation(i.e. synchronous call handling) between OSB and MQ.
Required functionality :
OSB will get XML data from the external application,will do the data transformation to make it compatible with MQ interface and will then send data to MQ and will wait for the reply from MQ that it then sends back to the external application after transformation.
Queries:
How to correlate two messages i.e. request msg to mq and reply msg from mq in OSB?
What kind of Proxy Service implementation is required to have such functionality?
If someone can help me with similar kind of implementation,it will be of great help to me.
Thanks in advance

OSB support this pattern out of the box . You can implement the MessageID pattern as specified in this link:
http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/interopjms/MsgIDPatternforJMS.html
When you configure the business service to use MessageID as the correlation pattern, the following happens under the hood:
1. Business service sends request to the MQ request queue. The MQ JMS provider sets the message ID on the message and this is returned to the bs. The business service also sets the reply queue details in the JMSReplyTo Header in the request.
2. The business service then waits for a response message which has a correlationID equal to the messageID in the request message.
3. The system which processes the request from the MQ should set the correlation ID of the response to the same value as the Message ID in the request.
4. The business service process the reply if it is received before the timeout interval. No need to purge the queues for message arriving out after timeout since OSB does this automatically for you.
A point to note here is that if you deploy this in a cluster , you need to create 'N' local MQ queues for reply, where N is same as the number of managed servers in the cluster. Else you could lose replies in a scenario where the reply for a request sent by man server 'X" is processed by man server "Y". The request-response correlation tables are maintained internally on man server memory. Since Y had no clue of the requests sent in X it would just discard the reply received.
So create dedicate queues for each man server and specify them in the business service definition.
Another key thing for this to work would be to get right the MQ setup between the queue manager in OSB domain and the remote system which process the MQ requests. A simple setup would be for you to create all reply queues as local queues under your OSB queue manager and create only a transmission queue with the same name as your OSB queue manager in the remote system. You need to ask the remote system to do the MQOpen with the ReplyToQueue and ReplyToQM names for queue and queue manager names. This will put the replies to the transmission queue to your QM and through it can reach the right reply queue.
Edited by: atheek1 on Mar 29, 2010 7:50 AM

Similar Messages

  • Hi I am having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and loading then I get an error message saying unable to download app. Eventually,after many attempts it works.

    Hi Guys - for a few days I have been having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and downloading then eventually says unable to download app. Sometimes after many attempts it wil eventually work. I tested it on an old iPhone 3G and got the same problem so it is not an iOS 5 issue. My WI-FI connection is working fine. I was wondering if this is an App Store problem? Anyone else in the UK having this problem?

    Hi John
    iTunes Support wasn't of any use to me.
    I have also been having another problem - with BBC iPlayer and other video streaming not working due to insufficient bandwidth, despite my overall download speed being consistently around 50Gb.  This is also affecting AppleTV downloads
    I am using Virgin Media as my ISP, and was wondering whether you do as well.  This might be the common thread.
    -Bernard

  • Picture file handling between Aperture and Photoshop

    Hello
    I have transferred several photos via "edit in external editor" from aperture to photoshop.
    In photoshop I made different operations:
    a) just looking (no special manipulations) -> no saving
    b) manipulations on a particular photo -> saving via "save" in PS
    c) combination of different photos -> saving via "save as" in PS
    Meanwhile I have learned, that option C just saves the file in the file system, but does not update the database entry in aperture. I have also found different versions of photos in the file system, which I had just opened in PS (case a). "File system" means in that case, that they are under the folder "masters", when I drill down the Aperture Data File. Case b seems to work OK.
    I have now different questions:
    why are photos, which I have just opened in PS, still in the file system (even when I have deleted them) in Aperture? Seems that those versions are kept. Is'nt that blowing up my database? (case a)
    when I reimport pictures from case c, are they stored a second time in aperture or does the aperture database point to the particular file (because the file already is under the folder "masters")
    Any feedback to data handling between PS and Aperture?
    Thanks in advance,
    Vanillia

    IMO today you are very likely to be best served by the inexpensive Photoshop Elements. However, Adobe's world is changing at the end of this month (March 27) with official announcement of MacIntel versions. You may want to re-ask this question then, being careful of April Fool's Day wags.
    http://www.macworld.co.uk/news/index.cfm?RSS&newsID=17399
    Also, version 2 of Aperture is expected in the next few months, and I will be surprised if simple color tools such as you describe are not included.
    -Allen Wicks

  • Difference in event handling between Java and Java API

    could anyone list the differences between Java and java-API in event handling??
    thanks,
    cheers,
    Hiru

    the event handling mechanisms in java language
    features and API (java Application Programming
    Features)features .no library can work without a
    language and no language has event handling built in.
    I am trying to compare and contrast the event
    handling mechanisms in the language and library
    combinations such as java/ java API.
    all contributions are welcome!
    thanks
    cheersSorry, I'm still not getting it. I know what Java is, and I know what I think of when I hear API. (Application Programming Interface.) The API is the aggregation of all the classes and methods you can call in Java. If we agree on that, then the event handling mechanisms in Java and its API are one and the same.
    So what do you want to know?
    %

  • Why does my email address and text message alternate between mine and my husbands name?

    Whenever I send an email or a text message, the name of the sender alternates between me and my husband - I'm so confused!

    Hello,
    Mail Preferences>Composing>Addressing:... is Send new Mail from set to a specific address or from Account of last viewed mailbox?
    In Address Book do you have a combined entry for you & husband?

  • Differences in the message id between IMAPMessage and MimeMessage

    Hi,
    When I'm getting IMAPMessage from the IMAP server and calling getMessageID() I got next id (for the privacy reasons it not real, but reproduce the differences) :
    <[email protected]>
    Then, when I saved this message to the disk and read it as MimeMessage and calling getMessageID() I got this :
    <20060421154815.XPTL8241.fed1rmmtao11.host.net@[xxx.yy.www.q]>
    As you can see the difference is in [] for the string after @.
    What could cause to such behavior ?
    Thanks.

    The first case it clearly split the line into a continuation line.
    In the second case I can't imagine why it would remove the angle brackets in some cases but not others.
    You didn't say what it looks like in the file.
    Also, what version of JavaMail are you using?
    What does the protocol trace show when you fetch the message from Gmail and write it to the file?
    When you call the getMessageID method, JavaMail gets the Message-ID value from the IMAP
    BODYSTRUCTURE response, which the IMAP server creates by parsing the message.
    When you call the writeTo method, JavaMail asks for the entire message as a MIME stream.
    It's possible that Gmail is parsing the message and "canonicalizing" the data before returning it in
    the BODYSTRUCTURE, but returning you the raw message when it returns the MIME stream.
    The protocol trace will show us if that's what's happening.

  • Synchronizing my contacts between iPhone and Outlook

    I currently synchronize my calendars between my iPhone and Outlook via the USB connection between my computer and the phone. I tried to do the calendar synchronization through the iCloud, as that looked really slick, but I didn't like some of the side effects, so I went back to synchronizing directly between my computer and my phone. It seems like to synchronize the contacts, the only option is to use iCloud, but I don't know if I can do that only for the contacts and not have my calendar involved? Any suggestions on how I do this?

    Hello there, kenw100.
    The following Knowledge Base article offers up how to turn iCloud features on and off on your iOS device:
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Turn iCloud features on or off
    Depending on which device’s settings you want to change, do one or more of the following:
    On your iOS device’s Home screen, go to Settings > iCloud, then tap to turn on or off iCloud features.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Synchronizing user data between Laptop and Desktop

    We have a Macbook and an iMac. While my kids and wife went to visit the Grandparanets I lent them my Macbook, used SuperDuper to create a copy of my Laptop's drive and booted it on the iMac (ok, that is pretty cool!).
    All worked very well and now they are returning and I need to merge the information on the Macbook itself and the SuperDuper drive I have been using on the iMac.
    There are multiple user accounts on each and all that was really added on the Macbook would be photos and movies and iTunes music one 3 of the accounts.
    Is there an easy way to sync user accounts between two computers? I am quite familiar with .mac and syncing wha I would call preferences. It cannot handle stuff like synching iTunes, iPhoto or iMovie though.
    Appreciate any suggestions
    JIm

    Well ... here is what I ended up doing. Hope it helps someone
    Once the laptop came home:
    1. I made a SuperDuper image just in case (to another Firewire drive partition)
    2. Then I logged into the user accounts on each and used Backup to backup Home, iLife ... for each user on the laptop that logged in while they were gone (I asked them)
    3. Then I used SuperDuper to overwrite the hard drive on the laptop using the SuperDuper image on the Firewire drive.
    4. Then I logged into each account on the laptop where I backuped up data and restored it.
    It took a little while but everyone is happy and has their data

  • Wrong handling between iMac and iPad

    I have got a problem of tranmission between my iMac (v. 10.9.5) and my iPad, first generation 5.1.1. which never occured before.
    I must have done a wrong handling for I have 23 music albums on my iPad and 8  on my iMac. Means that I have « lost » them. I would like to put them back from iPad to iMac : is there a way ? I use iTunes 12.01.26.
    Thanks for the help you can give me.

    If they are iTunes purchased albums then File > Devices > Transfer Purchases in iTunes should copy them back - or you might be able to redownload them via the Purchased link under Quick Links on the right-hand side of the iTunes store homepage (or tick the 'shows iTunes in the cloud purchases' tickbox on the Store tab in iTunes > Preferences and they might show in the Music part of your library with a cloud icon against them for redownloading).
    If they were not bought from iTunes, and you don't have them on your backup of your library, then there are some programs listed half-way down this page which should be able to copy them back : Recover your iTunes library from your iPod or iOS device.

  • WindowsPhone Lync 2013 - No message sync between phone and desktop apps

    If Lync is running on my phone and desktop, incoming messages appear in both clients. However, messages I send are not reflected in the other client. This means that if I have a conversation from my phone, when I return to my desk all I see in the conversation
    window are the incoming messages.
    Skype handles message sync across all clients, Why doesn't Lync?
    Cheers!
    Matt

    Hi,
    Lync Server determines which endpoint is currently most active for that user. For example, a user might be Away at two of the three endpoints, so the server sends the message only to the endpoint where the user is Available. If the server is unable to determine
    which state is most active, it sends the message to the endpoint it determines most likely active and waits to see if the user acknowledges the toast at any location. If the user opens the toast at an endpoint, the server removes the message from the other
    endpoints. If an endpoint doesn’t acknowledge the message, the server leaves the message at only one location which is the most likely endpoint.
    Best Regards,
    Eason Huang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • Message exchange between oracle and external system

    I had posted my query before. I woull appreciate if anyone could guide me that for exchange of messages bwteen Oracle and external system which AQ programmatic environment is preferred -
    1. PL/SQL
    or
    2.JMS
    hello
    WE have an Oracle database 9i. we want to use JMS ( Java messaging service ) for sending XML messages from one oracle system to other external system.
    we are reading and creating XML files in Oracle database, but to send messages externally in forms of a XML file generated from Oracle could ayone tell me how that can be done or suggest some usefulk links
    Also how to configure Oracle with JMS, could anyone tell me any useful links where i can find more information or any suggestions on this would be fine
    thanks
    kb

    I'm not sure I understand how this question differs from the one I answered yesterday
    Re: using JMS and Oracle help urgent..
    Are you looking for alternate answers? Or looking for some specific bit of information?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • TS2755 Message conflict between iPhone and ipad

    My wife recently replaced a phone with a new iphone. She already has an ipad, and previously, when I sent her a message, I would choose the destination (ipad or cell phone) with no problems. Now, however, even when I choose the cell number (which hasn't changed) as the intended destination for my message, it goes to her ipad.
    What settings need to be changed in order to correct this?

    See needs to go into Settings>Messages>Send and Receive and make sure her phone number is checked. She can turn off the Apple ID on the phone to restrict that, and then check the settings on the iPad. You also might need to delete your conversations and then start over making sure that you select her phone number.

  • Connectivity between OSB and LDAP

    Hi All
    We have a requirement to connect to LDAP from OSB (not for retrieving security related information) for querying business information like users, user groups and geographical hierarchy etc. I know there is no Adapter to use for integrating LDAP with OSB. Please suggest some implementation technique for this approach.
    Thanks
    Vishwanath

    Which LDAP are you using ? If you are using OID you have a Ldapcleint.jar on the OID server, you can use that to connect.
    If you are using openldsp you using the open source ldap jar files for the same.
    Sample Code :-
    import javax.naming.*;
    import javax.naming.directory.*;
    import javax.naming.ldap.*;
    import oracle.ldap.util.jndi.*;
    import oracle.ldap.util.*;
    import java.io.*;
    public class NickNameSearch {
    public static void main(String[] args)
      throws Exception
      InitialLdapContext ctx = ConnectionUtil.getDefaultDirCtx( args[0],
      args[1], args[2],args[3]);
      RootOracleContext roc=new RootOracleContext(ctx);
      Subscriber sub = null;
      sub = roc.getSubscriber(ctx, Util.IDTYPE_DEFAULT, null, null) ;
      PropertySetCollection psc = sub.getProperties(ctx,
      Subscriber.USER_NAMING_PROPERTIES, null);
      String nickNameAttribute = null;
      try
      nickNameAttribute = (String) psc.getPropertySet(0).getProperty(Subscriber.USER_NAMING_ATTR_SIMPLE).getValue(0);
      catch (Exception e)
      // unable to retrieve the attribute name
      System.exit(0);
      System.out.println("Nickname attribute: " + nickNameAttribute); 
      // Retrieve user using simple name, guid or DN
      User user = sub.getUser(ctx, Util.IDTYPE_SIMPLE,"orcladmin", null);
      System.out.println("user DN: " + user.getDN(ctx));  }
      // Retrieve nickname value using User object
      psc = user.getProperties(ctx, new String[]{ nickNameAttribute });
      String nickName = null;
      try
      nickName = (String) psc.getPropertySet(0).getProperty(nickNameAttribute).getValue(0);
      catch (Exception e)
      // unable to retrieve the attribute value
      System.exit(0);
      System.out.println("Nickname : " + nickName); 
    Using the Java API Extensions to JNDI

  • Synchronizing Iphoto Libraries between Powerbook and Imac Duo Core....

    I'm sure there must be a simple answer to this, but I have a Powerbook Laptop I've used for the past year as a primary computer, but recently added a Imac as my main computer at home and using my laptop more for travel / work. I'm trying to figure out how to "synchronize" all my Iphoto files (images) and also Itunes libraries. Not trying to do anything illegal (photo/music) wise....just not have to have two different photo/music groups on each computer. I was able to load the library from the laptop when I first got the IMAC....but if I add any photos on my laptop or purchase any music..... just haven't figured out how to easily sync them between the two computers. I'm sure there are others much wiser than myself who have figured this out and I ask for your words of wisdom to help an "apple newbie" overcome this minor hurdle. Thanks in advance!!

    Bill:
    You can't "synchronize" libraries because that only syncs files, not the contents of files. Doing so will corrupt both libraries.
    The only way at present to make two libraries the same is to use the paid version of iPhoto Library Manager. It will let you merge libraries while preserving keywords, comments, albums, rolls, etc. The developer's site explains it.
    Do you Twango?

  • Message reference between old and new url's

    as already mentioned by many others, many people have lists of links to important threads. when comparing the new id's for the same thread with the old ones, there seems to be no logic to connect them.
    how can we get a way to find the message with the old url's? for me it is very important.
    thanks in advance
    trevi

    Repost! any feedback from the OTN-team available? is the problem at least noticed??
    thanks
    as already mentioned by many others, many people have
    lists of links to important threads. when comparing
    the new id's for the same thread with the old ones,
    there seems to be no logic to connect them.
    how can we get a way to find the message with the old
    url's? for me it is very important.
    thanks in advance
    trevi

Maybe you are looking for