title: Message Trapping handle* callbacks Elixir
body: <p>I have created one small genserver app referencing Etudes of Elixir 
  AND working good, when i start the server and do GenServer.call..i get the desired data.</p>
  
  <p>Meanwhile, my application is receiving messages from other producer as well, that has to be trapped, as right now it is visible on shell whenever my application receive any message like below.</p>
  
  <pre><code>iex(6)&gt; subscription 0x7fdc83c0cdf0 ref 0x7fdc8403fc00
  encode_message num 2
  encode_message address topic://tryme
  next/type PN_STRING
  encode_message body alloc size 8192
  encode_message formatted body "message body..."
  write message sz: 130
  Msg {message,#Ref&lt;0.0.0.753&gt;,
            #{address =&gt; "topic://tryme",
              body =&gt; "Enter some text here for the message body..."}}
  AMQP Message received {message,#Ref&lt;0.0.0.753&gt;,
                              #{address =&gt; "topic://tryme",
                                body =&gt; "message body..."}}
  </code></pre>
  
  <p>How can i get this message in my app callback function to be send to database further. As far i can make out that i would receive this message in my handle_info as message not invoked using GenServer.call. But not sure how.</p>