[ https://issues.apache.org/activemq/browse/SM-695?page=all ]

James Lorenzen updated SM-695:
------------------------------

    Attachment: ProviderProcessor.java

Refactored two areas of code into two different methods. One to get the RelURI 
for the HTTPClient class PostMethod. The other method was to populate the 
HTTPClient class HostConfiguration (getHostConfiguartion() method).
Then I added the following three lines:

// Incorporated because of JIRA SM-695
Object newLocationURI = nm.getProperty(JbiConstants.HTTP_DESTINATION_URI);
if (newLocationURI != null) {
    endpoint.setLocationURI((String) newLocationURI);
    log.info("Location URI overridden: " + endpoint.getLocationURI());
}

> Dynamic HTTP provider endpoint
> ------------------------------
>
>                 Key: SM-695
>                 URL: https://issues.apache.org/activemq/browse/SM-695
>             Project: ServiceMix
>          Issue Type: New Feature
>          Components: servicemix-http
>    Affects Versions: 3.0
>            Reporter: James Lorenzen
>            Priority: Minor
>         Attachments: ProviderProcessor.java
>
>
> It would be benficial to add functionaility to the HTTP BC to allow consumers 
> to specify the provider locationURI through a NormalizedMessage property.
> Please see this thread for related information: 
> http://www.nabble.com/http-endpoint-in-provider-mode%3A-dynamic-destination--tf1413771.html#a6721824
> Our team plans on adding some code to the HTTP BC that first looks to see if 
> the NormalizedMessage contains a specific property containing the value for 
> the destination. Therefore a consumer could create a new NormalizedMessage 
> and call setProperty to set the destination URI. If the HTTP BC detects this 
> property he routes the request to this URI; otherwise it continues as normal 
> and uses the locationURI specified in the xbean.xml file.
> We plan on making and testing this change in the next couple of days. After 
> which we will reply back with the modifications.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to