Re: ClassCastException on MessageObject's object

2007-04-30 Thread nlif
James, We assume that the class is loaded when ActiveMQObjectMessage.getObject() is called, and the de-serialization takes place. Is this correct? Now, after looking at the code, it seems that the class loader is resolved in ClassLoadingAwareObjectInputStream. Is this correct? What can cause it t

Re: ClassCastException on MessageObject's object

2007-04-30 Thread nlif
Thanks, Christopher, No, it's not. The broker and the consumer are on two different machines. The transport is TCP. We use Jencks for the consumer. We're currently on ActiveMQ 4.1, but we had this problem on 4.0 as well. Naaman Christopher G. Stach II wrote: > > nlif wrote: >> Thanks, James.

Re: BrokerFactoryBean and ConnectionFactory

2007-04-30 Thread uma_rk
Thanks for the explanation. On a related note, could you pl explain if I can use a BrokerService or a BrokerFactoryBean in my Spring configuration without the xbean stuff? I am running into the " Unrecognized xbean element mapping" error due to the reference to http://activemq.org/config/1.0 and

Re: ClassCastException on MessageObject's object

2007-04-30 Thread Christopher G. Stach II
nlif wrote: > Thanks, James. > > Yes, I'm also inclined to think it's a class loader issue. But then, how > come it doesn't happen all the time? > What may cause it to load another version of the class only some of the > times? > Does ActiveMQ do anything... um, unconventional with class-loading?

"Unrecognized xbean element mapping"

2007-04-30 Thread uma_rk
Hi - I am using Spring 2.0 with ActiveMQ 4.1.1 (JDK6, Tomcat 5.5.x). I am instantiating a broker using Xbean as follows: http://activemq.org/config/1.0";> //... As the (webapp) context loads, it aborts with the following error: org.s

Re: ClassCastException on MessageObject's object

2007-04-30 Thread nlif
Thanks, James. Yes, I'm also inclined to think it's a class loader issue. But then, how come it doesn't happen all the time? What may cause it to load another version of the class only some of the times? Does ActiveMQ do anything... um, unconventional with class-loading? Thanks, Naaman James.S

Re: ClassCastException on MessageObject's object

2007-04-30 Thread James Strachan
If you get a ClassCastException yet the object seems to be of the correct class name, then it looks like a class loader issue (multiple versions of the same class on the classpath). Otherwise if it was a serialization issue, you wouldn't get an object you can inspect. On 4/30/07, nlif <[EMAIL PR

Re: stable version of active MQ

2007-04-30 Thread James Strachan
4.1.1 until we release 4.2. On 4/30/07, Suchitha Koneru (sukoneru) <[EMAIL PROTECTED]> wrote: Hello Active Mq Users, I am currently using active mq version 4.0.1. Our application uses topic publishers and durable topic subscribers and an embedded broker. Our application

Re: Ports internally used by active Mq

2007-04-30 Thread James Strachan
On 5/1/07, Suchitha Koneru (sukoneru) <[EMAIL PROTECTED]> wrote: Hello Active Mq Users , Our application currently uses active mq 4.0.1 version. We use an embedded broker along with durable subscribers and topic publishers. Active MQ also uses ports internally which are no

Re: BrokerFactoryBean and ConnectionFactory

2007-04-30 Thread James Strachan
On 5/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I don't understand a basic element of ActiveMQ: how does the connection factory reference the broker factory bean? It doesn't. The ConnectionFactory is designed to communicate with a usually remote broker The examples I have seen define

Re: Good example/tutorial sites for ActiveMQ

2007-04-30 Thread Adrian Co
Hi, ActiveMQ is a JMS provider and implements the JMS specs. Simply, its JMS and more... :-) Bai Shen wrote: Suchitha Koneru (sukoneru) wrote: How about starting with the Sun JMS tutorial: http://java.sun.com/products/jms/tutorial/ Once you understand JMS, there's also the Using ActiveM

BrokerFactoryBean and ConnectionFactory

2007-04-30 Thread uma_rk
I don't understand a basic element of ActiveMQ: how does the connection factory reference the broker factory bean? The examples I have seen define a broker factory bean B and a connection factory F with a "depends-on" (Spring) dependency of F on B. Since the connection factory must be obtaining a

Re: Ports internally used by active Mq

2007-04-30 Thread Christopher G. Stach II
Christopher G. Stach II wrote: > Suchitha Koneru (sukoneru) wrote: >> Hello Active Mq Users , >> Our application currently uses active mq 4.0.1 >> version. We use an embedded broker along with durable subscribers and >> topic publishers. >> >> Active MQ also uses ports in

Re: Ports internally used by active Mq

2007-04-30 Thread Christopher G. Stach II
Suchitha Koneru (sukoneru) wrote: > Hello Active Mq Users , > Our application currently uses active mq 4.0.1 > version. We use an embedded broker along with durable subscribers and > topic publishers. > > Active MQ also uses ports internally which are not configurable, th

