-
1. Re: Fuse ESB - MSSQL Drivers
jelramzy_jelramzy Nov 12, 2013 11:42 AM (in response to milanmilas)Hi there,
i am interested in the solution if this was fiwed!
any feedback?
regards,
-
2. Re: Fuse ESB - MSSQL Drivers
sanvijaya_santosh.m Jan 13, 2014 6:25 AM (in response to milanmilas)Try with the below data source, it works:
-
3. Re: Fuse ESB - MSSQL Drivers
chubutin Feb 7, 2014 3:48 PM (in response to milanmilas)Hi! I use SQL and MYSQL in my services and they work great!
You should install them into de OSGi container. MySQL provides a Bundle for the driver, but MySQL doesn't.
You need the features: jpa
And install thw drivers with this command
osgi:install mvn:mysql/mysql-connector-java/5.1.18
osgi:install wrap:mvn:com.microsoft.sqlserver/sqljdbc4/4.0
With this you should have the bundles with the correct export/import package inside your karaf context. So if you put inside your Import-package the classes you need, they will found it inside the OSGi register (this is with the maven-bundle-plugin)
<property name="URL" value="$" />
<property name="user" value="$" />
<property name="password" value="$" />
</bean>
The class OSGiDataSource is an extension of com.microsoft.sqlserver.jdbc.SQLServerDataSource so I can export it in the OSGi register as a unique service
The export service
<osgi:service id="osgiDataSource" ref="dataSource"
interface="javax.sql.DataSource" />
And the import service
<osgi:reference id="osgiDataSource"
interface="javax.sql.DataSource"/>
Hope this can help you!