stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chris snow (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (STRATOS-616) Replace JNDI with AMQP Standard Connection method
Date Thu, 17 Apr 2014 19:44:14 GMT

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

chris snow commented on STRATOS-616:
------------------------------------

Until we sort out AQMP, what do you think to this patch in the stratos installer to comment
out the amqp connector?

Will this cause any other issues with stratos?

{code}
diff --git a/tools/stratos-installer/setup.sh b/tools/stratos-installer/setup.sh
index 3b6179b..8dae806 100755
--- a/tools/stratos-installer/setup.sh
+++ b/tools/stratos-installer/setup.sh
@@ -535,6 +535,8 @@ fi
 if [[ ($profile = "default" && $config_mb = "true") ]]; then
     echo "Extracting ActiveMQ"
     tar -xzf $activemq_pack -C $stratos_path
+    # disable amqp connector to prevent conflicts with openstack
+    sed -r -i -e 's@^(\s*)(<transportConnector name="amqp".*\s*)$@\1<!--\2-->@g'
$stratos_path/apache-activemq-5.9.1/conf/activemq.xml
 fi

 general_setup
{code}

> Replace JNDI with AMQP Standard Connection method
> -------------------------------------------------
>
>                 Key: STRATOS-616
>                 URL: https://issues.apache.org/jira/browse/STRATOS-616
>             Project: Stratos
>          Issue Type: Improvement
>          Components: Autoscaler, Cloud Controller, Load Balancer, Stratos Installer,
Stratos Manager
>    Affects Versions: FUTURE
>            Reporter: chris snow
>             Fix For: FUTURE
>
>
> Using JNDI to connect to AMQP is a legacy carry over from the days of JMS.  JNDI limits
the choice of AMQP servers for Stratos.
> http://www.rabbitmq.com/java-client.html is one option for connecting to any AMQP standard
server in a AMQP compliant way:
> {quote}
> The RabbitMQ Java client library allows Java code to interface to AMQP servers. The library
is platform neutral; the binary distributions listed below differ only in the version of Java
they are intended for use with. Please see the specification page for more information on
AMQP interoperation and standards-conformance.
> The library is open-source, and is dual-licensed under the Mozilla Public License v1.1
and the GNU General Public License, v2.
> You will need an AMQP server, such as our very own RabbitMQ server, to use with the client
library.
> {quote}
> The RabbitMQ client guide: http://www.rabbitmq.com/api-guide.html
> Tip from Nirmal:
> {quote}
> ... on top of my head, all you have to change is the code at https://github.com/apache/incubator-stratos/tree/master/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/broker
> {quote}



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

Mime
View raw message