Hi Not sure if its possible to refer to a bean from the registry.
Feel free to dive into the source code of camel-stax and see what needs to be done to support your use-case. We love contributions http://camel.apache.org/contributing.html So we could maybe just try to lookup a bean from the registry first, and if not exists fallback to current behavior. <to uri="stax:orderHandler" /> Then we ought to support both use-cases. On Mon, May 13, 2013 at 10:47 AM, timactive <rdev...@timactive.com> wrote: > Hi, > > I have a generic bean handler(extend DefaultHandler), this bean need a param > to work correctly such as > the nodeRoot, nodeItem etc.. > I want use this bean with camel-stax but i think is not possible : > > <route> > <from uri="file:/tmp/inbox"/> > <to uri="stax:orderHandler" /> > </route> > <bean id="orderHandler" class="com.timactive.article.ArticleHandlerMapper"> > <property name="nodeRoot" value="ORDERS"></property> > <property name="nodeItem" value="ORDER"></property> > </bean> > > In the documentation of camel-stax http://camel.apache.org/stax.html, the > exemple propose just to pass a class handler, not a bean? > how would someone do this kind of process? > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-stax-use-a-custom-bean-handler-not-a-class-tp5732395.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen