You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by fretzlaff <fa...@neogrid.com.br> on 2006/04/06 14:06:10 UTC
JCA Flow
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.
Re: JCA Flow
Posted by Guillaume Nodet <gn...@gmail.com>.
It seems that the version you are running is quite old.
Could you try with a recent snapshot ?
Cheers,
Guillaume Nodet
On 4/6/06, fretzlaff <fa...@neogrid.com.br> wrote:
>
> I have tried but doesn't work... take a look at my XML:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <beans xmlns="http://xbean.org/schemas/spring/1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:sm="http://servicemix.apache.org/config/1.0"
> xmlns:spring="http://xbean.org/schemas/spring/1.0"
> xsi:schemaLocation="http://xbean.org/schemas/spring/1.0 spring-beans.xsd
> http://servicemix.apache.org/config/1.0 servicemix.xsd">
> <sm:container transactionManager="#transactionManager" rootDir="../server"
> createMBeanServer="false" useMBeanServer="true" flowName="jca"
> MBeanServer="#mbeanServer" name="jbi" spring:id="jbi">
> <sm:activationSpecs/>
> </sm:container>
> <bean class="org.springframework.jmx.support.MBeanServerFactoryBean"
> id="mbeanServer"/>
> <bean class="org.jencks.factory.TransactionContextManagerFactoryBean"
> id="transactionContextManager"/>
> <bean class="org.jencks.factory.GeronimoTransactionManagerFactoryBean"
> id="transactionManager"/>
> </beans>
> --
> View this message in context: http://www.nabble.com/JCA-Flow-t1405473.html#a3791374
> Sent from the ServiceMix - Dev forum at Nabble.com.
>
>
Re: JCA Flow
Posted by fretzlaff <fa...@neogrid.com.br>.
I have tried but doesn't work... take a look at my XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<beans xmlns="http://xbean.org/schemas/spring/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:spring="http://xbean.org/schemas/spring/1.0"
xsi:schemaLocation="http://xbean.org/schemas/spring/1.0 spring-beans.xsd
http://servicemix.apache.org/config/1.0 servicemix.xsd">
<sm:container transactionManager="#transactionManager" rootDir="../server"
createMBeanServer="false" useMBeanServer="true" flowName="jca"
MBeanServer="#mbeanServer" name="jbi" spring:id="jbi">
<sm:activationSpecs/>
</sm:container>
<bean class="org.springframework.jmx.support.MBeanServerFactoryBean"
id="mbeanServer"/>
<bean class="org.jencks.factory.TransactionContextManagerFactoryBean"
id="transactionContextManager"/>
<bean class="org.jencks.factory.GeronimoTransactionManagerFactoryBean"
id="transactionManager"/>
</beans>
--
View this message in context: http://www.nabble.com/JCA-Flow-t1405473.html#a3791374
Sent from the ServiceMix - Dev forum at Nabble.com.
Re: JCA Flow
Posted by Guillaume Nodet <gn...@gmail.com>.
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 <fa...@neogrid.com.br> 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.
>
>