10 Replies Latest reply on Aug 10, 2011 9:05 AM by mahdi asgari nea

    How to get Requester IP Address?

    mahdi asgari nea Newbie

      Hi dear all

      I am using jbr-provider to handle all request from specified port, i try to get requester ip address to handle some policy in esb layer!

      I spent some time in community but all the things I found is about http-gateway!

      How can i get requester ip address from message parameter of my cusom action?

       

      Bellow is my jboss-esb.xml configuration.

       

      {code}

      <providers>

              <jms-provider connection-factory="ConnectionFactory" name="JBossMQ">

                  <jms-bus busid="openEHREsbChannel">

                      <jms-message-filter

                              dest-name="queue/openehr_webservice_producer_esb" dest-type="QUEUE"/>

                  </jms-bus>

              </jms-provider>

              <jbr-provider host="${esb-instance-id}" name="JBR-Http" protocol="http">

                  <jbr-bus busid="Http-1" port="${esb-instance-port}"/>

              </jbr-provider>

          </providers>

          <services>

              <service category="ehr" description="openEHR Main Service" name="Main">

                  <property name="maxThreads" value="100"/>

                  <listeners>

                      <jbr-listener busidref="Http-1" is-gateway="true" name="Http-Gateway">

                          <property name="serviceInvokerTimeout" value="600000"/>

                          <property name="synchronous" value="true"/>

                      </jbr-listener>

                      <jms-listener busidref="openEHREsbChannel" name="JMS-ESBListener">

                          <property name="remove-old-service" value="true"/>

                      </jms-listener>

                  </listeners>

                  <actions mep="RequestResponse">

                      <action class="com.tapasargad.soa.esb.actions.SaveMessageAction" name="Save"/>

                       ....

      {code}