Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting baseURL for JMS messages from event user data field, which is set using by HTTP API from UriInfo baseURL #420

Closed
wants to merge 2 commits into from

Conversation

escowles
Copy link
Contributor

**/
private void init( final UriInfo uriInfo ) {
if ( !baseURLSet ) {
baseURLSet = true;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move "baseURLSet = true" to the end of the "try" block in case an exception is thrown.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this will be triggered with each update to the repository, my thinking was that it should fail as quickly as possible. If an exception is thrown in the try block, it's likely going to happen every time and the baseURL would never be set successfully. So my thinking was to try once and then not retry if it doesn't work.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable, @escowles. Could you please add a comment in the code that explains that, since the logic is slightly different than the natural flow.

@awoods
Copy link

awoods commented Jul 29, 2014

Resolved with: ae12d03

@awoods awoods closed this Jul 29, 2014
@awoods awoods deleted the jaxrs-baseurl branch July 29, 2014 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants