To be complete, you can use OSGI service available on SMX4 + Aries and publish your datasource reference like this :
osgi.jndi.serviceName=jdbc/TradeDataSource More info is available here : http://svn.apache.org/repos/asf/incubator/aries/trunk/ariestrader-sample/modules/ariestrader-util/src/main/java/org/apache/aries/samples/ariestrader/util/TradeConfig.java(for an example) and here for the spec: http://incubator.apache.org/aries/pointerstoosgispecifications.html Kind regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm On Thu, Feb 25, 2010 at 3:18 PM, Andriotto Massimiliano < [email protected]> wrote: > I'm using servicemix 4 with ODE feature installed. > > I want ODE uses Oracle database instead of derby DB.I created the > configuration file > > > org.apache.ode.jbi.cfg with these parameters: > > > ode-jbi.db.mode=EXTERNAL > ode-jbi.db.ext.dataSource=java:comp/env/jdbc/ode > ode-jbi.dao.factory=org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryI > mpl > ode-jbi.db.emb.name=hibdb > > ode-jbi.dao.factory=org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryI > mpl > > Now I need to configure the datasource and register it inside a jndi > service. How can I > > configure the datasource and register it inside a jndi service? > > Thank you > > > Massimiliano > > > > > >
