Results 1 to 3 of 3

Thread: int:logging-channel-adapter identify each Message Channel

  1. #1
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Question int:logging-channel-adapter identify each Message Channel

    Hello guys

    I have the follow code which is applied globally for many Message Channels

    Code:
    <int:wire-tap pattern="*Channel" channel="logger" />
    	
    <int:logging-channel-adapter id="logger"								 
                                 level="INFO"								 					 
                                 log-full-message="true"	
    					/>
    I can see the complete payload and headers for each Message since I have true the attribute log-full-message, my problem is, I have no way to indentify which Message Channel is actually intercepted explicitly among the others, I want avoid implement a Custom Intecerptor

    Is possible get this feature?

    Thank you
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Yes, if you enable MessageHistory, than he channel information wil be available in MessageHistory header thus visible in the logged Message.

  3. #3
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    Hello Oleg

    Yes, if you enable MessageHistory, than he channel information wil be available in MessageHistory header thus visible in the logged Message
    Thank you

    Impressive how adding this line
    Code:
    <int:message-history/>
    Now I am able to see all the history or trace of the Message sent it

    Thanks a lot!
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •