How do you send messages the that Outbound queue?
If its supposed to be a text message, you can tell Camel to convert it
to a String before sending to XMPP.
from("activemq:queue:Outbound")
.convertBodyTo(String.class)
.to("xmpp://" + xmppUsername + "@
jabber.myhost.com/[email protected]?password=" + xmppPassword);
On Tue, Jul 12, 2011 at 4:51 PM, James Green <[email protected]> wrote:
> It's the ActiveMQ 5.5.0 distribution with camel 2.7.0. I added
> camel-xmpp-2.7.0.jar to lib.
>
> As to the route:
>
> from("activemq:queue:Outbound").to("xmpp://" + xmppUsername + "@
> jabber.myhost.com/[email protected]?password=" + xmppPassword);
>
> James
>
> On 12 July 2011 14:50, Claus Ibsen <[email protected]> wrote:
>
>> Can you post the Camel route, and what versions of Camel and AMQ are you
>> using?
>>
>> On Tue, Jul 12, 2011 at 3:11 PM, James Green <[email protected]>
>> wrote:
>> > This may not be Camel's fault but the problem is in front of us and we're
>> > puzzelled!
>> >
>> > Essentially we have a route from an ActimeMQ queue into XMPP. At the XMPP
>> > end we have a client that receives a message and it's underlying library
>> > throws the following:
>> >
>> > java.lang.
>> > ClassNotFoundException: org.apache.activemq.command.ActiveMQQueue
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> > at java.lang.Class.forName0(Native Method)
>> > at java.lang.Class.forName(Class.java:247)
>> > at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
>> > at
>> > java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
>> > at
>> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
>> > at
>> > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
>> > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>> > at
>> >
>> org.jivesoftware.smack.util.PacketParserUtils.parseProperties(PacketParserUtils.java:574)
>> > at
>> >
>> org.jivesoftware.smack.util.PacketParserUtils.parseMessage(PacketParserUtils.java:109)
>> > at
>> >
>> org.jivesoftware.smack.BOSHPacketReader.responseReceived(BOSHPacketReader.java:83)
>> > at
>> com.kenai.jbosh.BOSHClient.fireResponseReceived(BOSHClient.java:1455)
>> > at com.kenai.jbosh.BOSHClient.processExchange(BOSHClient.java:1042)
>> > at com.kenai.jbosh.BOSHClient.processMessages(BOSHClient.java:976)
>> > at com.kenai.jbosh.BOSHClient.access$000(BOSHClient.java:97)
>> > at com.kenai.jbosh.BOSHClient$1.run(BOSHClient.java:215)
>> > at java.lang.Thread.run(Thread.java:619)
>> >
>> > Any ideas why the XMPP library would ever want to invoke ActiveMQ at all?
>> It
>> > should be being treated as a string message for our client's own use.
>> >
>> > James
>> >
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> FuseSource
>> Email: [email protected]
>> Web: http://fusesource.com
>> Twitter: davsclaus, fusenews
>> Blog: http://davsclaus.blogspot.com/
>> Author of Camel in Action: http://www.manning.com/ibsen/
>>
>
--
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/