Re: Websocket using embedded broker

2012-08-22 Thread Dejan Bosanac
Hi, you should add activemq-optional.jar to your classpath. Regards -- Dejan Bosanac Senior Software Engineer | FuseSource Corp. dej...@fusesource.com | fusesource.com skype: dejan.bosanac | twitter: @dejanb blog: http://www.nighttale.net ActiveMQ in Action: http://www.manning.com/snyder/ On

Apollo as Windows Service

2012-08-22 Thread dean.ward
Hi all, I've followed the instructions at http://activemq.apache.org/apollo/documentation/user-manual.html#On_Windows to install a broker as a Windows Service. Unfortunately I it fails to start the service with the following error in apollo-broker-service.err.log: Exception in thread main

Re: Activemq needs to be reinstalled every time

2012-08-22 Thread Sri
Here is the log that I am getting for that. Java Runtime: Sun Microsystems Inc. 1.6.0_32 C:\Program Files\Java\jdk1.6.0_32\jre Heap sizes: current=124544k free=121942k max=466048k JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true

Re: Activemq needs to be reinstalled every time

2012-08-22 Thread Jacky
Can u post the logs? -- View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-needs-to-be-reinstalled-every-time-tp4655412p4655413.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Activemq needs to be reinstalled every time

2012-08-22 Thread Sri
Hi , I am using activemq 5.4.1 on my window desktop. First time when I start using activemq.bat , it is working fine. But from second time onwards it was not starting properly and I need to reinstall I mean need to unzip installer and again use . is there any where I need to set any settings to

5.7 problem java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPMakerAdapter

2012-08-22 Thread offbyone
When trying to start a broker I get this error on brokerService.start(): BrokerService brokerService = new BrokerService(); brokerService.setPersistent(false); //Simpler for testing brokerService.setSupportFailOver(false); brokerService.addConnector(tcp://127.0.0.1:61616); brokerService.start();

Re: missing sources to geronimo-jta_1.0.1B_specs-1.0.1

2012-08-22 Thread Martti Söderlund
issue resolved, tag 1.0.1 located to Geronimo specs with help at us...@geronimo.apache.org: http://apache-geronimo.328035.n3.nabble.com/Missing-sources-to-geronimo-jta-1-0-1B-spec-1-0-1-tt3985620.html#a3985621 br, Martti -- View this message in context:

Store is locked... waiting 10 seconds

2012-08-22 Thread Jamie
Hi Everyone A user is complaining about his application logs being filled up with Store is locked... waiting 10 seconds. The KahaPersistenceAdapter seems to be having trouble obtaining a lock. I am using an embedded broker, but the broker is only ever started once. I am quite sure of this.

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
What is more troubling me is that the messages sent by the Producer to a Topic is lost when the Master goes down. When I restart my consumer, all those messages that the Producer had sent to the Topic was lost. How do I handle this? Where is the high availability in picture in this AMQ Clustering?

Re: Activemq needs to be reinstalled every time

2012-08-22 Thread Torsten Mielke
If you're starting with ActiveMQ, do you really want to use such an old version? I highly encourage you to upgrade to the latest 5.6 version if that is possible. Torsten Mielke tors...@fusesource.com tmie...@blogspot.com On Aug 22, 2012, at 11:28 AM, Sri wrote: Hi , I am using activemq

Re: Store is locked... waiting 10 seconds

2012-08-22 Thread Torsten Mielke
What version of ActiveMQ is your user using? If its any later version, i.e. 5.5.0 or higher, I suggest switching to KahaDB as the persistence adapter. Torsten Mielke tors...@fusesource.com tmie...@blogspot.com On Aug 21, 2012, at 8:02 AM, Jamie wrote: Hi Everyone A user is complaining

Re: Store and Forward with embedded brokers + stand alone broker

2012-08-22 Thread ceposta
if you attach your config files i can give it a try on my side - http://www.christianposta.com/blog -- View this message in context: http://activemq.2283324.n4.nabble.com/Store-and-Forward-with-embedded-brokers-stand-alone-broker-tp4655028p4655431.html Sent from the ActiveMQ - User mailing

Re: Certificate unknown error AFTER failover enabled

