Re: active mq exceptions (when tomcat server is stopped)

2007-03-07 Thread James Strachan
On 3/8/07, Suchitha Koneru (sukoneru) <[EMAIL PROTECTED]> wrote: Thank you James for the response. I already have a log4j.properties used by the web application. Does it declare a root logger? Can I declare activemq_home directory , and place log4j.properties file in it, exclusively for a

Re: [Spam: 5.0] Not all threads being used, system underutilized

2007-03-07 Thread James Strachan
On 3/8/07, drvillo <[EMAIL PROTECTED]> wrote: HI James thanks a lot, now it's clearer, but I still cannot figure out why only a portion of the session available are used. Is it possible that I'm not feeding the consumer fast enough, even if the queue is not empty? Yeah it could be. Try flood

it is problem that cannot to connect to remote broker in the web console

2007-03-07 Thread njoonk
hi Folks I'm korean and name's njoonk I would like to use the activemq-web-console to connect to a non embedded broker. is it reasonable to attempt this configuration? I have tried with v4.1, but an embedded broker is always started that conflicts the remote broker. error message --

Re: JDBC Master-Slave doesn' work with DB2

2007-03-07 Thread James Strachan
We've never tested JDBC Master-Slave with DB2. I suspect that there needs to be some work on the SQL required for DB2. I've raised a JIRA to track this http://issues.apache.org/activemq/browse/AMQ-1193 On 2/28/07, Matías Cobiella <[EMAIL PROTECTED]> wrote: JDBC Master-Slave doesn' work with DB

Re: [Spam: 5.0] Not all threads being used, system underutilized

2007-03-07 Thread drvillo
HI James thanks a lot, now it's clearer, but I still cannot figure out why only a portion of the session available are used. Is it possible that I'm not feeding the consumer fast enough, even if the queue is not empty? Moreover, using maxMessagesPerSession=1000 means that the queue size is = #pe

Re: Not all threads being used, system underutilized

2007-03-07 Thread James Strachan
I've documented the settings a little better here... http://cwiki.apache.org/ACTIVEMQ/activation-spec-properties.html On 3/1/07, drvillo <[EMAIL PROTECTED]> wrote: Hi all this is (hopefully finally) an optimization topic: Each message I consume takes ~30 seconds to complete, thus to increase

RE: active mq exceptions (when tomcat server is stopped)

2007-03-07 Thread Suchitha Koneru \(sukoneru\)
Thank you James for the response. I already have a log4j.properties used by the web application. Can I declare activemq_home directory , and place log4j.properties file in it, exclusively for active mq to use it. How can I configure a home directory for active mq ? Please let me know, thank

Re: Stomp: how to reply to a client?

2007-03-07 Thread James Strachan
On 3/8/07, James Strachan <[EMAIL PROTECTED]> wrote: On 3/8/07, Thomas Gagné <[EMAIL PROTECTED]> wrote: > Or more precisely at . > > Thomas Gagné wrote: > > I will. Probably somewhere near > > . Great

Re: [Spam: 5.0] How to maximize MDB throughput with ActiveMQ and JBoss?

2007-03-07 Thread James Strachan
On 3/6/07, kchamber <[EMAIL PROTECTED]> wrote: Thanks for suggestion. Although the prefetch did not do anything (noticeable) in my case. I did discover that for EJB3.0 -- which is what I am doing, that there is a setting in the ejb3-interceptors-aop.xml which in combination of some maxSessions

Re: active mq exceptions (when tomcat server is stopped)

2007-03-07 Thread James Strachan
Yeah, I'd just copy the log4j.properties file from the ActiveMQ distro into the WEB-INF/classes directory On 3/8/07, Suchitha Koneru (sukoneru) <[EMAIL PROTECTED]> wrote: Hello active mq users, I am using active mq 4.0 version. Should I configure log4j properties for active MQ

active mq exceptions (when tomcat server is stopped)

