Problems setting up XMPP transport

2007-03-09 Thread nlif
Hi, I am trying to setup ActiveMQ with XMPP support, but I get this exception: 2007-03-09 19:31:47,656 ERROR ActiveMQ Transport: tcp:///127.0.0.1:3940 [org.apache.activemq.transport.xmpp.XmppTransport] - javax.xml.stream.XMLStreamException at com.bea.xml.stream.MXParser.fillBuf(MXParser

Using queues instead of topics with xmpp

2007-03-09 Thread Abdullah Jibaly
Hi all, The xmpp example page on the wiki shows how to connect and start a conversation using topics. Any ideas how to use a queue instead? Thanks, Abdullah

Using JAAS in a broker embedded in JBOSS

2007-03-09 Thread Lorne Wilson
Folks, I am using a fairly recent 4.2 SNAPSHOT (apache-activemq-4.2-20070226.071451-14). I am using the activemq-rar file from lib/optional and installing that to a JBOSS server. It comes up and runs and seems to work fine. I am now trying to configure the embedded broker to use the jaasAuthenti

Messages out of order on redelivery using ActiveMQInputStream

2007-03-09 Thread cmcnally
I'm sending large files (50-100 MB) using ActiveMQInputStreams. Everything works fine as long as there are no redelivered messages. When there are, the redelivered messages are in reverse order... # brokers: 1 destination: topic (w/ a durable subscriber) version: ActiveMQ-4.1.0 So I start rec

Re: [Spam: 5.0] JDBC Master-Slave doesn' work with DB2

2007-03-09 Thread Matías Cobiella
Hi James, I've tried with the last SNAPSHOP and the JDBC MASTER-SLAVE behavior was the expected. The first broker becomes MASTER and the second broker waits until the MASTER releases the lock. Thank you! Matías. James.Strachan wrote: > > On 3/8/07, James Strachan <[EMAIL PROTECTED]> wrote:

Re: [Spam: 5.0] Embedding ActiveMQ in Sun App Server 9

2007-03-09 Thread AsaUK
I am using activemq-rar-4.1-SNAPSHOT.rar Maybe that is not recent enough. Still I am not too worried about that one as I can easily upgrade at a later date or just build the source. I think you are right with the null pointer, not a top error though. I will try and get that working. The external

journal locked exceptions

2007-03-09 Thread Suchitha Koneru (sukoneru)
Hello active Mq users , is there any way out to overcome journal locked exceptions ? please help me out. I am getting a journal Locked Exception , when ever I re start tomcat. How come the journal is still locked , when the broker is stopped. The following is the exception org.apache.activeio

Re: [Spam: 5.0] Message is not delivered and disappears

2007-03-09 Thread cmathrusse
I'm using Bitronix Transaction Manager for all TX related operations. It provides me with a class that will manage the JmsConnectionFactory by wrapping it in a ConnectionPool. All access to the ConnectionFactory is managed by this class. ${jms.connection.fact

Re: Using activemq as a jabber server

2007-03-09 Thread Abdullah Jibaly
Just a note that this turned out to be the Spark client itself. James added a note on the wiki showing how to turn off auto discovery of server/port so shouldn't be an issue anymore. On 3/9/07, James Strachan <[EMAIL PROTECTED]> wrote: BTW do you see any DEBUG statements showing that the XMPP tr

Re: Using activemq as a jabber server

2007-03-09 Thread James Strachan
BTW do you see any DEBUG statements showing that the XMPP transport in ActiveMQ is receiving messages over XMPP? On 3/9/07, James Strachan <[EMAIL PROTECTED]> wrote: Are you sure there's not a firewall or something between your Spark client and the broker? On 3/9/07, Abdullah Jibaly <[EMAIL PRO

Re: Using activemq as a jabber server

2007-03-09 Thread James Strachan
Are you sure there's not a firewall or something between your Spark client and the broker? On 3/9/07, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: Here's the only exception I saw when I changed the log level to debug: DEBUG ManagementContext - Failed to create local registry java.lan

