Urouter/Userver

Author: sbpatel48@gmail.com (Sandip)

HI, Can someone pls help me out with Urouter/Userver.

I want to register an application on the Urouter. Then from my client I'll activate a Service, which will send a Postmessage to a component (form) in the application that i have registered.

Can anyone pls tell me how i can send a Postmessage to a form that i have registered on Urouter.

I know i give the $instancepath as part of the Postmessage ' ie Postmessage "$BCOM:form.....

What i'm unsure abt is setting the $BCOM path, to point to the Registered application

Thanks for any help

Sandip

2 Comments

  1. The registration of the application needs to include "$instancepath:$instancename" of the component you wish to receive the message from the urouter.

    We store this in a datafile, and the service then runs through all the registered application paths and sends the message out to them.

    Or is that not what you meant?


    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  2. Hi,

     

    that's the way we do it:

    a) the client creates an unique ID (e.g. APS+Client-Name+PID, or APS+ORA-PID) and register to urouter (open $NET)

    b) store the unique ID into a database table

    c) send postmessage reads the dabasetable and select all corresponding APS for a loop

    d) when logoff delete from database table

    HTH

    Thomas


    Author: Thomas.Young (thomas.young@young-consulting.de)