2007-03-07 Thread Suchitha Koneru \(sukoneru\)
Hello active mq users, I am using active mq 4.0 version. Should I configure log4j properties for active MQ . I did not confiure one so far ? I have an embedded broker, which is started as a servlet listener in web.xml of Tomcat 5.5 com.cpnm.common.messagng.ActiveMQBrokerLi

Re: NullPointerException when Getting TopicConnectionFactory from JNDI

2007-03-07 Thread James Strachan
Is your standalone app still using JBoss JNDI? If not it sounds like you need to setup a JNDI context. http://activemq.apache.org/jndi-support.html On 3/7/07, kukusz <[EMAIL PROTECTED]> wrote: I've looked almost everywhere for the solution to this particular problem and have had no luck, perha

Re: Help ! - Broker Hanging up

2007-03-07 Thread James Strachan
On 3/8/07, rabidgremlin <[EMAIL PROTECTED]> wrote: After digging around I found this link: http://activemq.apache.org/slow-consumer-handling.html Since I don't mind if I lose messages (they have a 30 sec lifespan anyway) it looks like I could set up a ConstantPendingMessageLimitStrategy to thro

Re: messages reappear after restart

2007-03-07 Thread James Strachan
I'd definitely upgrade from 4-M4 which is quite old. Go straight to 4.1.1 when its released in the next week or so. On 3/7/07, atxz06 <[EMAIL PROTECTED]> wrote: running activemq 4-M4 on solaris. problem has been around since we ran AMQ 3.2. consuming messages from spring using JMSTemplate via

Re: ActiveMQ sees subscriber when none exists

2007-03-07 Thread James Strachan
On 3/8/07, Thomas Gagné <[EMAIL PROTECTED]> wrote: James Strachan wrote: > > Was this a stomp client? Yes, both the client and consumer were Stomps. Coolio > There was a bug in 4.1.0 where stale stomp > connections which had not DISCONNECTed would lurk around and hog > messages until broker

Re: ClassNotFoundException: No ClassLoaders found for: beans

2007-03-07 Thread James Strachan
I wonder have you editted the broker-config.xml at all? Any chance we can take a look? I suspect its a namespace issue in the XML (e.g. the activemq namespace on the beans element or something) On 3/8/07, dlo1957ca <[EMAIL PROTECTED]> wrote: jdk1.5.0_09 Windows XP I am having a problem runnin

Re: ActiveMQ sees subscriber when none exists

2007-03-07 Thread Thomas Gagné
James Strachan wrote: > > Was this a stomp client? Yes, both the client and consumer were Stomps. > There was a bug in 4.1.0 where stale stomp > connections which had not DISCONNECTed would lurk around and hog > messages until broker restart/explicit close. We've fixed it in 4.1.1 > (due out real

Re: Stomp: how to reply to a client?

2007-03-07 Thread James Strachan
On 3/8/07, Thomas Gagné <[EMAIL PROTECTED]> wrote: Or more precisely at . Thomas Gagné wrote: > I will. Probably somewhere near > . Great thanks! I've added links to it on the ActiveMQ and Stomp sit

Re: ActiveMQ sees subscriber when none exists

2007-03-07 Thread James Strachan
On 3/8/07, Thomas Gagné <[EMAIL PROTECTED]> wrote: During testing of my client it appeared as though some messages weren't arriving at my subscriber. jconsole showed there were two consumers but only one was running. I used a netstat to see if there were any open sockets but none existed. Stil

Re: stomp: how to send *really* big messages?

2007-03-07 Thread James Strachan
As Brian says, if you want to send, say a 1Gb file, then an out of band approach is probably better. If however you're just streaming lots of messages to a client but you want to somehow correlate the messages to an original conversation or request, use a correlation-id on the message so that the

Re: Persistent delivery mode and durable subscriptions

