Hi,

I think you misread that doc, the example there told that you can expose 
camelServlet in one bundle and reference it in another bundle.
So basically you need use
<osgi:service ref="camelServlet">
       <osgi:interfaces>
           <value>javax.servlet.Servlet</value>
           <value>org.apache.camel.component.http.CamelServlet</value>
       </osgi:interfaces>
       <osgi:service-properties>
           <entry key="alias" value="/camel/services" />
           <entry key="matchOnUriPrefix" value="true" />
           <entry key="servlet-name" value="CamelServlet"/>
       </osgi:service-properties>
   </osgi:service>

and

   <osgi:reference id="servletref"
interface="org.apache.camel.component.http.CamelServlet">
         <osgi:listener bind-method="register" unbind-method="unregister">
            <ref bean="httpRegistry"/>
         </osgi:listener>
   </osgi:reference>

In different bundles.

-------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-7-19, at 下午1:58, anton_dak wrote:

> Hi Freeman,
> 
> I have used the example from FuseSource:
> http://fusesource.com/docs/esb/4.4.1/camel_component_ref/_IDU_SERVLET.html
> 
> Have you any idea what is wrong with my code snipptes or do you have a
> working example?
> 
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Can-t-use-camel-servlet-in-ServiceMix-4-4-0-tp5713911p5713922.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to