Re: Consumers decrease sender performance.

2008-01-22 Thread Hiram Chirino
If your using spring make sure you enable consumer caching. Otherwise consumers are getting created a destroyed on each message received. On Jan 21, 2008 12:23 PM, Datacom - Marcelo <[EMAIL PROTECTED]> wrote: > We are having a problem with our sender and consumers being slowling > down. I realize

Re: Messages are not removed from queue after onMessage is fired

2008-01-22 Thread Fady
Here are snippets from my Java code. Please let me know if this is enough. /* -*/ /* Code used to send the message */ /* ---

Re: "Embedded broker", "network of brokers" and "temporary queues"

2008-01-22 Thread ttmdev
It sounds like your embedded client broker connects to the server, but not the other way around? Each of the embedded brokers must have a network connector to the other (forwarding bridge) if you expect both to produce/forward messages to one another. In 4.1, connections between brokers are one-wa

Re: Messages are not removed from queue after onMessage is fired

2008-01-22 Thread James Strachan
That sounds wonky - whats your Java code look like? On 22/01/2008, Fady <[EMAIL PROTECTED]> wrote: > > Thanks for your reply James, > > I am not seing any exceptions coming out of onMessage. > > I ran more tests and things are more complicated than I first thought. > > When I run 100 sends/receive

"Embedded broker", "network of brokers" and "temporary queues"

2008-01-22 Thread Eric-AWL
Hi ! I'm new with ActiveMQ I succeeded in implementing a kind of Question/Answers protocol between a client and a server, using JNDI-defined queues and temporary queues (setJMSReplyTo, in the question JMS message and one temporary queue by client thread) for the answer. I have two different ser

Re: Messages are not removed from queue after onMessage is fired

2008-01-22 Thread Fady
Thanks for your reply James, I am not seing any exceptions coming out of onMessage. I ran more tests and things are more complicated than I first thought. When I run 100 sends/receives, JMX shows a QueueSize=100 and DispatchCount=100 after the test has run, where I was expecting QueueSize=0 (s

Re: Consumer is closed Exception

2008-01-22 Thread activemqnewbie
Below is the source for MessageConsumer.java package ss.integration.util; import javax.jms.TopicConnectionFactory; import javax.jms.TopicConnection; import javax.jms.Topic; import javax.jms.TopicSession; import javax.jms.TopicSubscriber; import javax.jms.MessageListener; import javax.jms

Re: Consumer is closed Exception

2008-01-22 Thread activemqnewbie
Below is the complete stack trace. <2008/01/10 10:43:23.127><21621663><> ExceptionListener receives a JMS exception <2008/01/10 10:43:23.127><21621663><> Unregistering Message Listener... <2008/01/10 10:43:23.127><21621663><> Notifying/signaling a waiting thread... <2008/01/10 10:43:23.144><2

Re: Activemq.xml configuration settings directory

2008-01-22 Thread activemqnewbie
Below is the source for MessageConsumer.java package ss.integration.util; import javax.jms.TopicConnectionFactory; import javax.jms.TopicConnection; import javax.jms.Topic; import javax.jms.TopicSession; import javax.jms.TopicSubscriber; import javax.jms.MessageListener; import javax.jms.JMSExc

Re: Consumer is closed Exception

2008-01-22 Thread James Strachan
On 22/01/2008, activemqnewbie <[EMAIL PROTECTED]> wrote: > > > As specified in previous posting, > Below is the stack trace. > <2008/01/10 10:43:23.127><21621663><> ExceptionListener receives a > JMS exception <2008/01/10 10:43:23.127><21621663><> Unregistering > Message Listener... <2008/01/10 10:

Re: Consumer is closed Exception

2008-01-22 Thread activemqnewbie
As specified in previous posting, Below is the stack trace. <2008/01/10 10:43:23.127><21621663><> ExceptionListener receives a JMS exception <2008/01/10 10:43:23.127><21621663><> Unregistering Message Listener... <2008/01/10 10:43:23.127><21621663><> Notifying/signaling a waiting thread... <2008

Re: Activemq.xml configuration settings directory

2008-01-22 Thread James Strachan
The exception is being generated from the code in this package : ss.integration.util I've no idea what that is - got the source? On 22/01/2008, activemqnewbie <[EMAIL PROTECTED]> wrote: > > We are getting NullpointerException and the consumer shuts off. > Consumer after receiving certain number o

Re: Consumer is closed Exception

2008-01-22 Thread James Strachan
On 22/01/2008, activemqnewbie <[EMAIL PROTECTED]> wrote: > > Subscriber closes with an exception(below)after consuming certain > messages.This happens at different intervals. > Appreciate if someone could let me know the reason and solution for this. Looks like someone is closing the connection/se

Consumer is closed Exception

2008-01-22 Thread activemqnewbie
Subscriber closes with an exception(below)after consuming certain messages.This happens at different intervals. Appreciate if someone could let me know the reason and solution for this. Am using activemq 5.0,java 5. Is there any property/setting that i need to do ? Below is the stack trace. <

Re: Consumers decrease sender performance.

2008-01-22 Thread Datacom - Marcelo
We are using 4.1.1. I will give a try to Session.DUPS_OK_ACKNOWLEDGE as sugested. James Strachan escreveu: On 21/01/2008, Datacom - Marcelo <[EMAIL PROTECTED]> wrote: We are having a problem with our sender and consumers being slowling down. I realize if I put down some consumers

Re: ActiveMQ 5 and Log4j JMSAppender error

2008-01-22 Thread Tom Johnson
I think I finally found a solution. In the ProviderURL of the appender adding "?wireFormat.cacheEnabled=false" let the log4j JMSAppender talk to an ActiveMQ topic. I.e. log4j.appender.JMS.ProviderURL=tcp://localhost:61616?wireFormat.cacheEnabled=false -- View this message in context: http://

Re: Authentication of clients

2008-01-22 Thread ttmdev
You can point your broker to an xml configuration file, which includes a simpleAuthenticationPlugin as follows. Also see http://activemq.apache.org/security.html Joe Rudi23 wrote: > > Hello, > > in my application I start an embedded broker as follows: > > B

Re: ClassNotFoundException ApplicationContextFilter

2008-01-22 Thread DaveKant
We solved the problem. A known issue in Solaris tar causes files of typeflag 'L' to be truncated. This appears to affect most files in the WEB-INF directory. To fix, we used GNU tar to unpack. x apache-activemq-5.0.0/webapps/admin/js/plotkit/SVG.js, 25177 bytes, 50 tape blocks tar: ././@LongLink

Activemq.xml configuration settings directory

2008-01-22 Thread activemqnewbie
We are getting NullpointerException and the consumer shuts off. Consumer after receiving certain number of messages consumer automatically closes throwing a null pointer exception. Activemq 5 Oracle10g Below is the stack trace. <2008/01/22 09:52:56.470><23459640><> ExceptionListener receive

Activemq.xml configuration settings directory

2008-01-22 Thread activemqnewbie
We are getting NullpointerException and the consumer shuts off. Consumer after receiving certain number of messages consumer automatically closes throwing a null pointer exception. Activemq 5 Oracle10g Below is the stack trace. <2008/01/22 09:52:56.470><23459640><> ExceptionListener receives a J

Re: Migration from Spring 1/AMQ 4.1 to Spring 2/AMQ 5.0

2008-01-22 Thread James Strachan
On 22/01/2008, b_w <[EMAIL PROTECTED]> wrote: > > At the bottom of this page under the BACKGROUND section: > http://activemq.apache.org/version-5-xml-configuration.html > > So we use the Spring XML configuration file format > > The link from Spring XML gives a 404. Link now fixed http://cwiki.apac

Re: NegativeArraySizeException in Unmarshal

2008-01-22 Thread TOPPER_HARLEY
We dont use this multicast, we are in control of the clients as well as the broker as its an "in-house" standalone client application that connects to the broker/server. "Random" clients cannot connect James.Strachan wrote: > > On 22/01/2008, James Strachan <[EMAIL PROTECTED]> wrote: >> Ar

Re: NegativeArraySizeException in Unmarshal

2008-01-22 Thread TOPPER_HARLEY
Pretty sure yeah, not trying to be smart, both are apache-activemq-4.1.1.jar, size is 4532261 on both. I thought it might be something to do with the fact that we use a Future to cancel a task that may be sending data. We use future.cancel(true) allowing the thread to be interruped, maybe its not

Re: ClassNotFoundException ApplicationContextFilter

2008-01-22 Thread ttmdev
ApplicationContextFilter is deployed as part of the 'admin' web application, so you can find it in .../webapps/admin/WEB-INF/classes FWIW, I don't set CLASSPATH when I launch the standalone broker via .../bin/activemq Joe DaveKant wrote: > > I have a problem starting ActiveMQ (5.0.0) on th

Re: Migration from Spring 1/AMQ 4.1 to Spring 2/AMQ 5.0

2008-01-22 Thread b_w
At the bottom of this page under the BACKGROUND section: http://activemq.apache.org/version-5-xml-configuration.html So we use the Spring XML configuration file format The link from Spring XML gives a 404. Thanks for the feedback and I'll let you know if we make any progress with the Spring 2.5

Re: Messages are not removed from queue after onMessage is fired

2008-01-22 Thread James Strachan
On 22/01/2008, Fady <[EMAIL PROTECTED]> wrote: > > Hello, > > I am new to JMS and ActiveMQ so I am probably doing something stupid but > can't figure out what it is: > > I am running ActiveMQ 5.0.0 imbedded in a Tomcat application. I have a > non-persistent producer, from a non-transacted and autoa

Messages are not removed from queue after onMessage is fired

2008-01-22 Thread Fady
Hello, I am new to JMS and ActiveMQ so I am probably doing something stupid but can't figure out what it is: I am running ActiveMQ 5.0.0 imbedded in a Tomcat application. I have a non-persistent producer, from a non-transacted and autoacknowledge session, creating messages in a queue and a Messa

Re: Migration from Spring 1/AMQ 4.1 to Spring 2/AMQ 5.0

2008-01-22 Thread James Strachan
On 22/01/2008, b_w <[EMAIL PROTECTED]> wrote: > > Thanks James. > > If you don't mind, a couple more questions. The builds we are using are: > AMQ 5.0.0 > Spring 2.5.1 > Tomcat 5.5.25 > Java 1.5.0 > Hibernate 3.2.5 (any risk of conflicting libs?) We've not yet tried Spring 2.5.x with ActiveMQ/xbe

Authentication of clients

2008-01-22 Thread Rudi23
Hello, in my application I start an embedded broker as follows: BrokerService broker = new BrokerService(); broker.addConnector("tcp://localhost:61616"); broker.start(); The broker starts up and I can use it both on localhost and remote. Everything is fine so far. Now I would like to enforce a

Re: Migration from Spring 1/AMQ 4.1 to Spring 2/AMQ 5.0

2008-01-22 Thread b_w
Thanks James. If you don't mind, a couple more questions. The builds we are using are: AMQ 5.0.0 Spring 2.5.1 Tomcat 5.5.25 Java 1.5.0 Hibernate 3.2.5 (any risk of conflicting libs?) Does this jive? And, the url in the documentation linking to a sample Spring 2 XML is http 404. Believe it was

ClassNotFoundException ApplicationContextFilter

2008-01-22 Thread DaveKant
I have a problem starting ActiveMQ (5.0.0) on the Solaris 10 platform with a ClassNotFoundException thrown. The problem is related to the admin console so that when the section below is commented, the server starts up fine. Where is org.apache.activemq.web.filter.ApplicationContextFilter? We set

Re: MimeBodyPart attachment

2008-01-22 Thread James Strachan
On 16/01/2008, LeeZ01 <[EMAIL PROTECTED]> wrote: > > I need to send email with attachment from producer server to a consumer > server. On the producer server, a file (PDF, MS Doc, etc.) is loaded as > attachment, together with addressTo, addressFrom, subject, etc. are sent to > ActiveMQ. The cons

Re: NegativeArraySizeException in Unmarshal

2008-01-22 Thread James Strachan
On 22/01/2008, James Strachan <[EMAIL PROTECTED]> wrote: > Are you positive you are using exactly the same jars on the client > side and broker? Bear in mind with multicast discovery, someone on your network could be running a different version of ActiveMQ... > > On 17/01/2008, TOPPER_HARLEY <[E

Re: NegativeArraySizeException in Unmarshal

2008-01-22 Thread James Strachan
Are you positive you are using exactly the same jars on the client side and broker? On 17/01/2008, TOPPER_HARLEY <[EMAIL PROTECTED]> wrote: > > Thanks for the reply, but I dont think thats our issue. We are still on 4.1.1 > and dont use persistent messaging at all. > > Thanks for the input though.

Re: How to determine message location in a queue

2008-01-22 Thread James Strachan
On 17/01/2008, Rob Bugh <[EMAIL PROTECTED]> wrote: > > > What is the best way to determine (to the extent that this makes sense) a > message's position in a queue? > > Assuming messages represents a long running tasks and so the queue is > depleted at a rather slow pace and the messages are removed

Re: Activemq.xml configuration settings directory

2008-01-22 Thread James Strachan
On 18/01/2008, activemqnewbie <[EMAIL PROTECTED]> wrote: > > Is there any document that lists all the configuration properties description > that can be set in activemq.xml. > I looked at http://activemq.apache.org/jndi-support.html and the activemq > tutorial. but couldn't find one. See http://

Re: vm question

2008-01-22 Thread James Strachan
On 20/01/2008, nanik <[EMAIL PROTECTED]> wrote: > > Ok I managed to get it working, all that was left out was the following line > of code > > connection.start(); Thats a common JMS spec gotcha - we've all falled on that one. http://activemq.apache.org/i-am-not-receiving-any-messages-what-is-wron

Re: Migration from Spring 1/AMQ 4.1 to Spring 2/AMQ 5.0

2008-01-22 Thread James Strachan
I'm not sure - but there's no real point using failover with the vm transport and specifying maxInactivityDuration. If you are using VM then the broker is always in RAM and there's no chance of sockets failing. So change your URL to just vm://localhost?brokerConfig=xbean:/activemq.xml On 22/01/20

Re: Consumers decrease sender performance.

2008-01-22 Thread James Strachan
On 21/01/2008, Datacom - Marcelo <[EMAIL PROTECTED]> wrote: > We are having a problem with our sender and consumers being slowling > down. I realize if I put down some consumers, the server increase its > performance and so the consumers. We took a look via JMX when the whole > system was very slow

Re: ActiveMQ 5.0.0 depends on SNAPSHOT?

2008-01-22 Thread James Strachan
On 22/01/2008, Bruce Snyder <[EMAIL PROTECTED]> wrote: > On Jan 21, 2008 5:00 PM, emcee21 <[EMAIL PROTECTED]> wrote: > > > > > > > > James.Strachan wrote: > > > > > > Which pom.xml is using the snapshot of activeio? > > > > > > FWIW its no longer required for working with ActiveMQ. e.g. you could >

Re: I Really Want to use ActiveMQ

2008-01-22 Thread James Strachan
On 21/01/2008, cmagoyrk <[EMAIL PROTECTED]> wrote: > > First I would like to thank Rob for solving that specific issue, I have not > yet had time to grab the latest release but once I do I will most definitely > be using that feature. > > James - I appreciate your quick response to my concerns. Yo