You are right but camel blueprint schema does not support TxErrorHandler attribute
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd <xs:simpleType name="errorHandlerType"> <xs:restriction base="xs:string"> <xs:enumeration value="DefaultErrorHandler"/> <xs:enumeration value="DeadLetterChannel"/> <xs:enumeration value="LoggingErrorHandler"/> <xs:enumeration value="NoErrorHandler"/> </xs:restriction> </xs:simpleType> On Thu, Oct 3, 2013 at 12:51 PM, James Carman <[email protected]>wrote: > You depend on Spring APIs, not the container. The Aries transaction > manager implements PlatformTransactionManager, allowing you to use > transactions in OSGi without running in a Spring container. > > On Thursday, October 3, 2013, Charles Moulliard wrote: > > > Best way James excepted for Camel Tx Route as we depend on Spring and > > blueprint can be used until now ;-) > > > > > > On Mon, Sep 30, 2013 at 1:53 PM, James Carman < > [email protected]<javascript:;> > > >wrote: > > > > > You should really consider using camel-blueprint. This is the best > > > way to use Camel in an OSGi environment. You will run into quite a > > > bit of troubles to get everything working right if you try to do it > > > "manually." > > > > > > On Mon, Sep 30, 2013 at 7:06 AM, mabels <[email protected]> > wrote: > > > > Hello, > > > > > > > > i now use the OsgiDefaultCamelContext and now it runs like excepted. > I > > > had > > > > to > > > > install > > > > > > > > osgi:install -s mvn:org.apache.camel/camel-core-osgi/2.12.1 > > > > > > > > features:install eventadmin > > > > > > > > these both are needed some how. > > > > > > > > Thanks > > > > > > > > meno > > > > > > > > > > > > On Mon, Sep 30, 2013 at 12:21 PM, Claus Ibsen-2 [via Camel] < > > > > [email protected]> wrote: > > > > > > > >> Hi > > > >> > > > >> You cannot use the DefaultCamelContext, you have to use an OSGi one. > > > >> Also the package scan should be osgi aware. > > > >> > > > >> Though its often easier to use a blueprint xml file to bootstrap > Camel > > > >> in OSGi as it setup all the OSGi stuff for you. > > > >> > > > >> Though in camel-core-osgi there is the osgi pieces you would need to > > > >> do this manually. > > > >> > > > >> > > > >> On Mon, Sep 30, 2013 at 12:10 PM, mabels <[hidden email]< > > > http://user/SendEmail.jtp?type=node&node=5740481&i=0>> > > > >> wrote: > > > >> > > > >> > Hello, > > > >> > > > > >> > what you mean how i run it, i have a small bundle which i start > with > > > >> > osgi::install ... > > > >> > in karaf. In prepartion i loaded all needed camel features. > > > >> > The Activator looks like this: > > > >> > > > > >> > final CamelContext camelContext = new DefaultCamelContext(); > > > >> > camelContext.disableJMX(); > > > >> > DefaultPackageScanClassResolver > defaultPackageScanClassResolver > > = > > > >> new > > > >> > DefaultPackageScanClassResolver(); > > > >> > camelContext.addComponent("filer", new FilerComponent()); > > > >> > try { > > > >> > camelContext.addRoutes(new RouteBuilder() { > > > >> > public void configure() { > > > >> > DataFormat bindy = new ShopFeedProdukt(); > > > >> > > > > >> > from("file:///tmp/input") > > > >> > .split(org.apache.camel.component.stax.StAXBuilder > > > >> > .stax(ShopFeedProdukt.class, false)) > > > >> > .streaming() > > > >> > .marshal(bindy) > > > >> > //.marshal().bindy(BindyType.Csv, > > > >> > "org.apache.camel.bindy.model") > > > >> > //.marshal(new > > > BindyCsvDataFormat(ShopFeedProdukt.class)) > > > >> > .to("filer:///tmp/output?suffix=.csv") > > > >> > .end(); > > > >> > > > > >> > } > > > >> > }); > > > >> > camelContext.start(); > > > >> > > > > >> > Hopefully this helps > > > >> > > > > >> > meno > > > >> > > > > >> > > > > >> > On Mon, Sep 30, 2013 at 12:05 PM, Claus Ibsen-2 [via Camel] < > > > >> > [hidden email] < > > http://user/SendEmail.jtp?type=node&node=5740481&i=1 > > > >> > > > >> wrote: > > > >> -- > > Charles Moulliard > > Apache Committer / Architect @RedHat > > Twitter : @cmoulliard | Blog : http://cmoulliard.github.io > > > -- Charles Moulliard Apache Committer / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
