Ok, here is my files and I put you here the code I add:
jndi.xml:
<bean id="odeManagedConnectionFactory" class="org.jencks.tranql.DataSourceMCF">
<property name="driverName"
value="oracle.jdbc.driver.OracleDriver"/>
<property name="url"
value="jdbc:oracle:thin:@192.168.100.78:1521:disb"/>
<property name="user" value="wslogging"/>
<property name="password" value="wslogging"/>
</bean>
<entry key="java:comp/env/jdbc/ode">
<bean id="odeDataSource"
class="org.jencks.factory.ConnectionFactoryFactoryBean">
<property name="managedConnectionFactory"
ref="odeManagedConnectionFactory"/>
<property name="connectionManager" ref="connectionManager"/>
</bean>
</entry>
ode-jbi.properties
ode-jbi.db.mode=EXTERNAL
ode-jbi.db.ext.dataSource=java:comp/env/jdbc/ode
and I added the jar file (jencks-2.0-all.jar)under lib.
Here is the error I got:
Caught: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jndi' defined in class path resource [jndi.xml]: Cannot resolve
reference to bean 'jndiEntries' while setting bean property 'entries'; nested ex
ception is org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'jndiEntries': Cannot create inner bean 'odeDataSource' of typ
e [org.jencks.factory.ConnectionFactoryFactoryBean] while setting bean property
'sourceMap' with key [TypedStringValue: value [java:comp/env/jdbc/ode], target t
ype [null]]; nested exception is org.springframework.beans.factory.BeanCreationE
xception: Error creating bean with name 'odeDataSource' defined in class path re
source [jndi.xml]: Cannot resolve reference to bean 'connectionManager' while se
tting bean property 'connectionManager'; nested exception is org.springframework
.beans.factory.BeanCreationException: Error creating bean with name 'connectionM
anager' defined in class path resource [tx.xml]: Cannot resolve reference to bea
n 'connectionTracker' while setting bean property 'connectionTracker'; nested ex
ception is org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'connectionTracker' defined in class path resource [tx.xml]: C
annot resolve reference to bean 'transactionManager' while setting bean property
'geronimoTransactionManager'; nested exception is org.springframework.beans.fac
tory.BeanCreationException: Error creating bean with name 'transactionManager':
FactoryBean threw exception on object creation; nested exception is java.lang.No
SuchMethodError: org.apache.geronimo.transaction.manager.GeronimoTransactionMana
ger.<init>(ILorg/apache/geronimo/transaction/manager/XidFactory;Lorg/apache/gero
nimo/transaction/manager/TransactionLog;Ljava/util/Collection;)V
Any ideas ?
In my db, I didn't create any tables for ode... should I ?
Thx Fred
> Date: Thu, 3 Apr 2008 19:05:45 -0700
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: Probleme deployin ODE in servicemix
>
> On Thu, Apr 3, 2008 at 11:05 AM, Frédéric Therrien <[EMAIL PROTECTED]>
> wrote:
>
> > I've found a workaround (
> > http://www.nabble.com/Re%3A-Ode-in-service-Mix-p15557321.html) but it's
> > not working (by the way I don't understant why ODE absolutly need a db and
> > I'm using oracle, not mysql but I've tried with mysql and it's not working).
>
>
> What's not working with Oracle / MySQL? Can you post your configuration?
>
> Ode needs a database because it's meant to execute long-running processes
> that require some level of recoverability.
>
> alex
_________________________________________________________________
Trouvez vos infos rapidement et précisément avec Windows Live Instant Search !
Essayez-le maintenant!
http://g.msn.ca/ca55/220<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!-- START SNIPPET: jndi -->
<beans xmlns:jencks="http://jencks.org/2.0"
xmlns:amq="http://activemq.org/config/1.0"
xmlns:amqra="http://activemq.org/ra/1.0"
xmlns:util="http://www.springframework.org/schema/util">
<bean id="jndi" depends-on="broker"
class="org.apache.xbean.spring.jndi.SpringInitialContextFactory"
factory-method="makeInitialContext"
singleton="true">
<property name="entries" ref="jndiEntries" />
</bean>
<bean id="odeManagedConnectionFactory" class="org.jencks.tranql.DataSourceMCF">
<property name="driverName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@192.168.100.78:1521:disb"/>
<property name="user" value="wslogging"/>
<property name="password" value="wslogging"/>
</bean>
<util:map id="jndiEntries">
<!-- PXE DB datasource -->
<!--
<entry key="java:comp/env/jdbc/pxe__pm">
<bean class="org.hsqldb.jdbc.jdbcDataSource">
<property name="database" value="jdbc:hsqldb:mem:pxe"/>
<property name="user" value = "sa"/>
<property name="password" value = ""/>
</bean>
</entry>
-->
<!-- wsn2005 jms connection factory -->
<entry key="java:comp/env/jms/wsnotificationCF">
<bean class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop">
<constructor-arg value="${activemq.url}" />
</bean>
</entry>
<entry key="java:comp/env/jdbc/ode">
<bean id="odeDataSource" class="org.jencks.factory.ConnectionFactoryFactoryBean">
<property name="managedConnectionFactory" ref="odeManagedConnectionFactory"/>
<property name="connectionManager" ref="connectionManager"/>
</bean>
</entry>
<!-- transaction manager -->
<entry key="javax.transaction.TransactionManager" value-ref="transactionManager" />
<entry key="java:comp/env/smx/TransactionManager" value-ref="transactionManager" />
<!-- bootstrap context -->
<entry key="java:comp/env/smx/BootstrapContext" value-ref="bootstrapContext" />
<!-- connection context -->
<entry key="java:comp/env/smx/ConnectionManager" value-ref="connectionManager" />
<!-- Authentication service -->
<entry key="java:comp/env/smx/AuthenticationService" value-ref="authenticationService" />
<!-- Keystore manager -->
<entry key="java:comp/env/smx/KeystoreManager" value-ref="keystoreManager" />
</util:map>
<!-- A managed JDBC DataSource for derby -->
<!-- needs tranql derby
<bean id="localDerbyMCF" class="org.tranql.connector.derby.EmbeddedXAMCF">
<property name="databaseName" value="data/derby"/>
<property name="createDatabase" value="true"/>
</bean>
<bean id="localDerbyDataSource" class="org.springframework.jca.support.LocalConnectionFactoryBean">
<property name="managedConnectionFactory" ref="localDerbyMCF"/>
<property name="connectionManager" ref="connectionManager"/>
</bean>
-->
<!-- A managed JMS ConnectionFactory for ActiveMQ -->
<amqra:managedConnectionFactory
id="activemqMCF"
resourceAdapter="#activemqRA" />
<amqra:resourceAdapter
id="activemqRA"
serverUrl="vm://localhost"/>
<jencks:connectionFactory
id="activemqCF"
managedConnectionFactory="#activemqMCF"
connectionManager="#connectionManager" />
</beans>
<!-- END SNIPPET: jndi -->