You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Håkon Sagehaug <ha...@bccs.uib.no> on 2008/07/29 07:55:35 UTC

Can't find jms-provider from camel

Hi

I want to send a message from camel to a jms-provider, but it seems like my
router can't find the jms enpoint, here is my configuration

xbean for jms-provider,
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
    xmlns:amq="http://activemq.org/config/1.0"
 xmlns:hsa="http://bccs.uib.no/hakont">

<jms:provider service="hsa:QueueProvider"
                endpoint="QueueProvider"
                destinationName="myQueue"
                connectionFactory="#connectionFactory" />
<amq:connectionFactory id="connectionFactory"
        brokerURL="tcp://localhost:61616" />
</beans>

and my RouteBuilder.java

from("timer://tutorial?fixedRate=true&period=100000")
        .setBody(constant("<message>Hello world!</message>"))
        .to(
            "jbi:endpoint:http://
http://bccs.uib.no/hakont/QueueProvider/QueueProvider");


Any hints??

cheers, Håkon


-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Fwd: Can't find jms-provider from camel

Posted by Håkon Sagehaug <hs...@gmail.com>.
---------- Forwarded message ----------
From: Håkon Sagehaug <ha...@bccs.uib.no>
Date: 2008/7/29
Subject: Can't find jms-provider from camel
To: users@servicemix.apache.org


Hi

I want to send a message from camel to a jms-provider, but it seems like my
router can't find the jms enpoint, here is my configuration

xbean for jms-provider,
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
    xmlns:amq="http://activemq.org/config/1.0"
 xmlns:hsa="http://bccs.uib.no/hakont">

<jms:provider service="hsa:QueueProvider"
                endpoint="QueueProvider"
                destinationName="myQueue"
                connectionFactory="#connectionFactory" />
<amq:connectionFactory id="connectionFactory"
        brokerURL="tcp://localhost:61616" />
</beans>

and my RouteBuilder.java

from("timer://tutorial?fixedRate=true&period=100000")
        .setBody(constant("<message>Hello world!</message>"))
        .to(
            "jbi:endpoint:http://
http://bccs.uib.no/hakont/QueueProvider/QueueProvider");


Any hints??

cheers, Håkon


-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)



-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Re: Can't find jms-provider from camel

Posted by Gert Vanthienen <ge...@skynet.be>.
Håkon,

Thanks for letting us know!  This is definitely an error on the page.  I have corrected it on the wiki (will still take some time to replicate to the main website).

Gert


Håkon Sagehaug wrote:
> Hi
>
> Okay I'll try it
>
> The smx tutorial told me to do it like this
>
> http://servicemix.apache.org/34-exchanging-messages-with-other-jbi-services.html
>
>
>
>
> 2008/7/29 Gert Vanthienen <ge...@skynet.be>
>
>   
>> Håkon,
>>
>> The snippet you posted has an http:// too many.  It should be
>> jbi:endpoint:http://bccs.uib.no/hakont/QueueProvider/QueueProvider with
>> only one http://
>>
>> Gert
>>
>>
>>
>>
>>
>> Håkon Sagehaug wrote:
>>
>>     
>>> Hi
>>>
>>> I want to send a message from camel to a jms-provider, but it seems like
>>> my
>>> router can't find the jms enpoint, here is my configuration
>>>
>>> xbean for jms-provider,
>>> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>>>    xmlns:amq="http://activemq.org/config/1.0"
>>>  xmlns:hsa="http://bccs.uib.no/hakont">
>>>
>>> <jms:provider service="hsa:QueueProvider"
>>>                endpoint="QueueProvider"
>>>                destinationName="myQueue"
>>>                connectionFactory="#connectionFactory" />
>>> <amq:connectionFactory id="connectionFactory"
>>>        brokerURL="tcp://localhost:61616" />
>>> </beans>
>>>
>>> and my RouteBuilder.java
>>>
>>> from("timer://tutorial?fixedRate=true&period=100000")
>>>        .setBody(constant("<message>Hello world!</message>"))
>>>        .to(
>>>            "jbi:endpoint:http://
>>> http://bccs.uib.no/hakont/QueueProvider/QueueProvider");
>>>
>>>
>>> Any hints??
>>>
>>> cheers, Håkon
>>>
>>>
>>>
>>>
>>>       
>>     
>
>
>   


Re: Can't find jms-provider from camel

Posted by Håkon Sagehaug <hs...@gmail.com>.
Hi

Okay I'll try it

The smx tutorial told me to do it like this

http://servicemix.apache.org/34-exchanging-messages-with-other-jbi-services.html




2008/7/29 Gert Vanthienen <ge...@skynet.be>

> Håkon,
>
> The snippet you posted has an http:// too many.  It should be
> jbi:endpoint:http://bccs.uib.no/hakont/QueueProvider/QueueProvider with
> only one http://
>
> Gert
>
>
>
>
>
> Håkon Sagehaug wrote:
>
>> Hi
>>
>> I want to send a message from camel to a jms-provider, but it seems like
>> my
>> router can't find the jms enpoint, here is my configuration
>>
>> xbean for jms-provider,
>> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>>    xmlns:amq="http://activemq.org/config/1.0"
>>  xmlns:hsa="http://bccs.uib.no/hakont">
>>
>> <jms:provider service="hsa:QueueProvider"
>>                endpoint="QueueProvider"
>>                destinationName="myQueue"
>>                connectionFactory="#connectionFactory" />
>> <amq:connectionFactory id="connectionFactory"
>>        brokerURL="tcp://localhost:61616" />
>> </beans>
>>
>> and my RouteBuilder.java
>>
>> from("timer://tutorial?fixedRate=true&period=100000")
>>        .setBody(constant("<message>Hello world!</message>"))
>>        .to(
>>            "jbi:endpoint:http://
>> http://bccs.uib.no/hakont/QueueProvider/QueueProvider");
>>
>>
>> Any hints??
>>
>> cheers, Håkon
>>
>>
>>
>>
>
>


-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Re: Can't find jms-provider from camel

Posted by Gert Vanthienen <ge...@skynet.be>.
Håkon,

The snippet you posted has an http:// too many.  It should be jbi:endpoint:http://bccs.uib.no/hakont/QueueProvider/QueueProvider with only one http://

Gert
 



Håkon Sagehaug wrote:
> Hi
>
> I want to send a message from camel to a jms-provider, but it seems like my
> router can't find the jms enpoint, here is my configuration
>
> xbean for jms-provider,
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>     xmlns:amq="http://activemq.org/config/1.0"
>  xmlns:hsa="http://bccs.uib.no/hakont">
>
> <jms:provider service="hsa:QueueProvider"
>                 endpoint="QueueProvider"
>                 destinationName="myQueue"
>                 connectionFactory="#connectionFactory" />
> <amq:connectionFactory id="connectionFactory"
>         brokerURL="tcp://localhost:61616" />
> </beans>
>
> and my RouteBuilder.java
>
> from("timer://tutorial?fixedRate=true&period=100000")
>         .setBody(constant("<message>Hello world!</message>"))
>         .to(
>             "jbi:endpoint:http://
> http://bccs.uib.no/hakont/QueueProvider/QueueProvider");
>
>
> Any hints??
>
> cheers, Håkon
>
>
>