How to post  message to multiple receivers

For a file 2 file scenario how to send a file to multiple receivers and what are the configurations  to be done at reciever side
please any body help
Thanks
Pradeep Chakravarthy

Hi ,
To send messeges to multiple receivers , you need to specify the recivers in the configured receiver  of receiver determination in ID. Also you can use the condition to select the different receivers depending upon the successful conditions.
Inside ID :
go to Edit receiver Determination - > Select your Business Service -> enter condition in xpath at configured receivers. and provide you condition in XPATH. You can also use your context variables here to refer to some conditions.
Hope this will help you.
Regards
Aashish Sinha
PS : Reward points if helpful

Similar Messages

  • How to post message to Adobe Reader or AVWindow?

    There is a modeless dialog created by my plugin.
    I want post message in dialog to Reader or AVWindow.
    How to post message and where can i receive these message?
    I'm using Windows XP
    thanks.

    Whatever OS/platform methods you want.

  • How to post message (or Notify)  a frame?

    Hi I would like to know about how to notify a frame of some event? Say I would like to do the following.
    On clicking buttonA
    1. disable some other buttonB.
    2. Perform some lengthy operation in multiple other threads and post message saying operation completed
    3. Enable buttonB on receiving the message
    As the operation involves controlling multiple hardware components, which run in different threads I dont want to modify the code to enable buttonB using swingUtilities.invokelater.
    I would like to know how I can post a message to the message queue of Frame (or panel) on which buttonB is present so I can process it enable buttonB.
    Also how do I check for and act on the messages in message queue.
    I have programmed something similar in MFC. I am not sure if something similar is possible in swing. So please let me know if this is possible. I would be thankful for any suggestions or leads.
    NOTE: I use a windows 2000 system. I know I can do this by synchronizing the threads, but that creats lot of overhead in my program, whereas this asynchronous method will help.
    Thankyou

    Well, notice that in the sample code I posted I did not pass a handle to the button to the second thread, I passed a handle to the dialog box as a whole. The enableB function is not a function of the button, but of the dialog. This technique IS sending a message to the dialog box, it is just doing it directly rather than putting it on a message queue. (If you're thinking in Windows C terms, its like "sendMessage" as opposed to "postMessage".) That enableB function could do whatever you want: it could enable six buttons, it could alter values in display fields on the window, it could read a file and connect to a web site, whatever.
    So for your "generate a number" scenario, I would suggest very similar code. The "enableB" function could easily take a parameter. In HardWork we generate the number and then call enableB passing in this number. In MyDialog we accept the number and display it or whatever. Of course "enableB" is not an appropriate name for the function in such a case. In the case your describing it could just as well be named "processDone".
    If the second thread is supposed to send a message to the dialog box and then continue running, presumably sending more messages in the future, there is just the slightest variation. The call to "enableB" (or whatever we call it at this point) is inside a loop instead of being the last line in the function.
    Well, here's a complete (while trivial) example -- I just tried this and it really does run succesfully.
    Click the "start" button and it starts up a thread that generates random numbers between 0 and 9. It disables the Start button while the thread is running. When the thread happens to generate zero, it quits, and the Start button is re-enabled. The HardWork thread communicates with the dialog purely through the "update" function -- you could put any code in there you like.
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Dork extends JFrame implements ActionListener
         JButton start;
         JLabel number;
         public static void main(String[] args)
              Dork dork=new Dork();
         public Dork()
              super("Dork");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              Container content=getContentPane();
              number=new JLabel("0");          
              content.add(number,BorderLayout.CENTER);
              start=new JButton("Start");
              start.addActionListener(this);
              content.add(start,BorderLayout.SOUTH);
              pack();
              setLocationRelativeTo(null);
              show();
         public void actionPerformed(ActionEvent e)
              start.setEnabled(false);
              Twiddle twiddle=new Twiddle(Dork.this);
              twiddle.start();
         public void update(int n)
              number.setText(Integer.toString(n));
              if (n==0)
                   start.setEnabled(true);
         class Twiddle extends Thread
              Dork dork;
              public Twiddle(Dork dork)
                   this.dork=dork;
              public void run()
                   Random r=new Random();
                   int n;
                   do
                        n=r.nextInt(10);
                        dork.update(n);
                        try
                             sleep(1000);
                        catch (InterruptedException oops)
                   } while (n!=0);
    }

  • Send a message to multiple receivers from the same service

    Hi all,
    I registered on SAP community several months ago, I found many good hints and solutions to some of the problems encountered in XI and for which I thank you, but this is the first time I address a question to a common issue, written already about.
    I have a scenario with 1 File FTP sender adapter and 2 Receiver adapters:1 FTP adapter and 1 MAIL adapter. The input message is sent to one of these receiver adapters based on the value taken by a specific field from the input message.The receiver adapters are using the same party and service.
    The requirement is to solve this without using BPM.
    I have read "multiple receiver" issue related blogs and tried to use the standard receiver determination. Thus, I have 1 Sender Agreement, 2 Receiver agreements (one for FTP and one for MAIL), 1 Interface Determinations (with the 2 inbound interfaces and interface mappings corresponding to FTP and MAIL output) and 1 standard Receiver Determination where I added the party and service twice and specified for both the condition. The condition is based on XPath, is correct.
    In sxmb_moni, I get the error: "No receiver could be determined". If I remove one of the conditions, then the output is sent on both receiver adapters, instead of only the one that fulfills the condition.
    Can you please give me some feedback on how to solve this problem? It is rather urgent.
    I have also tried to create 2 Interface Determinations and have 2 Receiver Determinations, each one with the right condition. But I get the same error message.
    Is the problem due to the fact that I don't use 2 different services ?
    If you know how this can be solved without using BPM, please reply.
    Thanks a lot,
    Alina hudea

    > In sxmb_moni, I get the error: "No receiver could be determined". If I remove one of the conditions, then the output is sent on both receiver adapters, instead of only the one that fulfills the condition.
    Hi,
    I think the problem in Receive Determination. As you mentioned when you remove one of the condition then it works..
    What I concluded is, I think while creating your Receiver Determination for multiple receivers you added the receivers by pressing the plus sign and that means you are using mulitiple receivers with "AND" condition, so in this condition when both the condition will be true then only you will get success.
    What you can do is, Just remove one of the receivers and then add it by pressing the "OR" symbol i.e. by pressing this ( [ ] ) symbol and put your conditions as you like.
    I hope what I have concluded is correct.. 
    Regards,
    Sarvesh

  • How does receive() work with multiple receivers/subscribers?

    Hi,
    actually I'm using the JMS API to create a lightweight MQ service for Java ME tailored for my purposes. I'm generally familiar with JMS but I have some question to which I couldn't find the answer neither in the API spec nor on google. I think that many of you can answer it.
    At first, is it possible to create multiple receivers on the same queue (same or different sessions)? Generally, I though a queue can only have one consumer since the call of receive() will delete the message from the queue so that a theoretical second consumer couldn't get the message anymore. But int the APi docs, it doesn't explain what happens if you call createReceiver() multiple times. Will it throw an exceptions?
    A similar question goes for topics. A topic is supposed to support multiple subscribers. When subscribers register listeners, I understand it. But what if they don't and instead call receive() which is available because TopicSubcriber extends MessageConsumer. Is the message also deleted from the queue or is receive not supported for topics and will throw an exception? Will it remain until all subscribers have either called receive on that message or have been notified by onMessage? If yes, what happens if a subscriber doesn't call receive. Does the message stays there forever? What if new messages coming in, will the queue wait until the previous message is completely consumed?
    From my point of view, I tend to only allow one receiver for a queue. If the receiver calls receive, the message will be deleted. For topics, I would only allow listeners, not receive() calls. Once the message has been delivered to all subscribers it will be deleted. If I'm misunderstanding the concepts, please correct me!
    Thanks a lot!

    At first, is it possible to create multiple receivers on the same queue (same or different sessions)? Generally, I though a queue can only have one consumer since the call of receive() >will delete the message from the queue so that a theoretical second consumer couldn't get the message anymore. But int the APi docs, it doesn't explain what happens if you call >createReceiver() multiple times. Will it throw an exceptions?If you have multiple receivers on the same queue then the JMS provider will distribute messages between the two receivers on the basis that each message goes to only one receiver. The exact distribution of messages depends on the JMS provider, and is not mandated by the JMS specification.
    A similar question goes for topics. A topic is supposed to support multiple subscribers. When subscribers register listeners, I understand it. But what if they don't and instead call >receive() which is available because TopicSubcriber extends MessageConsumer. Is the message also deleted from the queue or is receive not supported for topics and will throw an >exception? You can consume messages from a topic using either a MessageListener or by calling receive(). They both work in the same way.
    Will it remain until all subscribers have either called receive on that message or have been notified by onMessage? If yes, what happens if a subscriber doesn't call receive. Does the message stays there forever? What if new messages coming in, will the queue wait until the previous message is completely consumed?Essentially, if you send a message to a topic then it will be delivered to every subscriber, irrespective of whether that subscriber is synchronous (calling receive() or asynchronous (supplying a MessageListener).
    In both cases, the consumer might not actually be ready to accept that message just yet (the applicaiton might not have called receive() yet, or onMessage() is still processing a previous message). In this case the message will be held within the JMS provider in an internal queue of messages designated for that specific consumer. Logically speaking, there's an internal queue for each consumer, rather than an internal queue for the whole topic, though how the provider actually implements this will vary. Note that the concept of each subscriber on a topic having its own internal queue is not one described in the documentation, it's just a way for me to explain it.
    If the consumer closes before it actually receives the messages waiting in its queue, and the subscriber is non-durable, then the internal queue will be thrown away. If the subscriber is durable then the internal queue continues to exist and continues to accumulate messages even after the subscriber has closed.
    From my point of view, I tend to only allow one receiver for a queue.
    If the receiver calls receive, the message will be deleted. For topics, I would only allow listeners, not receive() calls.
    Once the message has been delivered to all subscribers it will be deleted. If I'm misunderstanding the concepts, please correct me!Yes, you have slightly misunderstood this :-) I hope my explanation above helps clarify this.
    Nigel

  • Receiver Determination for an Outbound Message to Multiple Receivers

    Hi,
    I have a scenario in which one Single Outbound Message needs to be sent to multiple receivers.
    1. I have set up the Receiver Identification correctly i.e I can see the Receiers and their end points.
    2. The problem is that when the first Message fails i.e due to Mapping error , the remaining Receivers do NOT get any messages.
    3. So does XI does a Rollback of the whole set of receivers if first one fails?
    Logically speaking the Message should go to other Receivers even if it fails for one of them.
    I see a Red flag and then a Green flag in SXMB_MONI.
    Please advice.
    Thanks so much.
    A

    Hi,
    I checked the trace log for Receiver Identification.
    It says : Evaluating Condition //VBELN EQ '999999'.
    INVALID RECEIVER : (rec name)
    If the XPATH has turned false why does it still call the same Receiver ??
    The value of VBELN is never 999999.
    Can you please advice?
    Thanks
    Ashish

  • How to post messages between two threads other than GUI main thread?

    Does anyone have examples of post messages between two threads (other than GUI main thread)?  Would you please post the link?
    Thank you,

    Hello, you can call PostDeferredCallToThread passing the your data in callbackData parameter.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to POST Message to HTTP Adpater?

    HI @,
    I have a requirement where I need to post XML message directly to HTTP adapter from webdynpro application.
    I have tried using HTTP Client availbale and it works fine. But I need help on how to achieve the same in Wed Dynpro for Java?
    Regards

    Okay BeyondThe obvious,
    You can very well use HTTP Approch to send the data from your Application.
    Do the following to configure your scenario
    1)Create Source Structure as per the Req. and use wat ever the Target Structure
    2)Create MT & MI For the corresponding
    3)Create Mapping Objects
    4) No need to create Sender HTTP Adapter & Sender agreement
    5) Create Receiver CC & Receiver Agreement
    6) Create Determinations.
    Just Reffer the Source XML Structure in your Sender Application Programming inorder to send the data to XI in that Format,
    and Use the XI details inside your Webservice programming to send the data to XI( like Sender service, sender interface, sender namespace, xi IP, Xi client, User,pwd)
    So by this Once you send the HTTP Request to Xi means data will come to xi and will process further
    Regards
    Seshagiri

  • Single source message to multiple receivers

    my requirement is
    My source message contains four fields a, b, c , d
    It should go to two different receivers , but both of my target messages need fields a, b of my source message.
    Please let  me know the possibilities

    I have found the issue with xsds and tried the split mapping . (Iam unsing PI 7.1)
    In repository I have two inbound interfaces 1st one for first xsd, 2nd inbound interface with 2nd xsd.
    Iam stuck in configuration , what needs to be done in configuration inorder to generate two files.
    My receiver is same. I just need to send two files to same location.
    I noticed there is no enhanced interface determination in PI 7.1 .
    Please share your thoughts.

  • How to post message from SAP to solution manager

    Dear Friends,
    We have configured solution manager service desk and the users were able to send messages so that we can view it in solman ITSM.
    Now we want to bifurcate the messages from different people, hence we woule like to use of Problems in incident management of solman.
    How a end user can create a message so that it comes and fall in problems folder of incident management,
    Normally create support message from SAP will make the message to be visible in incidents of solman ITSM, but we want the message to fall in problems section of ITSM in solman.
    Please help.
    Thanks
    Suresh

    Hi,
    In 7.1 we do have dedicated services as Problem management, with the transaction type SMPR. you can create ZMPR and proceed similar to SMIN ( incident) in ITSM.
    also refer here  Problem Management in SAP Solution Manager 7.1 - Part 2
    Thanks
    Jansi

  • How to post depreciation to multiple cost centre?

    Hi
    In the asset master there is only one cost centre for each asset. This cost centre determines the cost centre to post to for depreciation expense. Is there a way to post to multiple cost centre?
    Hope someone can advise.
    Thank you.

    Hi,
    1) Substitution rules would help you. 
    2) Through distribution or assessment allocate the depreciation expenses to multiple cost centers.
    Thanks,
    Murali

  • How to send message from multiline container to same webservice or bus. sys

    Hi All,
    I want to send message from multiline container to a syn web service sequentially.
    I am getting that multiline container after a transformations step (1: n mapping).
    where i dont known what will be the value for n (number of message in multiline container). This will vary; depend upon input message to BPM.
    Scenario is like this.
    1. Receive step
    2. Transfromation to 1: n
    3. Want to send message from multiline container to a web service (business service),default loop and block step doesn’t give desirable result.
    any help will be appreciable
    Regards,
    Adish

    Adish Jain wrote:>
    > where as, if I will use block, it will send the same message to multiple receivers which are present in multiline receiver container. So need to think in different manner.
    Not necessarily.
    When you use block step in ForEach mode, you can select the container variable from:
    - a receiver container;
    - an interface container;
    The line element can then be either a receiver or an interface.
    The problem is that for this to work, the interfaces need to be async (since they are to be used as containers) and hence you won't be able to make your scenario work.
    But again, explain why your scenario with loop step didn't work.
    The only gap here is how to determine the number of loops (defining the counter variable value). But that can be easily solved if you include a new message with occurrence 1 as a target message of your mapping and as a container in your bpm.
    This new message needs only 1 single field, that should be filled with the number of messages you've created in the mapping (you could use count standard function, f.ex.).
    In your bpm, make sure to pass this fields value into the counter container right after your transformation step.
    Regards,
    Henrique.

  • Need Help in File to Multiple Receivers Sceanrio without BPM

    Hi Friends,
    My sceanrio is picking the PO data from file and creating SO in multiple receivers. I configured multiple receivers in Receiver Determination and it is working fine.
    Since i use multiple receivers i can't make this sceanrio as synchronous one. But i want to know the generated SO number. Is there any way to get this? Or should i use BPM?
    Thanks & Regards,
    Senthil.

    Hi
    I think you can do this with BPM only.
    As per multicast pattern you can send a message to multiple receivers and waiting for a response message from each of the receivers.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Thanks
    Prasad Nemalikanti

  • How to send message values to different receivers?

    Hi All
    I have an incoming message having many values in that like
    value=0
    value=1
    Value=0 i have to sent it to one receiver and value = 1 have to sent it to different receiver.
    How to do this, Please explain in detail.
    Thanks in Advance

    Hi Dheeraj,
    Use Condition base Receiver Determination  :-).
    XPath to show the path (Multiple Receivers) .
    In the above mentioned blog forget about the BPM part directly go to receiver determination step and configure receiver . as shown in the pic using xpath on the based of values 0 or 1 ...simple..:--)
    Let us know for any doubts.
    Regards,

  • How do you take off reseiving messages on multiple devices using the same apple account

    How do you take off reseiving messages on multiple devices using the same apple account?

    Go to Settings>Messages>Send and Receive on all but one device and add a unique email address on each device and delete the commone Apple ID email device
    If there is also an iPhone with iOS 6 associated with the Apple ID, uncheck the phone number on all but the phone.

Maybe you are looking for

  • Transferred MS Office files on new MacBook not working

    I just had my data migrated to a new MacBook and then installed MS Office:Mac 2011 on the new computer so my transferred Office files could work.  Some of them open up just fine and some open up blank or with funny lines.  For Excel, some of the docs

  • ADF how can i execute a query with parameters when the page renders

    hi i am using ADF web 11g i need to execute a query with parameters when the page renders thanks

  • Keeping a 2nd monitor in Grid mode

    Hello, I'm trying to keep a 2nd monitor locked into grid mode? For example when editing; monitor 1 is in Loupe mode, 2nd in Grid mode when I do a find the monitors will switch modes? So the 2nd goes from grid to loupe and the main monitor goes to gri

  • Stop-motion with camera?

    I have a school project where I need to animate a stop-motion video. We used a Canon 7D to take pictures and I imported them in lightroom. What I need to do now is take all of these frames and put them together to make the video. I tried manually doi

  • Normalising XML structure.

    I have this xml file which has white space in every element. I need to normalise the whole xml structure so that i do not have any extra spaces. Right now i have to use normalise space function in transformation for each element. Is there any way nor