Broker configuration using properties file

2009-08-26 Thread Adrian Co
Hi All, I'm using ActiveMQ 5.2.0, and I'm trying to use the option to configure a broker using properties file. (i.e. I don't want dependency on spring/xbean) See http://activemq.apache.org/broker-properties-uri.html Configuring the basic broker properties work (i.e. useJMX, brokerName, etc), b

Re: Where are the command line tools?

2008-03-23 Thread Adrian Co
It's in the binary distribution under the bin directory. http://activemq.apache.org/activemq-500-release.html Andrew M wrote: Where do I find the command line tools talked about here? http://activemq.apache.org/activemq-command-line-tools-reference.html Thanks, Andrew

Re: Basic configuration of peering two machines

2008-03-18 Thread Adrian Co
Are you using failover for the clients? http://activemq.apache.org/failover-transport-reference.html [EMAIL PROTECTED] wrote: Env: Jre: 1.6, Activemq 4.1.1: I am connecting two machines A and B using external brokers as follows: Machine A: External broker at 61616 Tcp Network conne

Re: Retroactive consumer...yes, no, maybe so?

2008-03-18 Thread Adrian Co
As far as I know, retroactive consumers only applies to topics. For queues, you should get all messages whether the consumer is online or offline. The example in the documentation could be wrong. Andrew M wrote: Aaron, My original producer and consumer code are at the bottom of the msg. Note

Re: WRAPPER.CONF 5.0

2008-03-11 Thread Adrian Co
Already fixed for 5.1.0 https://issues.apache.org/activemq/browse/AMQ-1558 Chris Neal wrote: In order to make the Windows Service work for 5.0.0 release you will need to add wrapper.app.parameter.2=start wrapper.app.parameter.3-xbean:activemq.xml To the wrapper.conf Can someone make this a B

Re: Start ActiveMQ programmatically

2008-03-11 Thread Adrian Co
%JAVA_HOME%\bin\java" .. FATAL | wrapper | 2008/03/11 20:13:17 | Unable to execute Java command. The system cannot find the file specified. (0x2) FATAL | wrapper | 2008/03/11 20:13:17 | "%JAVA_HOME%\bin\java" .. FATAL | wrapper | 2008/03/11 20:13:17 | Critical error: w

Re: Start ActiveMQ programmatically

2008-03-11 Thread Adrian Co
How about using the service wrapper? http://activemq.apache.org/java-service-wrapper.html beeeph wrote: can anyone provide me with some simple c++ code I can use to start the ActiveMQ service on a windows xp machine? Thanks in advance for your help, I really appreciate it! Beeeph

Re: retry without using Failover Transport

2008-03-04 Thread Adrian Co
Hi, The initialReconnectDelay is the delay for the first attempt only. Is it reconnecting immediately on the first try? Use the maxReconnectDelay to specify the delay for succeeding attempts. http://activemq.apache.org/failover-transport-reference.html Regards, Adrian Co Qian Su wrote: Hi

Re: why can not connect to the brokers

2007-07-08 Thread Adrian Co
Must be out-dated documentation. I don't think list is a valid transport scheme. You could try the static transport scheme. Jiang wrote: I config 3 brokers . In the client code , I use uri as "list:tcp://localhost:61616,tcp://192.168.1.110:61616,tcp://192.168.1.112:61616" . But when I start the

Re: AMQ Servlet, brokerURL and failover

2007-07-05 Thread Adrian Co
Use the failover protocol. http://activemq.apache.org/failover-transport-reference.html Sandeep Chayapathi wrote: Hi all,  This is a follow up to my http://www.nabble.com/ActiveMQ-and-REST-tf3996071s2354.html REST question. I have successfully setup apache tomcat running the amq's message

Re: QueueSender question

2007-06-13 Thread Adrian Co
Create an anonymous sender by specifying a null destination in the createSender method and specify the actual destination in each send. Jim Alateras wrote: If I create a QueueSender QueueSender pub = session.createSender(new ActiveMQQueue("queue1")); I can't seem to use it to publish to anoth

Re: How to use http connector

2007-05-28 Thread Adrian Co
Do you have the activemq-optional jar in the classpath? Jiang wrote: I add this http://localhost:8080"/> in the activemq.xml and started Activemq server . The console is show: 2007-05-28 14:00:07.796::INFO: Started SocketConnector @ localhost:8080 INFO TransportConnector - Connect

Re: Way to know whether failover client is connecting?

2007-05-09 Thread Adrian Co
roker has two network connectors, one will connect to > either host1 or host2, while the other will always try to connect to host3. > > So many questions, sorry for the bothering. > > > > Dingwen Yuan > 2007-05-09 > > > > 发件人: Adrian Co > 发送时间: 2007-05-09 15

Re: Way to know whether failover client is connecting?

2007-05-09 Thread Adrian Co
.setNetworkTTL(2); >connector.setDynamicOnly(true); >embeddedBroker.start(); > > > > > Dingwen Yuan > 2007-05-09 > > > > 发件人: Adrian Co > 发送时间: 2007-05-09 13:27:02 > 收件人: users@activemq.apache.org > 抄送: > 主题: Re: Way to know whether failover client is connect

Re: Way to know whether failover client is connecting?

2007-05-08 Thread Adrian Co
A FailoverListener would be interesting, but afaik, its not provided. Dingwen Yuan wrote: > But what is the programmable way to know it? > > > > > Dingwen Yuan > 2007-05-09 > > > > 发件人: spiderman2 > 发送时间: 2007-05-09 11:43:31 > 收件人: users@activemq.apache.org > 抄送: > 主题: Re: Way to know whether fai

Re: Failover blocks send

2007-05-08 Thread Adrian Co
(failover) -> (Master Broker + Slave Broker) You'd have: JMS Client (vm://localhost) + Embedded Broker (failover network) -> (Master Broker + Slave Broker) The thing to watch out for is the networkTTL to ensure that the packet arrives to the remote broker. Dingwen Yuan wrote: > Hello Ad

Re: Failover blocks send

2007-05-08 Thread Adrian Co
I'm guessing it blocks because its trying to reconnect to the broker, and pending the send. Either don't use failover, or use an embedded broker and make your network connection failover. Dingwen Yuan wrote: > Hi all, > > I have used a failover url to configure my JMS client, such as this > "fai

Re: Shutdown script doesn't seem to work in 4.1.1

2007-05-01 Thread Adrian Co
Is JMX enabled in the broker? sparky2708 wrote: I get the following exception when I run the shutdown script. Any ideas? : ACTIVEMQ_HOME: /home/teprod/apache-activemq-4.1.1 ACTIVEMQ_BASE: /home/teprod/apache-activemq-4.1.1 ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason:

Re: Good example/tutorial sites for ActiveMQ

2007-04-30 Thread Adrian Co
Hi, ActiveMQ is a JMS provider and implements the JMS specs. Simply, its JMS and more... :-) Bai Shen wrote: Suchitha Koneru (sukoneru) wrote: How about starting with the Sun JMS tutorial: http://java.sun.com/products/jms/tutorial/ Once you understand JMS, there's also the Using ActiveM

