ActiveMQ HTTP(S) Enabling

2016-07-22 Thread pwalter
Wanted to know how to enable HTTP server on an existing AMQ instance.
Also, once enabled does the HTTP server need to have identified the "Topics"
that are needed? OR, does it dynamically create the Topic based on the URL
that the HTTP client PUSH request from the server? 

thanks
Patrick



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-HTTP-S-Enabling-tp4714257.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


HTTP/1.1 404 Not Found

2016-07-22 Thread pwalter
We have set up HTTP server on AMQ instance.
Writing client that POSTs request URI: test/foo
Get the following Response: HTTP/1.1 404 Not Found
Does the Server NEED to have the URI predefined ???
If not, I don't uderstand the response error.




Error 404 Not Found


HTTP ERROR: 404

Problem accessing test/foo. Reason:
Not Found
/Powered by Jetty:///




THANKS!




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/HTTP-1-1-404-Not-Found-tp4714259.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Adding new maven dependency for mqtt protocol project

2016-07-22 Thread aries.aries
"java.lang.NoClassDefFoundError:
org/apache/commons/collections4/queue/CircularFifoQueue". Its one of the
class from the dependencies I have added. It works fine when I run from IDE.

On Thu, Jul 21, 2016 at 4:22 PM, christopher.l.shannon [via ActiveMQ] <
ml-node+s2283324n4714244...@n4.nabble.com> wrote:

> Which class can't be found?
>
> On Thu, Jul 21, 2016 at 4:24 AM, aries.aries <[hidden email]
> >
> wrote:
>
> > I am working on implementing few things in the mqtt protocol project. I
> > have
> > used the below two dependencies
> >
> > 
> > org.apache.commons
> > commons-collections4
> > 4.1
> > 
> >
> > 
> > org.toubassi.femtozip
> > femtozip
> > 1.0
> > 
> >
> > It is working perfectly fine when I build and run from IntelliJ IDE.
> > However, when I use the command "mvn clean install -Prelease", the build
> is
> > successful but I get classNotFound exception at runtime.
> >
> > Could someone please guide me what the issue might be?
> >
> > Thanks,
> > Vicky
> >
> >
> >
> > --
> > View this message in context:
> >
> http://activemq.2283324.n4.nabble.com/Adding-new-maven-dependency-for-mqtt-protocol-project-tp4714220.html
> > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
> >
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://activemq.2283324.n4.nabble.com/Adding-new-maven-dependency-for-mqtt-protocol-project-tp4714220p4714244.html
> To unsubscribe from Adding new maven dependency for mqtt protocol project, 
> click
> here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Adding-new-maven-dependency-for-mqtt-protocol-project-tp4714220p4714246.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

[GitHub] activemq-artemis issue #641: Update version of netty4

2016-07-22 Thread jbertram
Github user jbertram commented on the issue:

https://github.com/apache/activemq-artemis/pull/641
  
I sent a PR to deal with the regression.  See 
https://github.com/apache/activemq-artemis/pull/655.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] activemq-artemis pull request #655: Fix ByteBuffer regression from Netty upg...

2016-07-22 Thread jbertram
GitHub user jbertram opened a pull request:

https://github.com/apache/activemq-artemis/pull/655

Fix ByteBuffer regression from Netty upgrade

Using array() is a bit dangerous as it's an optional part of any
ByteBuffer implementation. This new method will deal with various
ByteBuffer implementations appropriately.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/jbertram/activemq-artemis master_work

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/activemq-artemis/pull/655.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #655






---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] activemq-artemis issue #653: ARTEMIS-548 Stomp durable sub unsubscrbe

2016-07-22 Thread mtaylor
Github user mtaylor commented on the issue:

https://github.com/apache/activemq-artemis/pull/653
  
@jbertram I noticed this when looking at unsubscribe: 
https://github.com/apache/activemq-artemis/blob/master/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompSession.java#L323

It could just be unsubscribe that's behaving funny...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] activemq-artemis issue #653: ARTEMIS-548 Stomp durable sub unsubscrbe

2016-07-22 Thread mtaylor
Github user mtaylor commented on the issue:

https://github.com/apache/activemq-artemis/pull/653
  
