You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Arthur Naseef (JIRA)" <ji...@apache.org> on 2014/06/07 23:23:01 UTC

[jira] [Commented] (AMQ-4825) ConnectionFactory and ActiveMQCamelComponent should default to the right port if on OpenShift

    [ https://issues.apache.org/jira/browse/AMQ-4825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14020981#comment-14020981 ] 

Arthur Naseef commented on AMQ-4825:
------------------------------------

Git commit: https://git-wip-us.apache.org/repos/asf?p=activemq.git;a=commit;h=71e45856897dd96d403e01fdf1f912b1420444c8

> ConnectionFactory and ActiveMQCamelComponent should default to the right port if on OpenShift
> ---------------------------------------------------------------------------------------------
>
>                 Key: AMQ-4825
>                 URL: https://issues.apache.org/jira/browse/AMQ-4825
>             Project: ActiveMQ
>          Issue Type: Improvement
>            Reporter: james strachan
>            Assignee: Rob Davies
>             Fix For: 5.9.1, 5.10.0
>
>
> our default is localhost:61616 out of the box. Though this doesn't work on OpenShift - where we default to using 31313 so its in the allowable range.
> When Java is running in the openshift cartridge we can easily tell using an environment variable; so it'd be nice if we automatically checked for that and defaulted to it out of the box. Then a vanilla ActiveMQ connection factory or camel component would automatically just use the right port on openshift. (Then if we're using, say, a local broker or gateway, it'd just work).
> Here's where the port/env var gets defined:
> https://github.com/jboss-fuse/fuse-openshift-cartridge/blob/master/metadata/manifest.yml#L94
> So we'd just need to check for the env value of OPENSHIFT_FUSE_AMQ_PORT and use that if its defined otherwise default to 61616



--
This message was sent by Atlassian JIRA
(v6.2#6252)