Re: [Spam: 5.0] Message is not delivered and disappears

2007-03-09 Thread James Strachan
On 3/9/07, cmathrusse <[EMAIL PROTECTED]> wrote: Yes, the change to port 2100 was intentional. The activemq.xml file on the server was updated to this value. If it hadn't been I would not have been able to connect to it. My server application is using the JmsTemplate but that is not the issue a

Re: [Spam: 5.0] Embedding ActiveMQ in Sun App Server 9

2007-03-09 Thread James Strachan
On 3/9/07, AsaUK <[EMAIL PROTECTED]> wrote: Hi James, I am working along with Nic on this one. I have uploaded the rar file fine with the only parameter set being BrokerXmlConfig as "broker:(tcp://localhost:61616)" I can then connect to the appserver jms from an outside client using 4.0.x (can

Re: Using activemq as a jabber server

2007-03-09 Thread Abdullah Jibaly
Here's the only exception I saw when I changed the log level to debug: DEBUG ManagementContext - Failed to create local registry java.lang.ClassNotFoundException: mx4j.tools.naming.NamingService at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.

Re: [Spam: 5.0] Message is not delivered and disappears

2007-03-09 Thread cmathrusse
Yes, the change to port 2100 was intentional. The activemq.xml file on the server was updated to this value. If it hadn't been I would not have been able to connect to it. My server application is using the JmsTemplate but that is not the issue as I am using ConnectionPooling. I've managed to g

Re: [Spam: 5.0] Using Activemq-web-console with a BrokerService in Geronimo

2007-03-09 Thread James Strachan
On 3/9/07, ananner <[EMAIL PROTECTED]> wrote: Is the broker considered "remote" if it is running in embedded mode? The broker is run outside of the WAR, but as "vm://localhost". It might be - depending on the classloaders -- James --- http://radio.weblogs.com/0112098/

Re: [Spam: 5.0] Using Activemq-web-console with a BrokerService in Geronimo

2007-03-09 Thread ananner
Is the broker considered "remote" if it is running in embedded mode? The broker is run outside of the WAR, but as "vm://localhost". James.Strachan wrote: > > On 3/9/07, ananner <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I've deployed the ActiveMQ web console on Geronimo, but I'm not sure how >

Re: Using activemq as a jabber server

2007-03-09 Thread James Strachan
I'm a bit stumped on this one. All I can think of right now is you enable debug logging in the log4j.properties file and see if that helps any On 3/9/07, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: Here is a screenshot showing the error I'm getting, as well as my activemq.xml: http://ac

Delayed Delivery of Messsages

2007-03-09 Thread LiXiao2007
Does Activemq have the capability of delaying the delivery of the messages. Here is something we would like to do in our retry logic. Get a message from queue and talk to the backend. If there is an error from the backend, post a retry message back to the queue. But we would like the message se

Re: Using Activemq-web-console with a BrokerService in Geronimo

2007-03-09 Thread James Strachan
On 3/9/07, ananner <[EMAIL PROTECTED]> wrote: Hi, I've deployed the ActiveMQ web console on Geronimo, but I'm not sure how to go about having the console connect to the existing BrokerService that is running Geronimo. The web console doesn't yet support connecting to remote brokers. (Though i

Using Activemq-web-console with a BrokerService in Geronimo

2007-03-09 Thread ananner
Hi, I've deployed the ActiveMQ web console on Geronimo, but I'm not sure how to go about having the console connect to the existing BrokerService that is running Geronimo. In the WEB-INF/applicationContext.xml, I've commented out the BrokerService bean, since I do not want to start another Broke

Re: How to change the thread name of a message Listener

2007-03-09 Thread James Strachan
On 3/9/07, LiXiao2007 <[EMAIL PROTECTED]> wrote: I would to change the name of the message listener thread for better debugging. Current all the message listener threads share same name "ActiveMQ Session Task". Could someone tell me a way to change the name? You could try patching the ActiveMQ

Re: Delayed Delivery of Messsages

2007-03-09 Thread James Strachan
On 3/9/07, LiXiao2007 <[EMAIL PROTECTED]> wrote: Does Activemq have the capability of delaying the delivery of the messages. We don't yet support arbitrary delayed message delivery... http://issues.apache.org/activemq/browse/AMQ-499 Here is something we would like to do in our retry logic. G

Re: Using activemq as a jabber server

2007-03-09 Thread Abdullah Jibaly
I forgot to mention, I also tried that simpleAuthenticationPlugin sample, put it in my activemq.xml but the command agent then fails to startup. I'm running off of the svn trunk and built activemq using maven. Thanks, Abdullah On 3/9/07, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: Hi James, Tha

Re: Using activemq as a jabber server

2007-03-09 Thread Abdullah Jibaly
Hi James, Thanks for the response. The method you outlined is exactly what I want to use it for. However, I think my question is much more basic: In the xmpp page you have an example with spark, using a username and password right? How do I configure a username and password is my question? I trie

Re: [Spam: 5.0] Embedding ActiveMQ in Sun App Server 9

2007-03-09 Thread AsaUK
Hi James, I am working along with Nic on this one. I have uploaded the rar file fine with the only parameter set being BrokerXmlConfig as "broker:(tcp://localhost:61616)" I can then connect to the appserver jms from an outside client using 4.0.x (can't use 4.1 as the rar does not have openwire v

Re: [Spam: 5.0] JMX Remote Access - Necessary ports

2007-03-09 Thread Christopher G. Stach II
Juergen Mayrbaeurl wrote: > Can you tell me something about the mentioned ways to get it worked? How does > this work with RMI based EJB access? We don't have this problems with our > JBoss servers. > > Kind regards > Juergen http://issues.apache.org/activemq/browse/AMQ-1164 So, if you configure

RE: Durable Subscription and Message Expiration

2007-03-09 Thread teryz
Sorry to bother you guys again, but this feature (message expiration) is really important for my needs. So if you can explain what the non-persitent delivery mode has to do with my problem, it will help me a lot. Thx in advance, Terry Suchitha Koneru (sukoneru) wrote: > > What is the delivery

Re: spring package problem

2007-03-09 Thread James Strachan
BTW I'm replying but taking future discussions over to the dev list... On 3/9/07, Javier Leyba <[EMAIL PROTECTED]> wrote: On 3/8/07, James Strachan <[EMAIL PROTECTED]> wrote: > > BTW it would be pretty useful to have a pure properties files based > way to configure the broker! Fancy starting it

Re: spring package problem

2007-03-09 Thread Javier Leyba
On 3/8/07, James Strachan <[EMAIL PROTECTED]> wrote: BTW it would be pretty useful to have a pure properties files based way to configure the broker! Fancy starting it off and we can improve it? James Well, I need to do it for me so, if it could be useful for others... I know how load prop

Re: [Spam: 5.0] Embedding ActiveMQ in Sun App Server 9

2007-03-09 Thread James Strachan
On 3/9/07, nicpillinger <[EMAIL PROTECTED]> wrote: If we deploy the activemq resource adaptor how do we configure the embedded broker? How do we actually get the broker running and listening on 61616 from inside the app server? Its described on this page http://activemq.apache.org/resource-adap

Re: Non Heap Memory Usage

2007-03-09 Thread James Strachan
On 3/9/07, Gaurav Hariani <[EMAIL PROTECTED]> wrote: I see that irrespective of the number of clients connected to a broker or the number of messages being sent (or the size of messages) the JMX Console reports that the broker is using 20Mb of Non-Heap Memory ... is this a limit by design ... can

Re: [Spam: 5.0] Newbie's Question

2007-03-09 Thread James Strachan
On 3/9/07, tabshift <[EMAIL PROTECTED]> wrote: Hi Rob, sorry, maybe a silly question, but I think my messages not to be "non-persistent". So what makes a messsage "persistent"? The delivery mode specified on the MessageProducer. (They are persistent by default). I am using a simple script t

Non Heap Memory Usage

2007-03-09 Thread Gaurav Hariani
I see that irrespective of the number of clients connected to a broker or the number of messages being sent (or the size of messages) the JMX Console reports that the broker is using 20Mb of Non-Heap Memory ... is this a limit by design ... can I increase this limit to improve throughput? Chan

Re: [Spam: 5.0] Newbie's Question

2007-03-09 Thread tabshift
Hi Rob, sorry, maybe a silly question, but I think my messages not to be "non-persistent". So what makes a messsage "persistent"? I am using a simple script that produces a number of text-messages. While testing an other JMS-System my messages stayed in that store until they were consumed. TIA

Re: Newbie's Question

2007-03-09 Thread Rob Davies
there's tmp storage for non-persistent messages that have overflowed the VM - even if that area is empty - its always cleared down on a re- start - and that's what the message at start-up refers to cheers, Rob Davies http://rajdavies.blogspot.com/ On 9 Mar 2007, at 10:08, tabshift wrote:

Newbie's Question

2007-03-09 Thread tabshift
Hi all, using ActiveMQ-4.2-Snapshot. After starting the broker and posting a message to a queue I get INFO KahaStore - Kaha Store successfully deleted data directory activemq-data/hatest1/tmp_storage and my former filled queues are empty. I set deleteAllMessagesOnStartup="

Re: [Spam: 5.0] Embedding ActiveMQ in Sun App Server 9

2007-03-09 Thread nicpillinger
If we deploy the activemq resource adaptor how do we configure the embedded broker? How do we actually get the broker running and listening on 61616 from inside the app server? Once it's actually running what's the process for getting a normal mdb wired up to listen to a queue/topic on the embedde

Re: [Spam: 5.0] JMX Remote Access - Necessary ports

2007-03-09 Thread Juergen Mayrbaeurl
Can you tell me something about the mentioned ways to get it worked? How does this work with RMI based EJB access? We don't have this problems with our JBoss servers. Kind regards Juergen Christopher G. Stach II wrote: > > Juergen Mayrbaeurl wrote: >> Hi! >> >> We're running ActiveMQ Version

Re: [Spam: 5.0] JMX Remote Access - Necessary ports

2007-03-09 Thread Juergen Mayrbaeurl
Sorry I forget to mention that 'our' machines are the machines of the customer. They do the installations and it's always a little bit tricky to get 'new' components installed. Juergen James.Strachan wrote: > > On 3/9/07, Juergen Mayrbaeurl <[EMAIL PROTECTED]> wrote: >> >> Thanks! Unfortunatel

Re: Using activemq as a jabber server

2007-03-09 Thread James Strachan
On 3/8/07, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: Hi all, I'm having trouble setting up ActiveMQ as a Jabber server. I tried to follow the directions on the xmpp page but there are lots of holes in it. For example, how do I configure the username/password, where do i set those up? Has anyone

Re: [Spam: 5.0] JMX Remote Access - Necessary ports

2007-03-09 Thread James Strachan
On 3/9/07, Juergen Mayrbaeurl <[EMAIL PROTECTED]> wrote: Thanks! Unfortunately we don't have Java 5 needed by JManage 2.0 on our machines. You could always install it? (James ducks :-) -- James --- http://radio.weblogs.com/0112098/

Re: Message is not delivered and disappears

2007-03-09 Thread James Strachan
BTW your code uses this... props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.activemq.jndi.ActiveMQInitialContextFactory"); props.put(Context.PROVIDER_URL, "tcp://localhost:2100"); thats the host/port used to connect to the broker. Have you changed the active