I've just tried and it seems to work. Can you paste the expception ? On Fri, May 30, 2008 at 10:20 AM, Björn Bength <[EMAIL PROTECTED]> wrote: > I forgot to tell you that I also tried that. > Then it complains about attribute "name" is not allowed in > <http:component>... > the "id" attribut doesn't help either. > > /Björn > > On Thu, 2008-05-29 at 12:14 +0200, Guillaume Nodet wrote: >> Try adding a name attribute to the component definition. >> <http:component name="servicemix-http"> >> >> On Thu, May 29, 2008 at 11:23 AM, Bjorn Bength <[EMAIL PROTECTED]> wrote: >> > Hi, >> > >> > I'm trying to use an embedded configuration of servicemix 3.2.1 and >> > reading http://servicemix.apache.org/embedding.html >> > gives the illusion that its possible to make a simpler configuration >> > using only <sm:endpoints> rather than the old way of listing endpoints >> > in components. >> > >> > however, I need to customize my <http:component> with an >> > <http:configuration> using the method described. >> > >> > like: >> > >> > <sm:components> >> > <http:component configuration="#myHttpConfig"/> >> > </sm:components> >> > <sm:endpoints> >> > <http:endpoint >> > service="test:Hello" >> > endpoint="testService" >> > role="consumer" >> > defaultOperation="echo" >> > locationURI="http://localhost:8194/Service/" >> > soap="true" /> >> > </sm:endpoints> >> > >> > >> > >> > and all it says when it's starting up the container is: >> > >> > Caused by: java.lang.RuntimeException: No key defined for map entry >> > property >> > at >> > org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseCustomMapElement(XBeanNamespaceHandler.java:664) >> > at >> > org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:581) >> > at >> > org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.tryParseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:552) >> > at >> > org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.addNestedPropertyElements(XBeanNamespaceHandler.java:521) >> > at >> > org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:217) >> > >> > >> > etc etc. >> > >> > >> > Whats wrong, me or the documentation? >> > >> > >> > /Björn >> > -- >> > Bjorn Bength <[EMAIL PROTECTED]> >> > Curalia AB >> > >> > >> >> >> > >
-- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/
