Failed to retrieve message for id:

2010-03-03 Thread lernit2007
Hello, I run activemq with database oracle. I stop the activemq yesterday and today morning I start it new and want to consume the messages, which I send yesterday. But I get the following Error: Failed to retrieve message for id:943 What can be the problem? Can you help me please? -- View thi

Re: ActiveMQ / JMS jam when message producer sends messages

2010-03-03 Thread Bruce Snyder
On Wed, Mar 3, 2010 at 1:29 AM, aness123 wrote: > > Hi @ all, > > I'm using ActiveMQ 5.3.0 and Java Message Service to send and receive > message to/from several queues. I wanna send 1000 messages and more by my > program by using a MessageProducer. Unfortunately sending jams when I send > more th

Re: best approach to transfer large File, modify content on receive

2010-03-03 Thread Fred Moore
Hi Marc, > We are sending files >1GB around using the ActiveMQ's BlobMessage. ...mmh you have an interesting real-life use case: can you give us a few more details? Things like the "side protocol" you use (FTP? WebDAV?), daily volumes, any special other ActiveMQ tuning you performed etc Cheers,

Re: AMQ (5.3.0) with CMS-3.01 -> consumes all memory and stops clients and producers

2010-03-03 Thread Mats Henrikson
Hi Marcin, This looks very similar to a bug that I have logged: https://issues.apache.org/activemq/browse/AMQ-2616 Supposed to be fixed in 5.3.1 and later. Mats On 4 March 2010 06:50, lucious wrote: > > Hello here is what we have: > > 1) AMQ -5 3.0 with the following configuration: > http:

Re: ActiveMq within tomcat 6

2010-03-03 Thread Dejan Bosanac
Can you try to access amq/amq.js in your application and see what happens? Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Wed, Mar 3, 2010 at 3:19 AM, hmi

Re: best approach to transfer large File, modify content on receive

2010-03-03 Thread Marc Weil
100 MB isn't really that large. We are sending files >1GB around using the ActiveMQ's BlobMessage. Why don't you try using that instead of doing chunking and serialization/deserialization manually? http://activemq.apache.org/blob-messages.html Marc On Wed, Mar 3, 2010 at 6:17 AM, Cristian Botiza

AMQ (5.3.0) with CMS-3.01 -> consumes all memory and stops clients and producers

2010-03-03 Thread lucious
Hello here is what we have: 1) AMQ -5 3.0 with the following configuration: http://activemq.apache.org/schema/core"; brokerName="localhost" useJmx="true" dataDirectory="${activemq.base}/data">

Re: Network connector gets InactivityIOException