2012-08-22 Thread bryce
The problem is now solved... It turns out that ActiveMQSslConnectionFactory.setKeyAndTrustManagers does not work (at least in this context). Replacing that the following does work: System.setProperty(javax.net.ssl.keyStore,KEY_STORE_FILE_NAME);

ActiveMQ Network of Brokers

2012-08-22 Thread joesan
Im trying to understand the concept behind the network of brokers in ActiveMQ. What I understand from the documentation is that by having a network or broker we can get load balancing. I would assume that load balancing would mean that the messages are sent to either one of the brokers (Master or

Re: 5.7 problem java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPMakerAdapter

2012-08-22 Thread Chris Pratt
You appear to be missing the required slf4j-api-1.6.4.jar dependency. (*Chris*) On Tue, Aug 21, 2012 at 2:33 PM, offbyone r...@iridiumsuite.com wrote: When trying to start a broker I get this error on brokerService.start(): BrokerService brokerService = new BrokerService();

Re: ActiveMQ Clustering Issue

2012-08-22 Thread Chris Pratt
What is the connection URL you are using on your clients? (*Chris*) On Wed, Aug 22, 2012 at 12:16 AM, joesan codeintheo...@gmail.com wrote: Any help friends? -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Clustering-Issue-tp4655306p4655410.html Sent

Re: ActiveMQ Network of Brokers

2012-08-22 Thread Chris Pratt
That's not a network of brokers, it's a single broker with a failover. For a network of brokers you would need multiple databases. (*Chris*) On Wed, Aug 22, 2012 at 9:28 AM, joesan codeintheo...@gmail.com wrote: Im trying to understand the concept behind the network of brokers in ActiveMQ.

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
But isn't configuring the networkConnectors with a static discovery in the activemq.xml configuration file is a network of brokers? -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Network-of-Brokers-tp4655435p4655439.html Sent from the ActiveMQ - User mailing

Re: ActiveMQ Network of Brokers

2012-08-22 Thread Johan Edstrom
You are mixing failover with nob. Not the same thing. On Aug 22, 2012, at 11:30 AM, joesan codeintheo...@gmail.com wrote: But isn't configuring the networkConnectors with a static discovery in the activemq.xml configuration file is a network of brokers? -- View this message in context:

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
I'm happy to see some help at last. Here is how the fail-over url looks like from my clients (both producer and consumer) failover:(tcp://localhost:61616,tcp://localhost:61617) -- View this message in context:

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
When I configure the networkConnector in the activemq.xml file, I'm doing a network of brokers. Did I get it correctly? When my clients use a failover protocol, it is a failover scenario. Is this correct as well? In my case, I have both. Something similar to this.

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
Thanks for the reply. Can you explain me why that with a shared file system I cannot have a network of brokers? -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Network-of-Brokers-tp4655435p4655444.html Sent from the ActiveMQ - User mailing list archive at

Re: ActiveMQ Network of Brokers

2012-08-22 Thread joesan
It's not with two hosts, but with two hosts and a shared database, I lock the second to a waiting state. I got the point. So my earlier understanding was correct that with a Master / Slave and a shared database lock, the slave will not start it's transport connectors and will wait for the lock.

Re: ActiveMQ Clustering Issue

2012-08-22 Thread Chris Pratt
At least from what I'm seeing in *ActiveMQ in Action*, that looks right. Could it be that your maxRecoveryAttempts=1 is preventing it from recovering the second time? (I'm fairly new to this myself) (*Chris*) On Wed, Aug 22, 2012 at 10:32 AM, joesan codeintheo...@gmail.com wrote: I'm happy

Re: ActiveMQ Network of Brokers

2012-08-22 Thread Chris Pratt
The problem is that you're duplicating functionality. The shared database means that the two brokers share the information they are receiving by placing it in a shared location, i.e. the database. The Network of Brokers is a different way of sharing the information between the brokers, by

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
I would try increasing the maxReconnectAttempts to a bigger value. Is there a rule of thumb as to how big this should be? Is there an indefinite try? what happens if I specify -1? Will it try indefinitely until it gets a connection? I would love to have that! -- View this message in context:

Re: ActiveMQ Clustering Issue

