activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@apache.org>
Subject Re: Artemis and RESTeasy jar files
Date Thu, 22 Feb 2018 14:51:50 GMT
> But I'm unable to access it from my browser...

You should use a REST client or a tool like curl so you can specify the
kind of HTTP request (e.g. HEAD, GET, etc.) and also see the full
response.  Using a browser isn't going to work properly with the Artemis
REST messaging interface.

Also, I wouldn't expect http://10.141.65.248:8080/activemq-rest/queues to
actually return anything meaningful.  You'd need to configure a queue in
broker.xml and then specify that queue in the URL, e.g.
http://10.141.65.248:8080/activemq-rest/queues/myQueue.


Justin

On Wed, Feb 21, 2018 at 11:50 AM, tcomprak <tcomprak@gmail.com> wrote:

> Thanks Justin. I did what you mentioned below
>
> - Copied the .war file to the web directory
> root@sh3:~/apache-artemis-2.4.0/web# ls
> activemq-branding.war  activemq-rest.war  api  artemis-plugin.war
> console.war     examples  hacking-guide  images  index.html  META-INF
> styles
> user-manual
> root@sh3:~/apache-artemis-2.4.0/web#
>
> - Created a new broker and added the web element in its etc/bootstrap.xml
> file as follows
>
>    <web bind="http://localhost:8161" path="web">
>        <app url="activemq-branding" war="activemq-branding.war"/>
>        <app url="artemis-plugin" war="artemis-plugin.war"/>
>        <app url="console" war="console.war"/>
>        <app url="artemis-rest" war="activemq-rest.war"/>
>    </web>
>
> - after which I started the broker
> root@sh3:/var/lib/mybroker# ./bin/artemis-service start
> Starting artemis-service
> artemis-service is now running (31401)
> root@sh3:/var/lib/mybroker#
>
> But I'm unable to access it from my browser
> http://10.141.65.248:8080/activemq-rest/queues
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message