Re: Artemis Core XA Example

2016-10-19 Thread Tim Bain
What's the reason behind wanting to avoid using the JMS layer in favor of
the proprietary Artemis core API?  I've not done anything with Artemis, so
this is very much a question from a place of ignorance, but Quinn's
statement sounded a lot like "I only want to use Hibernate-proprietary
APIs, none of those pesky JPA-standard ones that might let me interoperate
or swap underlying technologies later," and I'm curious about the logic
that led to the statement...

Tim

On Oct 18, 2016 3:55 PM, "Clebert Suconic" 
wrote:

> On Tue, Oct 18, 2016 at 12:45 PM, Quinn Stevenson
>  wrote:
> > Clebert -
> >
> > Thank you for your input!
> >
> > I try and avoid XA transactions whenever possible as well.  I do have a
> few customers that insist on transactions when they do JMS->JMS routes (the
> JMS destination are in different brokers/servers - hence the need for XA).
>
> got it... was just pointing my 2 cents there. Try to batch (like 1000
> messages & 1000 whatever else you are doing on a single TX). if you
> can.
>
> >
> > This is really the last piece I need to figure out before I’ll be able
> to implement Artemis (core only) into our standard flows.  I know we can
> always use the JMS layer, but I’d like to be able to use just the core if I
> can.
> >
>
> all the methods available on JMS for XA are also available on
> ClientSession. There shouldn't be any difference.
>
> Let me know If you can't figure out, and I (or someone else) may write
> an example
>
>
> > I’m planning on doing the integration in Camel, and it’s looking more
> and more like I’ll need an “artemis-camel” (hosted in the Artemis source)
> or a “camel-artemis” (hosted in the Camel Components source).  Any thoughts
> on which would be the most appropriate place for the component?  ActiveMQ
> 5.x has the activemq-camel component, but it always seemed to me it was in
> the wrong place - that it should be camel-activemq.
> >
>
>
> I looked at the camel component on AMQ5 at some time ago and it would
> be simple to port it. I thought it wasn't needed though. but if you
> need it we can add something into artemis/master just like AMQ5 has
> one.
>
> Can you add it?  Send a PR... we accept PRs :)
>
>
> if you even send it soon, I'm planning a release early next week. if
> it's well done (well done means.. not breaking anything) it might be
> there before we release it.
>


ActiveMQ network of brokers messages are not balanced

2016-10-19 Thread iulianrosca.ir
I am using *ActiveMQ 5.13.4* and I have set up a *network-of-brokers* with
two brokers *A* and *B* that are connected via a *networkConnector*. Each
broker has a consumer connected to it (*A' *and *B'*). *A'* and *B'* consume
messages from the same *distributed queue* (e.g. `requests-queue`). Each
consumer is a java application, represented by a Spring
*DefaultJmsListenerContainerFactory* having the setting *concurrency: 5-10*.
Basically, each consumer has max 10 threads that can consume simultaneously
messages from the queue. 

In broker configuration (`activemq.xml`) I have set the prefetch size to 1,
assuming that there are not many messages and they need a lot of processing
time.


```

```

The *desired behavior* is when I send 100 messages to `A` it starts
processing 10 messages simultaneously (one for each consumer thread) and
forwards another 10 to `B`. When `B` finishes processing the first 10
messages, it would get an extra 10. This would continue until all the
messages are processed.

The *actual behavior* is that when I send 100 messages to `A`, it sends 10
messages, one per each thread, to the local consumer `A'` and forwards the
remaining 90 to `B'`. The consumers on `A'` finish processing the messages
and they wait while 90 messages get processed on broker `B` by its
consumers. 

*Question:* How can I configure the network in order to balance messages
based on consumer availability?

The full `activemq.xml` configuration for one of the brokers is the
following. The other one has the same configuration only a different name
and IP in the networkConnector.

 /   http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
  http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd";>




file:${activemq.conf}/credentials.properties








http://activemq.apache.org/schema/core";
brokerName="broker-jms-tux-01-qa-gnd"
persistent="false"
dataDirectory="${activemq.data}"
cacheTempDestinations="false"
advisorySupport="true"
useJmx="true">































































http://www.springframework.org/schema/beans";
class="org.apache.activemq.hooks.SpringContextHook"/>







/

Thanks you in advance!



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-network-of-brokers-messages-are-not-balanced-tp4718074.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: HornetQ client connect to Artemis server

2016-10-19 Thread hcrobison
I am all set. My problem was when we embedded the Artemis server, we missed
the jar arttemis-hornetq-protocol-1.x.0.jar.
Thanks.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/HornetQ-client-connect-to-Artemis-server-tp4717861p4718084.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


ApacheCon is now less than a month away!

2016-10-19 Thread Rich Bowen
Dear Apache Enthusiast,

ApacheCon Sevilla is now less than a month out, and we need your help
getting the word out. Please tell your colleagues, your friends, and
members of related technical communities, about this event. Rates go up
November 3rd, so register today!

ApacheCon, and Apache Big Data, are the official gatherings of the
Apache Software Foundation, and one of the best places in the world to
meet other members of your project community, gain deeper knowledge
about your favorite Apache projects, learn about the ASF. Your project
doesn't live in a vacuum - it's part of a larger family of projects that
have a shared set of values, as well as a shared governance model. And
many of our project have an overlap in developers, in communities, and
in subject matter, making ApacheCon a great place for cross-pollination
of ideas and of communities.

Some highlights of these events will be:

* Many of our board members and project chairs will be present
* The lightning talks are a great place to hear, and give, short
presentations about what you and other members of the community are
working on
* The key signing gets you linked into the web of trust, and better
able to verify our software releases
* Evening receptions and parties where you can meet community
members in a less formal setting
* The State of the Feather, where you can learn what the ASF has
done in the last year, and what's coming next year
* BarCampApache, an informal unconference-style event, is another
venue for discussing your projects at the ASF

We have a great schedule lined up, covering the wide range of ASF
projects, including:

* CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos -
Carlos Sanchez
* Inner sourcing 101 - Jim Jagielski
* Java Memory Leaks in Modular Environments - Mark Thomas

ApacheCon/Apache Big Data will be held in Sevilla, Spain, at the Melia
Sevilla, November 14th through 18th. You can find out more at
http://apachecon.com/  Other ways to stay up to date with ApacheCon are:

* Follow us on Twitter at @apachecon
* Join us on IRC, at #apachecon on the Freenode IRC network
* Join the apachecon-discuss mailing list by sending email to
apachecon-discuss-subscr...@apache.org
* Or contact me directly at rbo...@apache.org with questions,
comments, or to volunteer to help

See you in Sevilla!

-- 
Rich Bowen: VP, Conferences
rbo...@apache.org
http://apachecon.com/
@apachecon