Hi all,
We have following[1] data-source configuration within
master-datasources.xml in ES. When we need to execute a query(CQL) we use
[2] to get the connection.
But when we try to use the same component within appFactory we face this
issue[3].
Since we don't use the thrift interface for querying purpose I wonder what
went wrong here.
Is there any other property we need to set, in-order-to enable framed
transport? or by default are we using the framed transport?
[1]
<datasource>
<name>SOCIAL_CASSANDRA_DB</name>
<description>The cassandra datasource used for storing social
activities</description>
<definition type="RDBMS">
<configuration>
<url>jdbc:cassandra://localhost:9160/EVENT_KS</url>
<username>admin</username>
<password>admin</password>
<driverClassName>org.apache.cassandra.cql.jdbc.CassandraDriver</driverClassName>
</configuration>
</definition>
</datasource>
[2]
CarbonDataSource carbonDataSource =
DataSourceManager.getInstance().getDataSourceRepository().getDataSource("SOCIAL_CASSANDRA_DB");
DataSource dataSource = (DataSource) carbonDataSource.getDSObject();
conn = dataSource.getConnection();
[3] https://wso2.org/jira/browse/APPFAC-1795
Regards,
UdaraR
--
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com
Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog : http://udarakr.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev