Re: Message is sendt more than once

2008-12-01 Thread Lars Eirik Rønning
thanks for all the help, but i am not able to get this working correctly. The code is like this: public void start(){ try{ ConnectionFactory factory = getTemplate().getConnectionFactory(); con = factory.createConnection(); con.start(); session =con.createSession(false,Session.AUTO_ACKNOWLEDGE); M

Re: failover URI

2008-12-01 Thread Rob Davies
Try: failover://(tcp://primary:61616,tcp://secondary:61616)? randomize=false&maxReconnectAttempts=10 On 2 Dec 2008, at 00:09, yinghe0101 wrote: hi, Can I do the configure the following activemq url on the client side? failover://(failover://(tcp://primary:61616,tcp://secondary:61616)? ra

Cannot get slow consumers to discard messages

2008-12-01 Thread mar1394
I'm using Active MQ 5.0 on a RedHat Linux system. I have a number of slow consumers in my network, but I cannot get the slow consumer policies to work. I have set the PrefetchSize on the connection URL. java.naming.provider.url=tcp://localhost:61614?connectionTimeout=0&jms.prefetchPolicy.all=10

Can we define more then one target for eip-content based router

2008-12-01 Thread manish_goyal
Hi, I have a scenario where i need to route message to two different queue, if it satisfy some conditions. I have specified two provider as MyProviderService1 and MyProviderService2 for two different queues. When i am trying to add

Recurring problem with blocking sends in 5.2

2008-12-01 Thread qwidjibo
Hi all. I've been having recurring issues with blocking sends that I'm having a really hard time diagnosing. I've got a couple of moderately high traffic queues (single digit msgs/sec) being published to by a couple of java services (over openwire) and received by O(100) stomp+ssl clients. They

failover URI

2008-12-01 Thread yinghe0101
hi, Can I do the configure the following activemq url on the client side? failover://(failover://(tcp://primary:61616,tcp://secondary:61616)?randomize=false&maxReconnectAttempts=10, failover://(tcp://primary:61616,tcp://secondary:61616)?randomize=false&maxReconnectAttempts=10)?randomize=false It

activemq-rar, XA, Spring, Glassfish

2008-12-01 Thread kyunam
Hi, here are some random questions I'd like to throw.. 1. What is "activemq-rar-xxx.rar" for & when/why do you use them? 2. I use Spring for everything and activemq is configured thru Spring API. Assuming #1 answers will involve with JNDI, JTA in Application Server,.. which way is generally rec

Re: does ActiveMQ work within VM under z/9 (WAS6.1 & MQ6.0)

2008-12-01 Thread Mario Siegenthaler
We successfully use ActiveMQ on the Unix partition of the z/9. We only run the client part there (the broker runs on a x86-linux box), but I'd think that the server has any issues running. You cannot use the MQ queues directly in ActiveMQ, but you can setup a bridge to transfer the messages. Of cou

Re: ActiveMQ and Websphere App Server integration

2008-12-01 Thread John Whelan
I have not gotten much further than you have, but I have noticed that for ActiveMQ 5.2, the the name of the class is org.apache.activemq.jndi.ActiveMQWASInitialContextFactory, not org.activemq.jndi.ActiveMQWASInitialContextFactory. -- View this message in context: http://www.nabble.com/ActiveMQ

Maven site creation showing error

2008-12-01 Thread lalmohan
Hello, I'm running mvn clean site -P in a module and getting the following error. INFO] [site:site] [WARNING] No Clover database found, skipping report generation [ERROR] No URL set in Issue Management. No Trac Report will be generated. [ERROR] No URL set in Issue Management. No JIRA Report

Disable Stomp transport from sending messages

2008-12-01 Thread njones
Hi. We have a case at work where we want to disable the sending of messages over the stomp transport. Is this possible? I was looking at a custom BrokerFilter that overrides the send method and checks the connection info, but in my tests the Connection is being stripped out of the message at som

Re: Message is sendt more than once

2008-12-01 Thread James Strachan
2008/12/1 Lars Eirik Rønning <[EMAIL PROTECTED]>: > hm, I think i only run session.comit(). If you are using transacted sessions then use the SESSION_TRANSACTED ack mode rather than CLIENT_ACKNOWLEDGED > What is the method i need to run to acknowledge().. > > On Mon, Dec 1, 2008 at 4:36 PM, Gabe

Re: Message is sendt more than once

2008-12-01 Thread Lars Eirik Rønning
hm, I think i only run session.comit(). What is the method i need to run to acknowledge().. On Mon, Dec 1, 2008 at 4:36 PM, Gabe Westmaas <[EMAIL PROTECTED]>wrote: > And does your client acknowledge after it receives it? If not, it will > read the message again later since the broker thinks it w

Re: Message is sendt more than once

2008-12-01 Thread Gabe Westmaas
And does your client acknowledge after it receives it? If not, it will read the message again later since the broker thinks it wasn't received. -Original Message- From: "Lars Eirik Rønning" <[EMAIL PROTECTED]> Sent: Monday, December 1, 2008 10:05am To: users@activemq.apache.org Subject:

Re: Message is sendt more than once

2008-12-01 Thread Lars Eirik Rønning
Hi i am using the following :session =con.createSession(true,Session.CLIENT_ACKNOWLEDGE); On Mon, Dec 1, 2008 at 2:42 PM, Gabe Westmaas <[EMAIL PROTECTED]>wrote: > Could be an acknowledgment issue, what type of acknowledge (client, auto, > dups ok, transaction) are you using? > > -Original Me

Re: ActiveMQ javadoc and NetBeans integration

2008-12-01 Thread Dejan Bosanac
Hi, you can generate JavaDocs by executing Maven task (mvn javadoc:javadoc) Take a look at this link for more info: http://maven.apache.org/plugins/maven-javadoc-plugin/usage.html dusanmsk wrote: > Hi there. > > I am new to java and activemq. I am using NetBeans to develop some app with > act

ActiveMQ javadoc and NetBeans integration

2008-12-01 Thread dusanmsk
Hi there. I am new to java and activemq. I am using NetBeans to develop some app with activemq. My problem is that I can't find activemq javadoc for download ( only online version ), so I can't integrate it into the IDE. Is there some downloadable version of activemq javadoc? Or is it possible so

Re: Network of Brokers or Standard connections

2008-12-01 Thread Dejan Bosanac
Hi > 1) It seems that messages are passed from broker to broker until the message > reaches a final broker where the consumer for that queue has a connection to > it. ie. If we have 5 brokers and all have consumers running. If Broker 1 > sends a message(which is intended for Broker 3) to the queue,

RE: Message is sendt more than once

2008-12-01 Thread Gabe Westmaas
Could be an acknowledgment issue, what type of acknowledge (client, auto, dups ok, transaction) are you using? -Original Message- From: "Lars Eirik Rønning" <[EMAIL PROTECTED]> Sent: Monday, December 1, 2008 8:16am To: users@activemq.apache.org Subject: Message is sendt more than once Hi

Message is sendt more than once

2008-12-01 Thread Lars Eirik Rønning
Hi. I have some business logic which process xml from a que served by activemq. I use receive() to get the xml from the que. When i run my business logic without the que only one instance of the xml is receveived, where as when asking to get messages from the que it sends the same message twice. at

Re: Network of Brokers or Standard connections

2008-12-01 Thread Craig De La Hunt
Hi Dejan, Thanks for the speedy reply, unfortunately my route forward is still a bit fuzzy. Could you please answer the following questions as they concern me the most. 1) It seems that messages are passed from broker to broker until the message reaches a final broker where the consumer for tha

Re: Network of Brokers or Standard connections

2008-12-01 Thread Dejan Bosanac
Hi Craig, you are right, "store and forward" architecture (with networked brokers, as you explained) would work much better in a WAN environment. Please note that these two approaches are not mutually exclusive, so you can have clients that connects directly to the central broker as well (but be s

onMessage() synchronisation requirements for queue+topic consumer

2008-12-01 Thread David Sitsky
Hi, I think this might be an easy question, but I have an application where my onMessage() handler is a consumer for both topic and queue messages. The topic and queue consumer are derived from the same ActiveMQ session, so I was under the impression that my onMessage() handler would not be calle

Network of Brokers or Standard connections

2008-12-01 Thread Craig De La Hunt
Hi guys I have a situation where we have one server on a public IP and multiple clients connecting to the server over the internet on a raw internet connection. The server has no visibility to the clients and each client is a separate entity and has no visibility to another client. We have look