2007-03-07 Thread Rob Davies
Hi Suchitha, yes - for durable subscribers, persistent messages are always placed in the message store of the broker. There are a few different implementations we use for message storage, but generally there is a background thread that tries and removes messages that have expired - though

Re: ActiveMQ sees subscriber when none exists

2007-03-07 Thread Thomas Gagné
Rob Davies wrote: > thanks for the information Thomas. Could you tell us about the version > you are using and your environment ? This might be a known issue that > has already been resolved tgagne:/home/tgagne/work/apache-activemq-4.1.0-incubator bin/activemq --version ACTIVEMQ_HOME: /home/tgagne/

Re: ActiveMQ sees subscriber when none exists

2007-03-07 Thread Rob Davies
thanks for the information Thomas. Could you tell us about the version you are using and your environment ? This might be a known issue that has already been resolved cheers, Rob Davies http://rajdavies.blogspot.com/ On 8 Mar 2007, at 03:31, Thomas Gagné wrote: During testing of my clien

ClassNotFoundException: No ClassLoaders found for: beans

2007-03-07 Thread dlo1957ca
jdk1.5.0_09 Windows XP I am having a problem running "ActiveMQ 4.1.0 Release" on jboss-4.0.5.GA. I tried ActiveMQ 4.0.2 and I can get it to work. The following is the exception generated with "ActiveMQ 4.1.0 Release": 19:11:21,890 INFO [XBeanXmlBeanDefinitionReader] Loading XML bean definitio

Re: stomp: how to send *really* big messages?

2007-03-07 Thread Brian McCallister
On Mar 7, 2007, at 7:28 PM, Thomas Gagné wrote: Can I add my own application headers? Something like: reply.more: true Yes, absolutely. -Brian to indicate to the subscriber there is more to this message? Technically, once I start streaming an answer I don't really know how many pieces t

ActiveMQ sees subscriber when none exists

2007-03-07 Thread Thomas Gagné
During testing of my client it appeared as though some messages weren't arriving at my subscriber. jconsole showed there were two consumers but only one was running. I used a netstat to see if there were any open sockets but none existed. Still, activemq was misplacing messages. I had to recycl

Re: stomp: how to send *really* big messages?

2007-03-07 Thread Thomas Gagné
Can I add my own application headers? Something like: reply.more: true to indicate to the subscriber there is more to this message? Technically, once I start streaming an answer I don't really know how many pieces there will be--only that the answer has so-far exceeded some reasonable-size boun

Re: Stomp: how to reply to a client?

2007-03-07 Thread Thomas Gagné
Or more precisely at . Thomas Gagné wrote: > I will. Probably somewhere near > . > > -- Visit , or

Re: Help ! - Broker Hanging up

2007-03-07 Thread rabidgremlin
After digging around I found this link: http://activemq.apache.org/slow-consumer-handling.html Since I don't mind if I lose messages (they have a 30 sec lifespan anyway) it looks like I could set up a ConstantPendingMessageLimitStrategy to throw away messagse so I don't block. Should this work

messages reappear after restart

2007-03-07 Thread atxz06
running activemq 4-M4 on solaris. problem has been around since we ran AMQ 3.2. consuming messages from spring using JMSTemplate via jencks JCAConnector. Messages persisted using derby database. After killing (kill -9) activemq and restart, all messages show up in the queue and initiate proces

Re: JMX Remote Access - Necessary ports

2007-03-07 Thread Paul Smith
RMI blows because of it's random port thing. I'd advise installing JManage and configure it to connect to your services, then you can use a simple HTML interface to it, and/or use remote shell type commands to communicate via jmx via jmanage as a sort of 'proxy'. cheers, Paul Smith On 08/

Re: stomp: how to send *really* big messages?

2007-03-07 Thread Brian McCallister
On Mar 7, 2007, at 1:37 PM, Thomas Gagné wrote: Let's pretend I want to stream 10MB of data to a client through ActiveMQ as a response to a request. Let's also pretend I don't want to have to hold the entire 10MB in the server all at once but instead would like to feed it to the client in s

