You have to configure some needed components inside your spring configuration file:
<bean id="transactionContextManager" class="org.jencks.factory.TransactionContextManagerFactoryBean"/> <bean id="transactionManager" class="org.jencks.factory.GeronimoTransactionManagerFactoryBean" /> They will be automatically be found by the jca flow. Btw, take a look at the default configuration file from ServiceMix distribution. Just changing the flowName to jca works... Cheers, Guillaume Nodet On 4/6/06, fretzlaff <[EMAIL PROTECTED]> wrote: > > I´m using service mix inside my app with xbean, and when I use JCA flow > occurs the error: > [06/Abr/2006 09:01:04] [org.apache.activemq.ra.ActiveMQEndpointWorker] > Starting > [06/Abr/2006 09:01:04] [org.apache.activemq.ra.ActiveMQEndpointWorker] > Started > [06/Abr/2006 09:01:04] [org.apache.servicemix.jbi.nmr.flow.jca.JCAFlow] > Failed to initialize JCAFlow > java.lang.IllegalStateException: no TransactionContextManager is set > at > org.jencks.factory.ConnectionManagerFactoryBean.getTransactionContextManager(ConnectionManagerFactoryBean.java:177) > at > org.jencks.factory.ConnectionManagerFactoryBean.getObject(ConnectionManagerFactoryBean.java:63) > at > org.apache.servicemix.jbi.nmr.flow.jca.JCAFlow.getConnectionManager(JCAFlow.java:588) > at > org.apache.servicemix.jbi.nmr.flow.jca.JCAFlow.init(JCAFlow.java:246) > at org.apache.servicemix.jbi.nmr.Broker.init(Broker.java:127) > at > org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:407) > at > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:53) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318) > at > org.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158) > at > org.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:58) > > Has something else that I need to do? > -- > View this message in context: > http://www.nabble.com/JCA-Flow-t1405473.html#a3782935 > Sent from the ServiceMix - Dev forum at Nabble.com. > >