Dynamic Queue names at JMS receiver

HI All,
            I have a scenario where sender is an RFC and receiver is via JMS  and also get a reply back . JMS is asynchonous but as suggested in other threads it is possible to capture the response by setting some Adapter specific parameters.
            But my problem is the queue name for the response is not constant and it varies from request to request for the response. I have no clue how to achieve this , I tried searching some threads but couldn't come to a conclusion.
            Possibility of dynamic MQ queue selection in one receiver JMS channel
            help on Dynamic queue name in JMS Adapter
Has anyone come across such a situation ? Please suggest.
Also In one of threads it was suggested to use Java Proxy?  Please suggest a way forward in this approach too
Regards,
Mohan.

> please refer the link what you provided in section 2.8 mentioned JMS Receiver communication channel will give response back,but i never tried.
Yest because this document is applicabe for a scenario where request msg will come form sender JMS to XI and then Response will be sent back again to JMS by using receiver JMS adapter. So senario is JMS request --- R3 (via XI) --- R3 response to JMS.
But here case is different. e.g. RFC --> PI --> JMS  and reply will get back from JMS  to RFC.  So definetly in this case response will come from sender JMS and not from receiver JMS.
Read sec 2.8 throughly, you will come to know how to set the queue names dynamically for RECEIVER JMS Adapter.
Regards,
Sarvesh

