You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by netflexity <mf...@netflexity.com> on 2008/10/08 18:07:53 UTC
Camel JBI endpoint problems
Hello, please help. No matter what I do I am getting:
11:53:43,831 INFO [STDOUT] WARN - DefaultBroker -
ServiceName
({http://com.bla.esb}sendEmail) specified for routing, but can't find it
registered
camel-context.xml
--------------------------
<camelContext useJmx="true"
xmlns="http://activemq.apache.org/camel/schema/spring">
<package>com.bla.esb.smx.camel</package>
</camelContext>
RouterBean.java
--------------------------
public void configure() {
from("jbi:service:http://com.bla.esb/sendEmail")
.setHeader("subject").constant("Demo")
.setHeader("to").constant("mf@bla.com")
.setHeader("from").constant("mailer@bla.net")
.to("smtp://smtp.bla.com?password=aaaa&username=mailer@bla.net");
}
http-su/xbean.xml
---------------------
<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:bla="http://com.bla.esb"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:endpoint service="bla:testEmail"
targetService="bla:sendEmail"
endpoint="endpoint"
role="consumer"
locationURI="http://0.0.0.0:8092/test/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
soap="true" />
</beans>
--
View this message in context: http://www.nabble.com/Camel-JBI-endpoint-problems-tp19882025p19882025.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Camel JBI endpoint problems
Posted by Guillaume Nodet <gn...@gmail.com>.
This is a endpoint that is created and used internally by the camel SE.
So it's not the one your are looking for.
On Wed, Oct 8, 2008 at 6:31 PM, netflexity <mf...@netflexity.com> wrote:
>
> Same thing.
>
> By the way, this is what I see on SMX Endpoints screen:
>
> {http://activemq.apache.org/camel/schema/jbi}endpoint:camel:bl-camel-su-controlBus
> Internal servicemix-camel
>
> Is this normal?
>
>
>
>
> netflexity wrote:
>>
>> Hello, please help. No matter what I do I am getting:
>>
>> 11:53:43,831 INFO [STDOUT] WARN - DefaultBroker -
>> ServiceName
>> ({http://com.bla.esb}sendEmail) specified for routing, but can't find it
>> registered
>>
>>
>> camel-context.xml
>> --------------------------
>> <camelContext useJmx="true"
>> xmlns="http://activemq.apache.org/camel/schema/spring">
>> <package>com.bla.esb.smx.camel</package>
>> </camelContext>
>>
>>
>> RouterBean.java
>> --------------------------
>> public void configure() {
>> from("jbi:service:http://com.bla.esb/sendEmail")
>> .setHeader("subject").constant("Demo")
>> .setHeader("to").constant("mf@bla.com")
>> .setHeader("from").constant("mailer@bla.net")
>> .to("smtp://smtp.bla.com?password=aaaa&username=mailer@bla.net");
>> }
>>
>>
>> http-su/xbean.xml
>> ---------------------
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:bla="http://com.bla.esb"
>> xmlns="http://www.springframework.org/schema/beans"
>> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://servicemix.apache.org/http/1.0
>> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>>
>> <http:endpoint service="bla:testEmail"
>> targetService="bla:sendEmail"
>> endpoint="endpoint"
>> role="consumer"
>> locationURI="http://0.0.0.0:8092/test/"
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
>> soap="true" />
>> </beans>
>>
>
> --
> View this message in context: http://www.nabble.com/Camel-JBI-endpoint-problems-tp19882025p19882522.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://open.iona.com
Re: Camel JBI endpoint problems
Posted by netflexity <mf...@netflexity.com>.
Same thing.
By the way, this is what I see on SMX Endpoints screen:
{http://activemq.apache.org/camel/schema/jbi}endpoint:camel:bl-camel-su-controlBus
Internal servicemix-camel
Is this normal?
netflexity wrote:
>
> Hello, please help. No matter what I do I am getting:
>
> 11:53:43,831 INFO [STDOUT] WARN - DefaultBroker -
> ServiceName
> ({http://com.bla.esb}sendEmail) specified for routing, but can't find it
> registered
>
>
> camel-context.xml
> --------------------------
> <camelContext useJmx="true"
> xmlns="http://activemq.apache.org/camel/schema/spring">
> <package>com.bla.esb.smx.camel</package>
> </camelContext>
>
>
> RouterBean.java
> --------------------------
> public void configure() {
> from("jbi:service:http://com.bla.esb/sendEmail")
> .setHeader("subject").constant("Demo")
> .setHeader("to").constant("mf@bla.com")
> .setHeader("from").constant("mailer@bla.net")
> .to("smtp://smtp.bla.com?password=aaaa&username=mailer@bla.net");
> }
>
>
> http-su/xbean.xml
> ---------------------
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:bla="http://com.bla.esb"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <http:endpoint service="bla:testEmail"
> targetService="bla:sendEmail"
> endpoint="endpoint"
> role="consumer"
> locationURI="http://0.0.0.0:8092/test/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
> soap="true" />
> </beans>
>
--
View this message in context: http://www.nabble.com/Camel-JBI-endpoint-problems-tp19882025p19882522.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Camel JBI endpoint problems
Posted by Guillaume Nodet <gn...@gmail.com>.
Could you try with:
from("jbi:endpoint:http://com.bla.esb/sendEmail/endpoint")
And see what it gives ?
On Wed, Oct 8, 2008 at 6:07 PM, netflexity <mf...@netflexity.com> wrote:
>
> Hello, please help. No matter what I do I am getting:
>
> 11:53:43,831 INFO [STDOUT] WARN - DefaultBroker -
> ServiceName
> ({http://com.bla.esb}sendEmail) specified for routing, but can't find it
> registered
>
>
> camel-context.xml
> --------------------------
> <camelContext useJmx="true"
> xmlns="http://activemq.apache.org/camel/schema/spring">
> <package>com.bla.esb.smx.camel</package>
> </camelContext>
>
>
> RouterBean.java
> --------------------------
> public void configure() {
> from("jbi:service:http://com.bla.esb/sendEmail")
> .setHeader("subject").constant("Demo")
> .setHeader("to").constant("mf@bla.com")
> .setHeader("from").constant("mailer@bla.net")
> .to("smtp://smtp.bla.com?password=aaaa&username=mailer@bla.net");
> }
>
>
> http-su/xbean.xml
> ---------------------
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:bla="http://com.bla.esb"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <http:endpoint service="bla:testEmail"
> targetService="bla:sendEmail"
> endpoint="endpoint"
> role="consumer"
> locationURI="http://0.0.0.0:8092/test/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
> soap="true" />
> </beans>
> --
> View this message in context: http://www.nabble.com/Camel-JBI-endpoint-problems-tp19882025p19882025.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://open.iona.com
Re: Camel JBI endpoint problems
Posted by netflexity <mf...@netflexity.com>.
Fixed by extracting camel-su into a separate assembly.
netflexity wrote:
>
> Hello, please help. No matter what I do I am getting:
>
> 11:53:43,831 INFO [STDOUT] WARN - DefaultBroker -
> ServiceName
> ({http://com.bla.esb}sendEmail) specified for routing, but can't find it
> registered
>
>
> camel-context.xml
> --------------------------
> <camelContext useJmx="true"
> xmlns="http://activemq.apache.org/camel/schema/spring">
> <package>com.bla.esb.smx.camel</package>
> </camelContext>
>
>
> RouterBean.java
> --------------------------
> public void configure() {
> from("jbi:service:http://com.bla.esb/sendEmail")
> .setHeader("subject").constant("Demo")
> .setHeader("to").constant("mf@bla.com")
> .setHeader("from").constant("mailer@bla.net")
> .to("smtp://smtp.bla.com?password=aaaa&username=mailer@bla.net");
> }
>
>
> http-su/xbean.xml
> ---------------------
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:bla="http://com.bla.esb"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <http:endpoint service="bla:testEmail"
> targetService="bla:sendEmail"
> endpoint="endpoint"
> role="consumer"
> locationURI="http://0.0.0.0:8092/test/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
> soap="true" />
> </beans>
>
--
View this message in context: http://www.nabble.com/Camel-JBI-endpoint-problems-tp19882025p19903321.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.