Re: XML Reference out of date?

2007-04-11 Thread Adrian Co
stuff out. Adrian Co wrote: Refer to this: http://activemq.apache.org/wildcards.html mjparme wrote: Actually I think I figured it out. The second link does have everything documented...some are documented as a XML element and some just as properties until another element. I was searchin

Re: XML Reference out of date?

2007-04-10 Thread Adrian Co
Refer to this: http://activemq.apache.org/wildcards.html mjparme wrote: Actually I think I figured it out. The second link does have everything documented...some are documented as a XML element and some just as properties until another element. I was searching for all of them with the "<" on the

Re: how to lookup a topicName dynamically

2007-03-29 Thread Adrian Co
e[]. If I try simple casting the error goes away, but the information is not useful anymore. Is there a workaround for this? Thanks for all the help! Adrian Co wrote: You have to use JMX to access it and enable JMX in activemq. http://java.sun.com/j2se/1.5.0/docs/guide/jmx/tutor

Re: Error in prototype.js

2007-03-29 Thread Adrian Co
Have you tried looking at the portfolio.js and chat.js in activemq-web-demo? It might help you. didyeah971 wrote: Hi, I am posting this message one more time, because the error still occurs. I am triyin to send an xml file via the ajax client, it seems to be published on the topic, and well rec

Re: how to lookup a topicName dynamically