Similar Messages

  • Help on Dynamic queue name in JMS Adapter

    Hi Experts,
      Could you please explain how to configure dynamic queue name in JMS Adapter.
    My requirement is i would have to add the date and time to JMS Queue Name in receiver JMS Adapter.
    Thanks in Advance
    Chilla

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Dynamic queue name with JMS Queue XML?

    Hi,
    Is it possible to use dynamic queue name with JMS Queue XML?
    I tried using a variable in the JNDI URL, and supply the value in a package. I specified the following in the JNDI URL in the Topology:
    e.g.
    <JMS_RESOURCE>?d=<DTD_FILE>&s=<SCHEMA>&JMS_DESTINATION=#PROJECT_NAME.dest_var
    I declared and set the variable in a package, then tried to load data from the above data server to database. But executing this package gave me the following error:
    7000 : null : java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
    java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
         at com.sunopsis.jdbc.driver.bg.executeQuery(bg.java)
         at com.sunopsis.jdbc.driver.bh.executeQuery(bh.java)
         at com.sunopsis.jdbc.driver.l.f(l.java)
         at com.sunopsis.jdbc.driver.l.executeUpdate(l.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Am I doing it wrongly?
    Thanks!

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Dynamic Quee names in JMS Channel

    Hi,
    Message is being sent from SAP -> PI -> TIBCO using JMS queues using JMS channels.
    Is it possible to configure the queue names based on the value in the message?
    Thanks,
    Aravind

    Hi,
    you need to set a dynamic queue in PI or in JMS ?
    the blog mentiones how to create a queue in PI (on the basis of content)
    and that's how I understood your question...
    if you want to set dynamic queue for the JMS then I don't know the way
    hope we're talking about the same thing here
    BTW
    with JMS receiver you can only set those values dynamically:
    JMS Message Correlation ID DCJMSCorreleationID
    JMS Message Expiration DCJMSExpiration
    JMS Message Priority DCJMSPriority
    JMS Message ReplyTo Destination DCJMSReplyTo
    JMS Message Timestamp DCJMSTimestamp
    and JMS message properties but not the queue name
    if you need to set a queue name in JMS dynamically (and we did that in our project)
    was to send everything to one queue (router queue) and the real queue name was specifed in the JMS message property
    and JMS (activeMQ - camel) was able to distribute from dummy queue to the one from the JMS message property
    (config only - no coding so I'd assume most of the JMS should be able to do the same)
    Regards,
    Michal Krawczyk

  • Reg: Dynamic  Queue name

    Hello Experts,
    Although I am not  a PI expert i would like to ask ,
    Can I have Dynamic Queue name generation on the basis of the payload which i am receiving
    Quality of service my be any EO or EOIO .
    For example My pay load stream my contain  Data for Purchase Req. Creation   / and change its a known fact that Creation payload should come first and then change so my Question is can i have my queue name on basis of the Document which i am processing ?

    I dont thnik this is possible in PI for generating queue names based on payload. As Queue should be utilized proper way and based on the PI resources like work processes,.
    But for your scenario, you can use EOIO and specify queue name accordingly for both scenarios.
    And you can do Queue prioritization to assure the creation payload followed by change payload.
    --Divyesh

  • Xml file in dynamic file name in file receiver adapter

    Hi,
    I'm doing the dynamic file name in file receiver adapter. I have done as per instructed in /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    All turned out okay. I have got the file name I require. Except that the file format is XML and I need to suppress the filename node occupied by the dynamic file name.
    The content conversion mentioned in /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12, does not seem to solve my problem. As it is only for file format other than the XML one, because we only do the content conversion if we want to "convert" the format of the content from XML to the other format.
    Does anybody have the solution to my problem? thanks in advance

    Thank you Raj for the direction
    The way to do it is :
    1. In ID, advanced tab, put a check on the adapter-specific message attributes - file name.
    2. Put a "*" on the file name scheme
    3. In IR, create a UDF to set up target file name :
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    // set up file name for receiver adapter
    String SourceFileName = conf.get(key);
    conf.put(key, TargetFileName);
    return " ";
    4. Map the above UDF to the header level of the target structure.
    Regards,
    Idi

  • MessageQ: dynamic queue names

    In our application we would like to do the following:
    at runtime, attach to a temporary, secondary queue.
    bind some arbitrary name to this queue. exec a new process with the new queue
    name given to it as parameter.
    The 'child' process should be able to read messages put on the queue by the 'father'.
    I haven't been able to get this to work. After creating
    a temporary, secondary queue, my bind_q call fails with a PAMS__NOOBJECT error.
    Are there any configuration items that are needed before this
    can work?
    Thanks, Guy
    If theres a more appropriate forum for MessageQ questions, could you please point
    me to it? Thanks, Guy

    > please refer the link what you provided in section 2.8 mentioned JMS Receiver communication channel will give response back,but i never tried.
    Yest because this document is applicabe for a scenario where request msg will come form sender JMS to XI and then Response will be sent back again to JMS by using receiver JMS adapter. So senario is JMS request --- R3 (via XI) --- R3 response to JMS.
    But here case is different. e.g. RFC --> PI --> JMS  and reply will get back from JMS  to RFC.  So definetly in this case response will come from sender JMS and not from receiver JMS.
    Read sec 2.8 throughly, you will come to know how to set the queue names dynamically for RECEIVER JMS Adapter.
    Regards,
    Sarvesh

  • Dynamic File name for File receiver adapter

    Hello,
    I am doing Proxy sender to File receiver scenario.
    Filename is generated in SAP R/3 program and I want to create the file with this same name
    on target location.
    please suggest me how to use this file name in Receiver file adapter?.
    Thanks & Regards
    Jagesh

    Hi,
    you have to enable the adapter specific parameter --> file name in both the sender and the receiver CC to get the input file name as output file name.
    Refer this blog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Also you need to use this udf
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Also refer this blog:
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Regards,
    Nithiyanandam

  • Dynamic file name (Date) in Receiver File Adapter

    Hi,
    can any one tell me how to create outbound file name with receiver file adapter in format like Name_22-08-2006.dat. I need from a current Date in the name of the message (without any other information). In message payload I don’t have that date. Is it possible to use variable from user defined function in message mapping for that name?
    Regards,
    Naycho

    Naycho,
    that's exactly what I've managed to perform using DynamicConfiguration. Check these links:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/frameset.htm
    Particularly, I've created a Java API for using setDirectory and setFileName methods through mappings. I use XSLT with java enhancement because it's a million times easier to parse and get node values with XSL than pure java.
    I'm writing a blog on the subject, if you don't resolve the problem until it's out, let me know.
    Regards,
    Henrique.

  • How to set queue names dynamically for MQ Adapter - SAP XI

    Hi Friends
      I have a scenario where I should send a message to multiple queues ( more like broadcasting ) using a single communication channel of MQ Adapter. The scenario is like this
    1. If the message content contains value '111' then message should go into Queue A, Queue B, Queue C
    2. If the message content contains value '222' then message should go into Queue A, Queue B
    I will store the content values inside a table ( value and queue names ) and can pick it up inside BPM but want to know how to change the queue name property of MQ series adapter. I will do this inside a loop so the message can be sent to multiple queue names but want to know how to change the queue name property of receiver communciation channel.
    I appreciate the help in providing the answer.
    thanks
    Kannan

    Amaresh
      Thanks for your answer but my question is specifically targeted towards MQ adapter and the queue name which has to be dynamically changed. I can do the dynamic changes for file adapters but want to know how to change the queue names in message mapping or inside BPM.
    regards
    Kannan

  • SAP PI - JMS Receiver Adapter

    Hi All:
    Is it possible to override the queue name of the receiver JMS adapter from the Payload?
    I checked Adapter Specific Message Attributes of JMS receiver adapter, but could not find queue name attribute. I need to assign receiver JMS queue name from Payload.
    Any idea? Appreciate your quick reply.
    Thanks
    Farooq

    >
    Farooq Farooqui wrote:
    > As the Dynamic Configuration will not work here...so, any other alternative? Can we override/create adapter parameters values using peace of code (Not ASMA)?
    >
    > I am trying to find out solution..otherwise I have to change my design.
    >
    > Thanks
    > Farooq
    well then it would be as good as u r creating a new adapter
    i suggest a change of design would be the best here.

  • Setting DCJMSCorreleationID in JMS RECEIVER using Seeburger AttribMapper

    Hello
    Has anyone managed to set the DCJMSCorreleationID dynamic attribute in a JMS RECEIVER using Seeburger AttribMapper module?
    Here is how I configured the JMS_RECEIVER:
    In the module tab, I added a new module:
    Module Name     Module Type     Module Key
    localejbs/Seeburger/AttribMapper     Local Enterprise Bean     map
    And I added the following parameter:
    Module Key     Parameter Name                                                       Parameter Value
    map                     http://sap.com/xi/XI/System/JMS/DCJMSCorreleationID  "TEST"
    When I process a message, I can see in the adapter engine Audit log the following lines:
    SEEBURGER/AttribMapper: Setting dynamic property http://sap.com/xi/XI/System/JMS - DCJMSCorreleationID = TEST
    SEEBURGER/AttribMapper: Finished succesfully, 1 properties set or deleted     
    However looking at the Message Content/SOAP Document, I can see no dynamicConfiguration (it should be the case according to Seeburger documentation).
    If I check the message properties on the JMS queue, I can see the correlation ID is not set to TEST.
    Any idea?
    Thanks in advance!
    Greg

    Are you using the AttribMapper in the Sender or in the Receiver Channel ? Please be aware that you will not be able to see the change of attribmapper in the message content in receiver channels (they are not updated/persisted there).

  • Possibility of dynamic MQ queue selection in one receiver JMS channel

    Hi all,
    I just want to ask whether it's possible in PI7.0 or PI7.1 to send a message dynamically to MQ queues based on payload information using a single JMS receiver channel.
    Example:
    1)
    If the XML looks like this:
    <element>param_1</element>
    Then JMS receiver channel "RCV_JMS_1" should send the message to MQ queue "MQ_param_1".
    2)
    If the XML looks like this:
    <element>param_2</element>
    Then JMS receiver channel "RCV_JMS_1" should send the message to MQ queue "MQ_param_2".
    Is that doable? If yes how (by using some module in the channel)?
    Thanks in advance for your help!
    Regards,
    Kai

    Yeah... cause such a scenario is not so hard to image. Just the possibility to giva a placeholder as value for MQ queue name in the channel would be sufficient and to assign a value at runtime to it.
    At the moment the implementation is like this:
    PI => static MQ wueue => own Java developed small adapter (JBoss) => dynamical MQ queue addressing
    But a change here would be nice to have it all in PI.
    Only option I see at the moment is to integrate the Java development into PI based on PCK. Or is there any alternative?
    Edited by: Kai Lerch-Baier on Mar 25, 2009 11:02 AM

  • JMS Queue Vs JMS replyTo Queue name for Receiver JMS channel.

    HI,
    I am working with receiver JMS adapter and using the protocol WbeSphereMQ JMS provider.
    Here I could not able to figure out the difference between the following parameter.
    Target tab JMS Queue  and Processing tab-JMS replyTo Queue name.
    I tries the find the same in help.sdn.com but here also not able to find correct information .
    for Processing tab -JMS replyTo Queue name Parameter it is written that "Specify the name of the queue to which the responses are to be sent."
    But what is the use of Target tab JMS Queue Parameter. No information is given against this parameter.
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/frameset.htm
    regards,
    Navneet.

    the initial JMS Queue is the queue you will connect too.
    i guess SAP felt an explanation to that was not required....
    SAP does not even bother to explain it here in the specific link to JMS-Provider-Specific Settings (for Webshpere although it does for SonicMQ!).
    http://help.sap.com/saphelp_nw04/helpdata/en/c1/739c4186c2a409e10000000a155106/frameset.htm
    I do not use the "ReplyTo" in my current scenarios.

  • JMS ReplyTo Queue Name parameter in the receiver JMS communication channel

    Hi All,
    Can any please explain the use of JMS ReplyTo Queue Name parameter in the receiver JMS communication channel?
    Thanks
    Karthik.

    Hi karthik,
    JMS ReplyTo Queue Name parameter  is used for Specify the name of the queue to which the responses are to be sent.
    Thanks
    Govind.

Maybe you are looking for

  • How to find out and locate the top 100 max elements from a 4D array

    I try to find out the 100 maximum elements in a 4D array and then I want to put the result in a 2D array, Which should show me the locations of the elements and the values of those elements ==================== =Labview 7.0 & 8.0 & 8.5= =============

  • InsertHTML won't work with XML files

    I am trying to create a command that writes text to an open XML file. The command I've created works fine under some circumstances but not others. It works if I open an XML file and apply the command without editing the file. If I make any edits to t

  • Make payment before issue sales order

    Dear all, Here is my problem. After customer agreed on the sales quotation, I had to collect payment from customer before issuing a sales order. How can it be done in SBO? i tried AR reserved invoice but sales order had closed after adding AR reserve

  • How can I add new documnet

    Hello My English ability very poor sorry... I want to insert(add) new document into old document so I did like below doc.getDocumentElement().appendChild(structureDoc.getDocumentElement()); but it is not operating... help me

  • Illustrator CS6 won't update.......

    I've tried several times to get an answer to this, but no one will answer. I get an error message saying: "Error log file location: C:\Program Files (x86)\Common Files\Adobe\Installers". In discussions area, the question doesn't even show up. Maybe t