Re: JMX Remote Access - Necessary ports

2007-03-07 Thread Christopher G. Stach II
Juergen Mayrbaeurl wrote: > Hi! > > We're running ActiveMQ Version 4.1.0 on AIX with JRE 1.4.x and trying to > access it over JMX from a remote machine. The connector port of the > ManagementContext is set to 61099. Unfortunately we can't connect to the > MBeanServer and get java.rmi.ConnectExcept

Re: JMX Remote Access - Necessary ports

2007-03-07 Thread Christopher G. Stach II
Juergen Mayrbaeurl wrote: > Hi! > > We're running ActiveMQ Version 4.1.0 on AIX with JRE 1.4.x and trying to > access it over JMX from a remote machine. The connector port of the > ManagementContext is set to 61099. Unfortunately we can't connect to the > MBeanServer and get java.rmi.ConnectExcept

stomp: how to send *really* big messages?

2007-03-07 Thread Thomas Gagné
Let's pretend I want to stream 10MB of data to a client through ActiveMQ as a response to a request. Let's also pretend I don't want to have to hold the entire 10MB in the server all at once but instead would like to feed it to the client in smaller pieces. The way I see the messages now there do

Re: Stomp: how to reply to a client?

2007-03-07 Thread Thomas Gagné
I will. Probably somewhere near . -- Visit , or for more great reading.

RE: Persistent delivery mode and durable subscriptions

2007-03-07 Thread Suchitha Koneru \(sukoneru\)
Thank you James for the clarification. I am little unclear on the "time to live" and persistent options for a publisher. "Time to live ", assuming that it is 5 minutes , indicates that a message should be discarded , after the given interval of time . If "time to live" option is used along with p

Re: Stomp: how to reply to a client?

2007-03-07 Thread James Strachan
On 3/7/07, Thomas Gagné <[EMAIL PROTECTED]> wrote: James Strachan wrote: > BTW one idea I had for making this kinda stuff easy to use on stomp > was to add a CONNECT header something like > > CONNECT > auto-reply-to: true > > And that would under the covers, create a temporary destination for > t

Re: Persistent delivery mode and durable subscriptions

2007-03-07 Thread James Strachan
On 3/7/07, Suchitha Koneru (sukoneru) <[EMAIL PROTECTED]> wrote: Hi active mq users , I have a question in regard to persistent delivery for durable subscriptions. Consider the scenario , where in , The subscriber is durable. For the topic publisher , If I set the delivery mod

Re: [Spam: 5.0] JBoss integration and lookup of connection factories.

2007-03-07 Thread kukusz
You want to have: false If you want to avoid using the "java:" prefix. You can find this info http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources here -- View this message in context: http://www.nabble.com/JBoss-integration-and-lookup-of-connection-factories.-tf3061463s2354.html#a936

Re: [Spam: 5.0] NullPointerException when Getting TopicConnectionFactory from JNDI

2007-03-07 Thread kukusz
Ok, after doing some more careful searching I found this post: http://www.nabble.com/JBoss-integration-and-lookup-of-connection-factories.-tf3061463s2354.html#a8513200 This seems to provide some suggestions. -- View this message in context: http://www.nabble.com/NullPointerException-when-Getti

NullPointerException when Getting TopicConnectionFactory from JNDI

2007-03-07 Thread kukusz
I've looked almost everywhere for the solution to this particular problem and have had no luck, perhaps someone has seen this. I have integrated ActiveMQ with JBoss and it works great when JNDI grabs the Topic and TopicConnectionFactory from jboss. The test code looks like: System.out.print

BDB-JE as MessageStore

2007-03-07 Thread Brian S O'Neill
I'm wondering if a MessageStore implementation has been built that uses BDB-JE. It has a log structured format, and so it seems ideally suited for this sort of thing. The kaha store seems to follow a similar approach, and I'm also wondering how it compares to a BDB-JE based implementation. It loo