2007-03-29 Thread Adrian Co
BrokerViewMBean. The problem that I am having now is that I don't know how access the BrokerView object? Am I missing something obviously simple here? Any guidance on this will be very helpful. Thanks! Adrian Co wrote: IMO, using BrokerService.getDestinations() will only work when you a

Re: how to lookup a topicName dynamically

2007-03-28 Thread Adrian Co
IMO, using BrokerService.getDestinations() will only work when you are using embedded brokers. I.e. you are deploying the JMS broker inside your app and you have access to the BrokerService object. If you want to access a remote broker (i.e. if you run it via ./activemq), you need to use JMX a

Re: Problems with VM transport

2007-03-27 Thread Adrian Co
eMQConnectionFactory referring to the same broker URL (which is likely to to be the case when using embedded broker)? Thanks, /U -- Original message -- From: Adrian Co <[EMAIL PROTECTED]> [EMAIL PROTECTED] wrote: Adrian, Thanks

Re: Queue message reception failure

2007-03-27 Thread Adrian Co
Weird. Can you post your activemq.xml and client code (at least the connection factory creation, publish code snippet and listener snippet)... bgm_fr wrote: Hi all, There's something weird happening with my application. My app consists in two queues : one for command and one for notificat

Re: Problems with VM transport

2007-03-26 Thread Adrian Co
[EMAIL PROTECTED] wrote: Adrian, Thanks for the note. > >Startup: vm://localhost > >During runtime (after an event): > >failover(vm://localhost,tcp://remote:61616) > > > > Would modifying the broker URL of the connection factory cause p

Re: Problems with VM transport

2007-03-26 Thread Adrian Co
[EMAIL PROTECTED] wrote: Hello... I have a couple of basic questions on ActiveMQ. I would appreciate any hits as I am stuck. I am using ActiveMQ 4.1 with JDK6. 1) When I use an embedded broker with vm transport (vm://localhost) the instantiation of my Spring SimpleMessageListenerContainer alw

Re: Using peer transport

2007-03-22 Thread Adrian Co
I think peer transport is just a shorthand for saying embedded broker + multicast networking. If you want finer grain of control in your peer brokers, you could manually set it up with an embedded broker and just create multicast transports and network connectors to it. Hope this helps. [EM

Re: Need help on Apache MQ

2007-03-21 Thread Adrian Co
You could start here: http://activemq.apache.org/getting-started.html Shilpa wrote: hi, i am new to Apache MQ Series please help me in going ahead i have down loaded apache-activemq-4.1.0-incubator.zip and unzipped to a folder and then i runned activemq.bat located in bin folder so b

Re: Network of brokers configuration ...

2007-02-23 Thread Adrian Co
borja". The message listener does't receive anything ... why ?? Thanx!! On 2/23/07, Adrian Co <[EMAIL PROTECTED]> wrote: AFAIK, by default the network connector uses a demand forwarding bridge, and will forward messages only when there is an interested consumer on the remote broker

Re: Network of brokers configuration ...

2007-02-23 Thread Adrian Co
AFAIK, by default the network connector uses a demand forwarding bridge, and will forward messages only when there is an interested consumer on the remote broker only. I know there is a standard forwarding bridge, but I'm not sure how to configure it in xbean. Sorry. :( David Borja wrote:

Re: ClassCastException, BrokerId

2007-02-13 Thread Adrian Co
Could be that you have client jars with different version than the broker? I'm not really sure though... Vadim Pesochinsky wrote: Hi all! Anyone have seen this exception in 4.1.0? I only use Java clients to commincate with AMQ. Any ideas? I get a lot of "org.apache.activemq.transport.Inactivi

Re: Activemq used as a logging system

2007-02-05 Thread Adrian Co
You might also want to take a look at the JmsLogAppender or JndiJmsLogAppender http://svn.apache.org/viewvc/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/util/JmsLogAppender.java?view=markup http://svn.apache.org/viewvc/activemq/trunk/activemq-optional/src/main/java/org/apac

Re: installation problems

2007-02-01 Thread Adrian Co
Please post what you did and what went wrong. harbhai wrote: hi ! I'm a student of IT and I need to install ActiveMQ for Fedora Core 5. So far I've been unsuccessful, I need the installation procedure step-by-step and fast! thanks, Harikrishnan