Artemis and RESTeasy jar files

classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Artemis and RESTeasy jar files

jbertram
I'm not sure what the problem could be.  When I use your configuration it
works.  Did you restart the broker after you added the acceptor?


Justin

On Thu, Feb 22, 2018 at 2:15 PM, tcomprak <[hidden email]> wrote:

> Here is my entire broker.xml file:
>
> [vncuser@qa-centos7x64-102 broker1]$ cat etc/broker.xml
> <?xml version='1.0'?>
>
>
> <configuration xmlns="urn:activemq"
>                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                xsi:schemaLocation="urn:activemq
> /schema/artemis-configuration.xsd">
>
>    <core xmlns="urn:activemq:core"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="urn:activemq:core ">
>
>       <name>0.0.0.0</name>
>
>       <persistence-enabled>true</persistence-enabled>
>
>
>       <journal-type>ASYNCIO</journal-type>
>
>       <paging-directory>./data/paging</paging-directory>
>
>       <bindings-directory>./data/bindings</bindings-directory>
>
>       <journal-directory>./data/journal</journal-directory>
>
>
> <large-messages-directory>./data/large-messages</large-messages-directory>
>
>       <journal-datasync>true</journal-datasync>
>
>       <journal-min-files>2</journal-min-files>
>
>       <journal-pool-files>-1</journal-pool-files>
>
>       <journal-file-size>10M</journal-file-size>
>
>
>       <journal-buffer-timeout>36000</journal-buffer-timeout>
>
>
>
>       <journal-max-io>4096</journal-max-io>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>       <disk-scan-period>5000</disk-scan-period>
>
>
>       <max-disk-usage>90</max-disk-usage>
>
>
>       <critical-analyzer>true</critical-analyzer>
>
>       <critical-analyzer-timeout>120000</critical-analyzer-timeout>
>
>       <critical-analyzer-check-period>60000</critical-
> analyzer-check-period>
>
>       <critical-analyzer-policy>HALT</critical-analyzer-policy>
>
>
>
>       <acceptors>
>
>
>
>
>
>
>          <acceptor
> name="artemis">tcp://0.0.0.0:61616?tcpSendBufferSize=
> 1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,
> STOMP,HORNETQ,MQTT,OPENWIRE;useEpoll=true;amqpCredits=
> 1000;amqpLowCredits=300</acceptor>
>
>
>          <acceptor
> name="amqp">tcp://0.0.0.0:5672?tcpSendBufferSize=
> 1048576;tcpReceiveBufferSize=1048576;protocols=AMQP;
> useEpoll=true;amqpCredits=1000;amqpMinCredits=300</acceptor>
>
>
>          <acceptor
> name="stomp">tcp://0.0.0.0:61613?tcpSendBufferSize=
> 1048576;tcpReceiveBufferSize=1048576;protocols=STOMP;useEpoll=true
> </acceptor>
>
>
>          <acceptor
> name="hornetq">tcp://0.0.0.0:5445?protocols=HORNETQ,STOMP;useEpoll=true
> </acceptor>
>
>
>          <acceptor
> name="mqtt">tcp://0.0.0.0:1883?tcpSendBufferSize=
> 1048576;tcpReceiveBufferSize=1048576;protocols=MQTT;useEpoll=true
> </acceptor>
>
>          <acceptor name="in-vm">vm://0</acceptor>
>
>       </acceptors>
>
>
>       <security-settings>
>          <security-setting match="#">
>             <permission type="createNonDurableQueue" roles="amq"/>
>             <permission type="deleteNonDurableQueue" roles="amq"/>
>             <permission type="createDurableQueue" roles="amq"/>
>             <permission type="deleteDurableQueue" roles="amq"/>
>             <permission type="createAddress" roles="amq"/>
>             <permission type="deleteAddress" roles="amq"/>
>             <permission type="consume" roles="amq"/>
>             <permission type="browse" roles="amq"/>
>             <permission type="send" roles="amq"/>
>
>             <permission type="manage" roles="amq"/>
>          </security-setting>
>       </security-settings>
>
>       <address-settings>
>
>          <address-setting match="activemq.management#">
>             <dead-letter-address>DLQ</dead-letter-address>
>             <expiry-address>ExpiryQueue</expiry-address>
>             <redelivery-delay>0</redelivery-delay>
>
>             <max-size-bytes>-1</max-size-bytes>
>
> <message-counter-history-day-limit>10</message-counter-history-day-limit>
>             <address-full-policy>PAGE</address-full-policy>
>             <auto-create-queues>true</auto-create-queues>
>             <auto-create-addresses>true</auto-create-addresses>
>             <auto-create-jms-queues>true</auto-create-jms-queues>
>             <auto-create-jms-topics>true</auto-create-jms-topics>
>          </address-setting>
>
>          <address-setting match="#">
>             <dead-letter-address>DLQ</dead-letter-address>
>             <expiry-address>ExpiryQueue</expiry-address>
>             <redelivery-delay>0</redelivery-delay>
>
>             <max-size-bytes>-1</max-size-bytes>
>
> <message-counter-history-day-limit>10</message-counter-history-day-limit>
>             <address-full-policy>PAGE</address-full-policy>
>             <auto-create-queues>true</auto-create-queues>
>             <auto-create-addresses>true</auto-create-addresses>
>             <auto-create-jms-queues>true</auto-create-jms-queues>
>             <auto-create-jms-topics>true</auto-create-jms-topics>
>          </address-setting>
>       </address-settings>
>
>       <addresses>
>          <address name="DLQ">
>             <anycast>
>                <queue name="DLQ" />
>             </anycast>
>          </address>
>          <address name="ExpiryQueue">
>             <anycast>
>                <queue name="ExpiryQueue" />
>             </anycast>
>          </address>
>          <address name="q1">
>             <anycast>
>                <queue name="q1" />
>             </anycast>
>          </address>
>       </addresses>
>
> <queues>
>    <queue name="myQ">
>       <address>myQ</address>
>       <durable>false</durable>
>     </queue>
> </queues>
>
>    </core>
> </configuration>
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>
Reply | Threaded
Open this post in threaded view
|