Re: Stomp: how to reply to a client?

2007-03-07 Thread Thomas Gagné
James Strachan wrote: > BTW one idea I had for making this kinda stuff easy to use on stomp > was to add a CONNECT header something like > > CONNECT > auto-reply-to: true > > And that would under the covers, create a temporary destination for > the client, subscribe to it, then append the reply-to

Persistent delivery mode and durable subscriptions

2007-03-07 Thread Suchitha Koneru \(sukoneru\)
Hi active mq users , I have a question in regard to persistent delivery for durable subscriptions. Consider the scenario , where in , The subscriber is durable. For the topic publisher , If I set the delivery mode to persistent , are the messages saved to disk all the time. Are

RE: [Spam: 5.0] Durable Subscription and Message Expiration

2007-03-07 Thread Suchitha Koneru \(sukoneru\)
What is the delivery mode for the publisher is it non persistent ? -Original Message- From: teryz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 8:45 AM To: users@activemq.apache.org Subject: Re: [Spam: 5.0] Durable Subscription and Message Expiration Hello there, Did someo

Re: Stomp: how to reply to a client?

2007-03-07 Thread James Strachan
BTW one idea I had for making this kinda stuff easy to use on stomp was to add a CONNECT header something like CONNECT auto-reply-to: true And that would under the covers, create a temporary destination for the client, subscribe to it, then append the reply-to header to each SEND so that service

Re: Stomp: how to reply to a client?

2007-03-07 Thread James Strachan
On 3/7/07, Thomas Gagné <[EMAIL PROTECTED]> wrote: As soon as I saw the "reply-to" header (a few minutes ago) I started suspecting that each client would use two queues, one for sending requests to and another for receiving replies on. I was looking around for ways to create unique queues and th

Re: Stomp: how to reply to a client?

2007-03-07 Thread Thomas Gagné
As soon as I saw the "reply-to" header (a few minutes ago) I started suspecting that each client would use two queues, one for sending requests to and another for receiving replies on. I was looking around for ways to create unique queues and though perhaps I can use the connection information I g

Re: Stomp: how to reply to a client?

2007-03-07 Thread James Strachan
On 3/7/07, Thomas Gagné <[EMAIL PROTECTED]> wrote: I'm probably confused... I have a client program that connects fine, and sends a message to /queue/echo that I'd like to echo back to it. In this case it send "Hello, world." I have a program that subscribes to /queue/echo and waits for frames

Stomp: how to reply to a client?

2007-03-07 Thread Thomas Gagné
I'm probably confused... I have a client program that connects fine, and sends a message to /queue/echo that I'd like to echo back to it. In this case it send "Hello, world." I have a program that subscribes to /queue/echo and waits for frames to arrive. When one arrives I want it to echo the f

Re: [Spam: 5.0] Durable Subscription and Message Expiration

2007-03-07 Thread teryz
Hello there, Did someone observed the same problem or am i the only one? Help please ! teryz wrote: > > Hello, > > I am using a topic with durable subscriptions. I use > apache-activemq-4.1.0-incubator. > > I want to limit the life of the messages my producers post in this topic. > > It s

DedicatedTaskRunner question

2007-03-07 Thread drvillo
Hi all I haven't well understood what would be the benefit of using the option -Dorg.apache.activemq.UseDedicatedTaskRunner=true Reading the code i see the comment (TaskRunnerFactory): // If your OS/JVM combination has a good thread model, you may want to avoid // using a thr

JMX Remote Access - Necessary ports

2007-03-07 Thread Juergen Mayrbaeurl
Hi! We're running ActiveMQ Version 4.1.0 on AIX with JRE 1.4.x and trying to access it over JMX from a remote machine. The connector port of the ManagementContext is set to 61099. Unfortunately we can't connect to the MBeanServer and get java.rmi.ConnectException : Connection refused to host ...