2012-08-22 Thread joesan
Well as per the docs, it is so! http://activemq.apache.org/failover-transport-reference.html maxReconnectAttempts=-1 will try indefinitely! I will try that tomorrow on my cluster configuration and let know the results here! Thanks for all the help! -- View this message in context:

iptables and broker to broker transport

2012-08-22 Thread Sean K
I have two centos machines up and running. When I disable or turn off iptables, the one broker can establish a transport bridge with the other broker on the other centos machine. I noticed that the port number being used changes -- 53033, 53067, etc.. How can I configure each broker in the

Re: Apollo as Windows Service

2012-08-22 Thread dean.ward
Sure... I've no spaces in my path with the exception of the location of java.exe. apollo-broker-service.xml looks like this: service idorg.apache.activemq.apollo.Test/id nameApollo: Test/name descriptionApache Apollo is a reliable messaging broker/description

Re: iptables and broker to broker transport

2012-08-22 Thread Sean K
Maybe this activemq.log might shed more light on this: 2012-08-22 12:58:20,497 | INFO | ActiveMQ 5.6.0 JMS Message Broker (static-broker-centos-test1) is starting | org.apache.activemq.broker.BrokerService | main 2012-08-22 12:58:20,497 | INFO | For help or more information please see:

Re: Apollo as Windows Service

2012-08-22 Thread dean.ward
Further investigation seems to show that if I extract Apollo into C:\Apollo it works just fine. If I extract to D:\Apollo it does not. If I extract and install from D:\Apollo and then (just to test) extract to C:\Apollo before starting the Windows Service it will start just fine. Looks like

Re: Apollo as Windows Service

2012-08-22 Thread ceposta
I can recreate this as you've described. Not sure why it's happening. I've opened a JIRA for it and will hack at it when I get a sec. https://issues.apache.org/jira/browse/APLO-246 - http://www.christianposta.com/blog -- View this message in context:

Embedded brokers Vs. Standalone brokers

2012-08-22 Thread Paddy Carman
Hi - I'm trying to figure out the architecture for a large scale system that I'm building that consists of hosting a number of services that would use a pub/sub pattern. Could some please let me know the pros and cons of using embedded broker Vs. standalone brokers especially in terms of

Re: iptables and broker to broker transport

2012-08-22 Thread ceposta
From your logs: sk92129 wrote 2012-08-22 12:58:21,363 | INFO | Listening for connections at: ssl://centos-test1.foo.com:61616?needClientAuth=true | org.apache.activemq.transport.TransportServerThreadSupport | main You can see from your config: sk92129 wrote

Re: Embedded brokers Vs. Standalone brokers

2012-08-22 Thread Gaurav Sharma
This is a difficult question to answer but briefly, it will depend on the services' design, state management of the system, concurrency-model, the domain and what the services will be doing. I presume they will have different behaviors with a mixture of cpu-bound, diskIO-bound, networkIO-bound,

Re: iptables and broker to broker transport

2012-08-22 Thread Sean K
attached: activemq-centos-test1.xml for broker 1 attached: activemq-centos-test3.xml for broker 2. On Wed, Aug 22, 2012 at 3:46 PM, ceposta christian.po...@gmail.com wrote: From your logs: sk92129 wrote 2012-08-22 12:58:21,363 | INFO | Listening for connections at:

Re: iptables and broker to broker transport

2012-08-22 Thread ceposta
The network connector in broker 2 has duplex set to true This will open a connection in both directions, which explains the random port on broker1. Can you try having uni-directional network connectors on each broker? - http://www.christianposta.com/blog -- View this message in context:

Re: iptables and broker to broker transport

2012-08-22 Thread Sean K
If it is duplex, it is not configurable to use a certain port or specific range? For my case, I am not 100% certain at this time whether unidirectional will work the the business case. On Wed, Aug 22, 2012 at 5:07 PM, ceposta christian.po...@gmail.com wrote: The network connector in broker 2

Re: iptables and broker to broker transport

2012-08-22 Thread Sean K
So if I set broker centos-test3 as a unidirectional bridge- it cannot be a consumer, only a producer on a queue. how does real world deployments handle data going in both directions? I can think of two ways: 1.) put the broker in a less restricted DMZ zone in a company with less ports blocked.