One option would be to create the datasource instance from e.g. a blueprint file and publish the instance in the OSGi service registry.
ServiceMix 4.2.0 will allow you to get a reference to that instance in your org.apache.ode.jbi.cfg file with a special kind of JNDI URL: osgi:services/javax.sql.DataSource
If you have multiple DataSource implementations in the OSGi Service Registry, you can append a filter to the URL that looks like an LDAP filter (something like (&(key=value))
Edited by: gertv on Feb 26, 2010 2:41 PM