Re: [Spam: 5.0] spring package problem

2007-03-07 Thread James Strachan
On 3/7/07, Luciano <[EMAIL PROTECTED]> wrote: I had a similar problem with the JCA connector and didn't succeed on the classloader isolation path :( (no Help from JBoss forum) The only functioning workaround was: 1)eliminate spring 1 jar from the .rar 2)add xbean-spring-2.8.jar into the Spring

Re: [Spam: 5.0] Getting duplicate message from JMS Topic after subscriber restart

2007-03-07 Thread thiamteck
I am using AUTO_ACKNOWLEDGE. James.Strachan wrote: > > What acknowledgement mode are you using? > > On 3/7/07, thiamteck <[EMAIL PROTECTED]> wrote: >> >> this question is initiaally posted at >> http://www.experts-exchange.com/Programming/Languages/Java/Q_22430487.html >> here. >> >> Hi, I am

Re: [Spam: 5.0] spring package problem

2007-03-07 Thread Luciano
I had a similar problem with the JCA connector and didn't succeed on the classloader isolation path :( (no Help from JBoss forum) The only functioning workaround was: 1)eliminate spring 1 jar from the .rar 2)add xbean-spring-2.8.jar into the Spring web app see http://www.nabble.com/JCA-adapter-

Re: Getting duplicate message from JMS Topic after subscriber restart

2007-03-07 Thread James Strachan
What acknowledgement mode are you using? On 3/7/07, thiamteck <[EMAIL PROTECTED]> wrote: this question is initiaally posted at http://www.experts-exchange.com/Programming/Languages/Java/Q_22430487.html here. Hi, I am developing a program that subscribe to a JMS Topic. The JMS provider i use is

Getting duplicate message from JMS Topic after subscriber restart

2007-03-07 Thread thiamteck
this question is initiaally posted at http://www.experts-exchange.com/Programming/Languages/Java/Q_22430487.html here. Hi, I am developing a program that subscribe to a JMS Topic. The JMS provider i use is Apache ActiveMQ 4.1. The subscription to the Topic is durable subscription and the publ

Re: Help ! - Broker Hanging up

2007-03-07 Thread Daryl Richter
On 3/6/07 7:28 PM, "rabidgremlin" <[EMAIL PROTECTED]> wrote: > Would there be a separate buffer per connection ? > > Otherwise a broken listener would still cause all the others to block... > > Also with the current release would a slow listener cause all the other > listeners to slow down becau

Re: spring package problem

2007-03-07 Thread Javier Leyba
On 3/7/07, James Strachan <[EMAIL PROTECTED]> wrote: The Spring jars are not mandatory, you can use ActiveMQ just fine without it. Currently main use of Spring is along with xbean to deal with the XML configuration. If you prefer you could just use Java code to initialise your broker... http://a

Re: spring package problem

2007-03-07 Thread James Strachan
On 3/7/07, Javier Leyba <[EMAIL PROTECTED]> wrote: Hi I've a JBoss service that starts my ActiveMQ brokers and it run's ok. Now, I'm trying to deploy another application that is an axis server deployed as a weapp to offer web services that will use activemq. As JBoss services load classes befo

spring package problem

2007-03-07 Thread Javier Leyba
Hi I've a JBoss service that starts my ActiveMQ brokers and it run's ok. Now, I'm trying to deploy another application that is an axis server deployed as a weapp to offer web services that will use activemq. As JBoss services load classes before my webapp, my webapp could use the classes loaded

Re: [Spam: 5.0] Evaluating Embedded ActiveMQ - questions

2007-03-07 Thread James Strachan
On 3/7/07, rbector <[EMAIL PROTECTED]> wrote: James.Strachan wrote: > > On 3/6/07, rbector <[EMAIL PROTECTED]> wrote: > >> I am still trying to understand why this is hard to manage if you are >> using >> a database. >> Cant all the participating applications use the same database ? What >> exa