Ports internally used by active Mq

2007-04-30 Thread Suchitha Koneru (sukoneru)
Hello Active Mq Users , Our application currently uses active mq 4.0.1 version. We use an embedded broker along with durable subscribers and topic publishers. Active MQ also uses ports internally which are not configurable, these ports are randomly allocated. For these

Re: Problem with Temporary Queues

2007-04-30 Thread David Budworth
the connection that is doing tmp.receive(timeout) was started? ( ie: connection.start() ) If a connection is not started it can send but not receive a message. may not be it, but that gets me reasonably often when ever I change connection creation schemes On 4/24/07, James Strachan <[EMAIL PRO

RE: Good example/tutorial sites for ActiveMQ

2007-04-30 Thread Bai Shen
Suchitha Koneru (sukoneru) wrote: > > How about starting with the Sun JMS tutorial: > > http://java.sun.com/products/jms/tutorial/ > > Once you understand JMS, there's also the Using ActiveMQ guide: > > http://activemq.org/site/using-activemq.html > How much does ActiveMQ differ from JMS?

ActiveMQ-CPP 2.0.1 RC1 now available

2007-04-30 Thread Timothy Bish
Hey everyone, The first Release Candidate RC1 is now available for download. Grab it now from our download page here: http://activemq.apache.org/cms/activemq-cpp-201-release.html ... Feel free to give it a test drive! The links on this page won't work until the release is official. For now, foll

RE: Good example/tutorial sites for ActiveMQ

2007-04-30 Thread Suchitha Koneru \(sukoneru\)
How about starting with the Sun JMS tutorial: http://java.sun.com/products/jms/tutorial/ Once you understand JMS, there's also the Using ActiveMQ guide: http://activemq.org/site/using-activemq.html -Original Message- From: Bai Shen [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 20

Good example/tutorial sites for ActiveMQ

2007-04-30 Thread Bai Shen
I'm trying to learn about ActiveMQ, but I'm having a hard time finding useful example/tutorial sites. Does anyone know of any? Thanks! -- View this message in context: http://www.nabble.com/Good-example-tutorial-sites-for-ActiveMQ-tf3671760s2354.html#a10260021 Sent from the ActiveMQ - User mai

ClassCastException on MessageObject's object

2007-04-30 Thread nlif
Hi all, We have a strange problem, maybe someone has seen this or has an idea: In our MessageListener, we cast the Message into ObejctMessage, and then call getObject() to get the actual object we sent. Upon trying to cast the object to the proper class (SendMobileNotification), we get a ClassCa

CMS API 1.0 Released

2007-04-30 Thread Nathan Mittler
Hi everyone, The development team has just voted to release the CMS (C++ Messaging Service) API version 1.0! CMS is a JMS-like messaging API for C++ applications that is implemented by ActiveMQ-CPP. The hope is that by breaking it out from ActiveMQ-CPP that we might begin to move toward a common

stable version of active MQ

2007-04-30 Thread Suchitha Koneru (sukoneru)
Hello Active Mq Users, I am currently using active mq version 4.0.1. Our application uses topic publishers and durable topic subscribers and an embedded broker. Our application will be ready for production in a month. I would like to upgrade to a newer stable version of

Active MQ Integration with JBoss DS

2007-04-30 Thread tnine
Hi all, I'm using Active MQ 4.1.1 and JBoss 4.0.5. I've followed the instructions for the installation of the rar, and I'm receiving the following error. It can't find the jdbc connection via JNDI, do I need to tell it to connect to port 1099 for JNDI lookup, or should it find the default JNDI

Re: [camel] using camel spring container

2007-04-30 Thread dr.jeff
My xml looks like this: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://www.springframework.org/schema/beans ./spring-beans-2.0.xsd http://activemq.apache.org/camel/schema/camel-1.0.xsd ./camel-1.0.xsd

Re: [camel] using camel spring container

2007-04-30 Thread dr.jeff
Yes. That works now. Thanks. James.Strachan wrote: > > On 4/30/07, dr.jeff <[EMAIL PROTECTED]> wrote: >> >> If I use the example at: >> >> http://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTes

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
On 4/30/07, dr.jeff <[EMAIL PROTECTED]> wrote: If I use the example at: http://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTest.xml then I get this exception Exception in thread "main" org.s

Re: [camel] using camel spring container

2007-04-30 Thread dr.jeff
If I use the example at: http://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTest.xml then I get this exception Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitio

ActiveMQ 4.1.1 Producer Blocks, but gives error in 4.2

2007-04-30 Thread nbreau
bumping back up hoping someone can help with this issue nbreau wrote: > > > Hi Everyone, > > We're using activemq publishing about one ObjectMessage every 2-3 seconds. > No problems with the consumers (messages consumed right away), however the > producers seem to block after about 2000

Rollback Question

2007-04-30 Thread spiderman2
Is it possible to use a roundrobin policy in a rollback? Currently a session.rollback results in retries on the same consumer. And if they all fail, the message ends up on the Dead Letter Queue instead of trying other available consumers. Does anyone have a solution? PS - How can I configure a r

Failed to register MBean

2007-04-30 Thread brodyc
I have a java producer and a remote consumer exchanging messages via HTTP. There is single a broker managing request and response queues. JMX is enabled. With ActiveMQ 4.1.1, the broker reports the following: WARN ManagedTransportConnection - Failed to register MBean: org.apache.acti vemq:B

Re: Cannot read XML message from AMQ

2007-04-30 Thread James Strachan
When sending text that is not of the UTF-8 format you might want to use a BytesMessage instead of a TextMessage On 4/30/07, John Challenger <[EMAIL PROTECTED]> wrote: A vb client sends the following XML message to AMQ but I am unable to read the XML message from AMQ. Hermes cannot display the

Cannot read XML message from AMQ

2007-04-30 Thread John Challenger
A vb client sends the following XML message to AMQ but I am unable to read the XML message from AMQ. Hermes cannot display the message and gives an 'javax.jms.JMSException: java.io.UTFDataFormatException'. See Hermes error below and tostring display of the message. Any ideas and or suggestions wil

JBoss does not start because of no Remote Connection!

2007-04-30 Thread goldi
Hi everybody, I have configured an embedded broker (with an jms to jms bridge) in JBoss. This is my broker configuration: http://activemq.org/config/1.0"; useJmx="true" brokerName="bruce.broker1" persistent="false">

Re: ERROR STARTING BROKER

2007-04-30 Thread James Strachan
For some reason your platform is not allowing multicast to be used. You might want to disable the multicast & discovery settings from your activemq.xml. i.e. using the following inside the element... On 4/30/07, tonyc <[EMAIL PROTECTED]> wrote: Hi, when trying to sta

Re: Failing to acquire exclusive lock - MySQL

2007-04-30 Thread James Strachan
On 4/30/07, Anthrope <[EMAIL PROTECTED]> wrote: Sure. Apologies for not providing that up-front; I had just hacked up a solution in order to get on. Anyway, I found that there was an issue was on line 59 in DefaultDatabaseLocker.java: boolean answer = statement.execute(); if (a

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
BTW to try and avoid future confusion, I've added some Spring documentation... http://cwiki.apache.org/CAMEL/spring.html -- James --- http://macstrac.blogspot.com/

Re: Failing to acquire exclusive lock - MySQL

2007-04-30 Thread Anthrope
Sure. Apologies for not providing that up-front; I had just hacked up a solution in order to get on. Anyway, I found that there was an issue was on line 59 in DefaultDatabaseLocker.java: boolean answer = statement.execute(); if (answer) { break;

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
On 4/30/07, James Strachan <[EMAIL PROTECTED]> wrote: On 4/29/07, dr.jeff <[EMAIL PROTECTED]> wrote: > I have tried and completely failed to use the camel spring container. > > I see where it can do two things: > > 1) create a context which instantiates RouteBuilders in a given package: > >

ERROR STARTING BROKER

2007-04-30 Thread tonyc
Hi, when trying to start ACTIVEMQ I keep getting an error message as shown below. i do not have a clue what this means. any ideas? tony error: = Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\anthonyc>cd c:\jms C:\jms>cd apache-a

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
On 4/29/07, dr.jeff <[EMAIL PROTECTED]> wrote: I have tried and completely failed to use the camel spring container. I see where it can do two things: 1) create a context which instantiates RouteBuilders in a given package: I can't even guess what the need for that is, unless it's ju

Re: temporary queue in store and forward environment

2007-04-30 Thread James Strachan
On 4/29/07, DavidR <[EMAIL PROTECTED]> wrote: Ok, so if we go back to Master Slave, then we have the following issue: Currently we are using the JDBC Master Slave but we see this uses a lot of CPU. So, we would want to go to pure Master Slave. So, can you help us understand the following: It say

Re: Out Of Memory ActiveMQ 4.1

2007-04-30 Thread James Strachan
On 4/29/07, avin98 <[EMAIL PROTECTED]> wrote: Thanks Sandeep Im more concerned about why this is happening, since I start AMQ 4.1.1 within Geronimo, rather than using it as a stand-alone app. As a result, I want to make sure that my App server doesn't crash, as it now does !!! If you're wo

Re: Failing to acquire exclusive lock - MySQL

2007-04-30 Thread James Strachan
On 4/26/07, Anthrope <[EMAIL PROTECTED]> wrote: There is a bug in the 4.1.1 release version of DefaultDatabaseLocker.java. The problem is that the result of the execution of the prepared statement to lock the database row is being incorrectly interpreted. This link ought to explain why: http://