2010-03-03 Thread Roland Thomas Lichti
RuralHunter schrieb: > I created a network connector from my local activemq to a remote activemq > server with configuration below: > > uri="static://(tcp://a.b.c.d:62616)" duplex="true"/> > > On AMQ 5.2 and 5.3 I use "static://(failover:(tcp://a.b.c.d:62616))" (ok, we have the de

Re: Connecting to Tibco RV from ActiveMQ

2010-03-03 Thread jonasbergstrom
Forgot the stacktrace: ERROR | failed to forward message on attempt: 1 reason: javax.jms.IllegalStateException: Producer is closed message: ActiveMQTextMessage {commandId = 14, responseRequired = true, messageId = ID:longshanks.ongame.com-62594-1267627711097-0:1:1:1:10, originalDestination = null,

Re: Connecting to Tibco RV from ActiveMQ

2010-03-03 Thread jonasbergstrom
bsnyder wrote: > > There is no built-in support for integrating with RV built in to > ActiveMQ, but it can bridge to TIBCO EMS. Here's an example: > > http://activemq.apache.org/jms-bridge-with-remote-tibco-broker.html > That example works well except for initial connection (when Tibco is down

Re: ActiveMQ / JMS jam when message producer sends messages

2010-03-03 Thread Tracy Snell
On Mar 3, 2010, at 3:29 AM, aness123 wrote: > > I'm using ActiveMQ 5.3.0 and Java Message Service to send and receive > message to/from several queues. I wanna send 1000 messages and more by my > program by using a MessageProducer. Unfortunately sending jams when I send > more than 300 messages.

Re: Is it possible to log all inbound and outbound JMS msg (WITHOUT Camel) ?

2010-03-03 Thread Gary Tully
the contents of the toString() depends on the message type, what message type are you using? I think for your use case you must add your own implementation. But look at the source to be sure. On 3 March 2010 12:05, BenXS wrote: > > You say "you may" so it is not a must? > > From what you said I

Re: How to enable file based persistence ?

2010-03-03 Thread Gary Tully
you need to add the attribute: persistenceFlag="true" On 3 March 2010 11:55, BenXS wrote: > > So ok, I inserted the code: > > http://www.springframework.org/schema/beans"; > id="forcePersistencyModeBroker" > class="org.apache.activemq.plugin.ForcePersistencyModeBrokerPlugin"> > > > > from page

Re: Is it possible to log all inbound and outbound JMS msg (WITHOUT Camel) ?

2010-03-03 Thread BenXS
You say "you may" so it is not a must? >From what you said I CAN log incoming XML JMS message but they are written as one long text line (as output from toString()) into the logfile? I enabled logging but NO XML message appears in logfile. So how else can I write the "toString()" info to logfile

Re: How to enable file based persistence ?

2010-03-03 Thread BenXS
So ok, I inserted the code: http://www.springframework.org/schema/beans"; id="forcePersistencyModeBroker" class="org.apache.activemq.plugin.ForcePersistencyModeBrokerPlugin"> from page: D:\java\JMS\Apache ActiveMQ\docs\initial setup\config persistence\enforcing persistency\Enforcing persisten

Re: ActiveMQ / JMS jam when message producer sends messages

2010-03-03 Thread Márcio Geovani Jasinski
Hi Aneess I could not find any issue in your code. Are you sure that your program is not sending only 300 messages or exiting by timeout? This issue happens even with something like that? while(true) { producer.send(msg); } I suggest you to check the sample from ActiveMQ - from your installati

RE: best approach to transfer large File, modify content on receive

2010-03-03 Thread Cristian Botiza
I would look for some streaming options in ActiveMQ if you want to send the full file. But 100 MB is quite huge...anyway see class BytesMessage. You may try using a BufferedStream around the byte array, or read it in chuncks using readBytes(byte[]). From

Re: Is it possible to log all inbound and outbound JMS msg (WITHOUT Camel) ?

2010-03-03 Thread Gary Tully
To get access to the message content you may have to extend the LoggingBrokerPlugin as it just logs the contents of the toString() on a message, the contents of which varies with message type. It is a simple plugin so it is easy to extend to get it to do what you want. have a look at the send met

RE: best approach to transfer large File, modify content on receive

2010-03-03 Thread dara kok
So you think sending the file in full size is not performance efficient? I wonder what happens when the receiving app get the file, will the full content of the file load into memory or will just part of it will get loaded and the rest will load on demand? Thanks, Can you chunk the file? In thi

Re: How to enable file based persistence ?

2010-03-03 Thread Gary Tully
yea. that plugin is part of 5.3, the fix version is 5.3.0 so you just need to add the relevant config, It is an element in the plugins list and uses xbean so you can use see: http://activemq.apache.org/developing-plugins.html On 3 March 2010 10:04, BenXS wrote: > > Ok, thank you. But one mo

RE: best approach to transfer large File, modify content on receive

2010-03-03 Thread Cristian Botiza
Can you chunk the file? In this case you might split it between multiple producers and consumers and play with the number of producers/consumers and chunck size. You may send and process chuncks concurrently and also limit the message size. Just one option... ___

best approach to transfer large File, modify content on receive

2010-03-03 Thread dara kok
I need to send a large text file through ActiveMQ. On the receiving end, it's a JAVA application that retrieve the file and manipulate its content. I send the file through ActiveMQ by serializing/deserializing. Because the file is big, could be over 100Mb, i think there must be some performance i

Re: How to enable file based persistence ?

2010-03-03 Thread BenXS
Ok, thank you. But one more question: On the bottom of the webpage you mentioned it is written: "Patch applied in revision 800274" What does that mean? A patch is a fix for a bug. But the missing "force persistency" is not a bug but a new feature. Furthermore a revision is listed: Is this revi

Is it possible to log all inbound and outbound JMS msg (WITHOUT Camel) ?

2010-03-03 Thread BenXS
I would like to log the full XML JMS Header and the full XML payload for all incoming and for all outgoing JMS Msgs. The resp. XML content should be written to a logfile. How can I achieve this? I read several times the web page http://activemq.apache.org/logging-interceptor.html and played

Re: How to enable file based persistence ?

2010-03-03 Thread Gary Tully
see https://issues.apache.org/activemq/browse/AMQ-2339 for a plugin that forces all messages to be persistent. On 3 March 2010 09:35, BenXS wrote: > > Is there a way to force ActiveMQ to store inbound JMS msgs even if they are > NOT declared as persistent? > > Background: I send JMS msgs (payloa

Re: How to enable file based persistence ?

2010-03-03 Thread BenXS
Is there a way to force ActiveMQ to store inbound JMS msgs even if they are NOT declared as persistent? Background: I send JMS msgs (payload) from well known HermesJMS tool to ActiveMQ over menu Messages->TextMessages Here I cannot pass or define a JMS header for these JMS messages. The JMS he

ActiveMQ / JMS jam when message producer sends messages

2010-03-03 Thread aness123
Hi @ all, I'm using ActiveMQ 5.3.0 and Java Message Service to send and receive message to/from several queues. I wanna send 1000 messages and more by my program by using a MessageProducer. Unfortunately sending jams when I send more than 300 messages. My program does not continue anymore. Here i