Re: Artemis and RESTeasy jar files

Archibald
In reply to this post by jbertram
What i meant, is if you publish the rest war under "artemis-rest" using
<app url="artemis-rest" war="activemq-rest.war"/>

you should therefor call
http://10.141.65.248:8080/artemis-rest/queues
instead of
http://10.141.65.248:8080/activemq-rest/queues

Br, A.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Reply | Threaded
Open this post in threaded view
|

Re: Artemis and RESTeasy jar files

jbertram
Based on previous emails on this thread I believe he's already gotten past
the url issue.


Justin

On Fri, Feb 23, 2018 at 3:13 AM, Archibald <[hidden email]> wrote:

> What i meant, is if you publish the rest war under "artemis-rest" using
> <app url="artemis-rest" war="activemq-rest.war"/>
>
> you should therefor call
> http://10.141.65.248:8080/artemis-rest/queues
> instead of
> http://10.141.65.248:8080/activemq-rest/queues
>
> Br, A.
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>
Reply | Threaded
Open this post in threaded view
|

Re: Artemis and RESTeasy jar files

Archibald
In reply to this post by tcomprak
One issue might be an incorrect build of artemis-rest.war.

The war does not contain any server libs as described in
https://activemq.apache.org/artemis/docs/latest/rest.html

Quote:
<project xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">

   <modelVersion>4.0.0</modelVersion>
   <groupId>org.somebody</groupId>
   <artifactId>artemis-rest</artifactId>
   <packaging>war</packaging>
   <name>My App</name>
   <version>1.0-SNAPSHOT</version>

   <dependencies>
      <dependency>
         <groupId>org.apache.activemq.rest</groupId>
         <artifactId>artemis-rest</artifactId>
         <version>$VERSION</version>
         <exclusions>
            <exclusion>
               <groupId>*</groupId>
               <artifactId>*</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
   </dependencies>
</project>



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
12