From looking at the code I believe normal subscription queues are not 
encapsulated via connection and instead are global.  Specifically, the 
subscription queue name is based on the subscription id. This is only unique in 
the context of the connection.  Another connection could specify the same 
subscription id for something else completely.

This could result in: 

1. Client 2 receives messages from the wrong address.
2. Client 1 unsubscribe deletes Client 2 subscription queue.
3. When both addresses are the same, p2p semantics instead of pub/sub.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Re: Proposal OSGi bundle to create ConnectionFactory service

2016-07-22 Thread Christian Schneider

In DS you can always supply more than one config.

You can create several configs like:
org.apache.karaf.activemq-1.cfg
org.apache.karaf.activemq-2.cfg

The ConnectionFactoryProvider will then create a ConnectionFactory for 
each config.


Christian

On 22.07.2016 16:29, Guillaume Nodet wrote:

Shouldn't that be a managed connection factory so that multiple brokers can
be eventually  accessed ?


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: Proposal OSGi bundle to create ConnectionFactory service

2016-07-22 Thread Guillaume Nodet
Shouldn't that be a managed connection factory so that multiple brokers can
be eventually  accessed ?

2016-07-22 15:01 GMT+02:00 Christian Schneider :

> I recently added a bundle to karaf that allows to create ActiveMQ pooled
> ConnectionFactories from configs. This approach is better for production
> environments as it avoids putting blueprint.xml in deply as the jms command
> does. It also works nicely outside of karaf.
>
> See
>
> https://github.com/apache/karaf/tree/master/jms/activemq-cf
>
> Now I wonder if this bundle was better placed in activemq as we could then
> add it to the activemq feature.xml.
>
> What do you think? I can create a PR if this makes sense.
>
> Christian
>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>


-- 

Guillaume Nodet

Red Hat, Open Source Integration

Email: gno...@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/


[GitHub] activemq-artemis issue #653: ARTEMIS-548 Stomp durable sub unsubscrbe

2016-07-22 Thread jbertram
Github user jbertram commented on the issue:

https://github.com/apache/activemq-artemis/pull/653
  
There's a handful of Stomp subscriber tests running without issues.  Can 
you clarify a bit on what is broken.  If you can outline a specific use-case 
then I can write a test for it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Proposal OSGi bundle to create ConnectionFactory service

2016-07-22 Thread Christian Schneider
I recently added a bundle to karaf that allows to create ActiveMQ pooled 
ConnectionFactories from configs. This approach is better for production 
environments as it avoids putting blueprint.xml in deply as the jms 
command does. It also works nicely outside of karaf.


See

https://github.com/apache/karaf/tree/master/jms/activemq-cf

Now I wonder if this bundle was better placed in activemq as we could 
then add it to the activemq feature.xml.


What do you think? I can create a PR if this makes sense.

Christian


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



[GitHub] activemq-artemis issue #648: Mqtt fix

2016-07-22 Thread mtaylor
Github user mtaylor commented on the issue:

https://github.com/apache/activemq-artemis/pull/648
  
@jbertram I think you've merged a very old version of this PR (hence why 
it's showing as open).  It looks like you merged the commits locally 2 days ago 
but pushed yesterday.  In between that time, I've added some changes.  I'll 
rebase the changes on master and send another PR.  I'm going to close this PR.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] activemq-artemis pull request #648: Mqtt fix

2016-07-22 Thread mtaylor
Github user mtaylor closed the pull request at:

https://github.com/apache/activemq-artemis/pull/648


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] activemq-artemis issue #653: ARTEMIS-548 Stomp durable sub unsubscrbe

2016-07-22 Thread mtaylor
Github user mtaylor commented on the issue:

https://github.com/apache/activemq-artemis/pull/653
  
@jbertram It looks like subscribe in STOMP is broker completely.  It might 
be worth looking at it before we rework unsubscribe.  The subscription queues 
are not unique across connections.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] activemq-artemis issue #648: Mqtt fix

2016-07-22 Thread mtaylor
Github user mtaylor commented on the issue:

https://github.com/apache/activemq-artemis/pull/648
  
Leave this open for now, I'm going to do some rework based on @andytaylor 
feedback


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] activemq-artemis issue #648: Mqtt fix

2016-07-22 Thread andytaylor
Github user andytaylor commented on the issue:

https://github.com/apache/activemq-artemis/pull/648
  
test failures were env, I will merge


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---