It seems to be cause by the camel management layer.
Could you post the full stack trace of the exception ?

On Dec 14, 2007 5:57 PM, Robert Thullner <[EMAIL PROTECTED]> wrote:

> Thanks for this information, but I still cannot get it working.
>
> My camelContext.xml looks like this now:
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           xmlns:b="http://servicemix.apache.org/samples/bridge";
>       xsi:schemaLocation="
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>       http://activemq.apache.org/camel/schema/spring
> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd";>
>
>  <camelContext xmlns="http://activemq.apache.org/camel/schema/spring";
> useJmx="true" >
>        <package>eip.status.servicemix</package>
>  </camelContext>
> </beans>
>
> So I just define the package in there. I have built my route in the
> MyRouteBuilder.java file. It looks like this:
>
> public class MyRouteBuilder extends RouteBuilder {
>    public void configure() {
>
> from("jbi:endpoint:
> http://servicemix.apache.org/samples/bridge/pipeline/endp
> oint")
>
> .to("jbi:service:http://servicemix.apache.org/samples/bridge/jms";);
>    }
> }
>
>
> When I deploy it to servicemix I get the following error:
> WARN  Could not register Endpoint MBean
> javax.management.MalformedObjectNameException: Could not create ObjectName
> from:
> org.apache.camel:context=macewindu/camelContext
> ,group=endpoints,component=en
> dpoint,name=http://servicemix.apache.org/samples/bridge/pipeline/endpoint.
> Reason: javax.management.MalformedObjectNameException: Invalid character
> ':'
> in value part of property
>
>
> I get the same exception for the second endpoint defined in my route.
>
> Do you have any suggestions for that?
> Thanks
> Robert
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Guillaume Nodet [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 14. Dezember 2007 11:48
> An: [email protected]
> Betreff: Re: Usage of Camel
>
> >From a camel perspective, servicemix / jbi is one of the numerous
> >protocols
> supported.
> So your route should looks like:
>
> from("jbi:endpoint:http://servicemix.apache.org/samples/bridge<
> http://servic
> emix.apache.org/samples/bridge>
> /pipeline/endpoint")
>
> .to("jbi:service:http://servicemix.apache.org/samples/bridge<
> http://servicem
> ix.apache.org/samples/bridge>
> /xslt")
>
> .to(jbi:service:http://servicemix.apache.org/samples/bridge<
> http://servicemi
> x.apache.org/samples/bridge>
> /jms")
>
> "jbi" tells camel to use the jbi transport.  When creating a consumer, it
> will activate a jbi endpoint, else it will use the delivery channel to
> send
> the exchange to the given jbi target.  See
> http://servicemix.apache.org/uris.html. Such uris must be prefixed by
> "jbi"
> .
>
> On Dec 14, 2007 11:29 AM, Robert Thullner <[EMAIL PROTECTED]> wrote:
>
> > Hi
> >
> > I have changed the bridge example so that it is triggered by a quartz,
> > that writes out a message to a jms queue in regular intervals. The
> > only thing I changed was the http-su to a quartz-su. The example
> > worked fine.
> >
> > Now I want to replace the EIP component with a camel component that
> > does the routing for me. But I have difficulties, because I do not
> > know how to write camel rule. Here is the simple example from the
> > bridge-eip:
> >
> > <?xml version="1.0"?>
> > <beans xmlns:eip="http://servicemix.apache.org/eip/1.0";
> >       xmlns:b="http://servicemix.apache.org/samples/bridge";>
> >
> >  <eip:pipeline service="b:pipeline" endpoint="endpoint">
> >        <eip:transformer>
> >            <eip:exchange-target service="b:xslt" />
> >        </eip:transformer>
> >        <eip:target>
> >            <eip:exchange-target service="b:jms" />
> >        </eip:target>
> >  </eip:pipeline>
> >
> > </beans>
> >
> > So there is the same pipeline, as it is in the bridge example. My
> > problem now is, when I define camel route I do not have the service
> > attribute set and therefore servicemix throws an exception. This is
> > how my camel context looks like.
> >
> > <beans xmlns="http://www.springframework.org/schema/beans";
> >       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >       xmlns:b="http://servicemix.apache.org/samples/bridge";
> >       xsi:schemaLocation="
> >       http://www.springframework.org/schema/beans
> > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> >       http://activemq.apache.org/camel/schema/spring
> > http://activemq.apache.org/camel/schema/spring/camel-spring.xsd";>
> >  <camelContext xmlns="http://activemq.apache.org/camel/schema/spring";
> > useJmx="true" >
> >    <route>
> >      <from uri="b:pipeline"/>
> >      <to uri="b:jms"/>
> >    </route>
> >
> >    <package>eip.status.servicemix</package>
> >  </camelContext>
> > </beans>
> >
> > My MyRouteBuilder.jave file is empty.
> > Can anybody explain me, how I can use the EIP route in Camel?
> >
> > When starting servicemix, I get this exception:
> > org.apache.camel.RuntimeCamelException:
> > org.apache.camel.NoSuchEndpointException: No endpoint could be found
> for:
> > b:pipeline
> >
> > I understand the exception, because I do not have the b:pipeline
> defined.
> > My
> > problem is, that I do not know how to define it in camel. I am using
> > servicemix 3.2.1 .
> >
> > Thanks for any help
> > Robert
> >
> >
> >
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to