How to Intercept incoming call in Mule

Utsav

Hi I am working with Mule Any Point platform i am using composite source which is listening from HTTP and JMS both. I want to identify the incoming call coming from HTTP or JMS and i want to print using the logger. How to do that ?

enter image description here

user1760178

Try the following way of using logger inside your endpoints.

    <composite-source doc:name="Composite Source">
        <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP">
            <logger message="Request coming from HTTP endpoint."></logger>
                 <set-variable value="HTTP" variableName="myVar"></set-variable>
        </http:inbound-endpoint>
        <jms:inbound-endpoint doc:name="JMS" queue="in">
            <logger message="Request coming from JMS endpoint."></logger>
                 <set-variable value="JMS" variableName="myVar"></set-variable>
        </jms:inbound-endpoint>
    </composite-source>

In the flow when you have to chekc a condition, you can use the flow variable "myVar" to check whether the message came from HTTP or JMS endpoint.

Hope this helps.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Webflux, How to intercept a request and add a new header

分類Dev

How to calculate the intercept using numpy.linalg.lstsq

分類Dev

How to intercept JSF view resolving in order to replace the outcome page?

分類Dev

How to get the regression intercept using Statsmodels.api

分類Dev

How to intercept class creation and add attribute using a metaclass?

分類Dev

How can I get the caller from an incoming phone call webhook request?

分類Dev

Twilio add incoming call to queue and call to the agent

分類Dev

How to answer automatically and programatically an incoming call on android

分類Dev

Intercept/capture incoming traffic to pods/services in Kubernetes

分類Dev

Audio not working when incoming call is answered during screen is locked - swift

分類Dev

iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback

分類Dev

PopUp while receiving Incoming Call

分類Dev

How to redirect already answered incoming call using pjsip?

分類Dev

How to intercept call and serve back JSON file dynamically (without "import")

分類Dev

Get incoming call number programmatically on android 10

分類Dev

How to Intercept Property Enumeration of an Object?

分類Dev

How to use AMQP with Active MQ in Mule

分類Dev

How GCDAsyncSocket has identified end of an incoming message

分類Dev

Intercept incoming call in a rooted Android (Jelly Bean)

分類Dev

How to get incoming call's network(carrier) details in android

分類Dev

How to aggregate inbound JMS messages in mule

分類Dev

Get event for incoming call when application in background

分類Dev

How to control key generation in Mule Cache

分類Dev

How to read the number of incoming call on Android Device

分類Dev

How does Mule API Console work?

分類Dev

How to access Mule flow variables in java code?

分類Dev

How to reject or accept an incoming call to my GSM modem using AT commands in Python?

分類Dev

How to achieve a "contact" button on incoming call screen

分類Dev

Windows 8.1 detect incoming phone call

Related 関連記事

  1. 1

    Webflux, How to intercept a request and add a new header

  2. 2

    How to calculate the intercept using numpy.linalg.lstsq

  3. 3

    How to intercept JSF view resolving in order to replace the outcome page?

  4. 4

    How to get the regression intercept using Statsmodels.api

  5. 5

    How to intercept class creation and add attribute using a metaclass?

  6. 6

    How can I get the caller from an incoming phone call webhook request?

  7. 7

    Twilio add incoming call to queue and call to the agent

  8. 8

    How to answer automatically and programatically an incoming call on android

  9. 9

    Intercept/capture incoming traffic to pods/services in Kubernetes

  10. 10

    Audio not working when incoming call is answered during screen is locked - swift

  11. 11

    iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback

  12. 12

    PopUp while receiving Incoming Call

  13. 13

    How to redirect already answered incoming call using pjsip?

  14. 14

    How to intercept call and serve back JSON file dynamically (without "import")

  15. 15

    Get incoming call number programmatically on android 10

  16. 16

    How to Intercept Property Enumeration of an Object?

  17. 17

    How to use AMQP with Active MQ in Mule

  18. 18

    How GCDAsyncSocket has identified end of an incoming message

  19. 19

    Intercept incoming call in a rooted Android (Jelly Bean)

  20. 20

    How to get incoming call's network(carrier) details in android

  21. 21

    How to aggregate inbound JMS messages in mule

  22. 22

    Get event for incoming call when application in background

  23. 23

    How to control key generation in Mule Cache

  24. 24

    How to read the number of incoming call on Android Device

  25. 25

    How does Mule API Console work?

  26. 26

    How to access Mule flow variables in java code?

  27. 27

    How to reject or accept an incoming call to my GSM modem using AT commands in Python?

  28. 28

    How to achieve a "contact" button on incoming call screen

  29. 29

    Windows 8.1 detect incoming phone call

ホットタグ

アーカイブ