datasource

How to load datasource configuration from external file in grails 3.1.8?

一世执手 提交于 2020-01-04 04:34:15
问题 I am writing a grails 3.1.8 application. My datasource written in application.groovy file. I want to load datasource configuration like username,password,DB from an external file. Is there any way to do it in grails 3+ versions. Here is my datasource configuration in application.groovy:- hibernate { cache { queries = false use_second_level_cache = true use_query_cache = false region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory' } } dataSource { pooled = true jmxExport =

TABLEAU: Create global filter from a secondary data source to multiple data sources on dashboard

冷暖自知 提交于 2020-01-04 03:19:25
问题 I have a Tableau dashboard with various visualizations created from 3 data sources (i.e. A,B, C). Each data source has a relationship (join) with the same secondary data source (i.e. D), and the secondary data sources provides information to create a filter for each data source. In other words, there is the following relationship for my data sources: A - D B - D C - D I would like to create a global filter on a dashboard I have created. I would like one filter card from "D" to show up and be

Kendo DataSource: How to set filters before fetch without sending two httprequests

本秂侑毒 提交于 2020-01-03 07:23:21
问题 Environment: kendo version: 2013.1.319 dataSource: productsDataSource = new kendo.data.DataSource({ type: "odata", transport: { read: "http://www.mydomain.com/odata.svc/products", dataType: "json", contentType: "application/json" } schema: { type: "json", data: function(data){ return data.value; }, total: function(data){ return data['odata.count']; }, model: product }, pageSize: 50, serverPaging: true, serverFiltering: true, serverSorting: true }); Get data: productsDataSource.filter([{ field

KendoUI datasource group and aggregate by multiple fields

点点圈 提交于 2020-01-02 22:04:15
问题 I'm trying to group a datasource by two fields and get the average or sum of their values. But even if I specify both group and aggregate properties in the datasource, I can't get it. Here is the code: var dataSource = new kendo.data.DataSource({ data: [ { id: 1, name: "Amazon US", stock: 15, year: 2015}, {id: 2,name: "Amazon US", stock: 20, year: 2016 }, {id: 3,name: "Amazon US", stock: 7, year: 2016 }, { id: 4, name: "Amazon EU", stock: 30, year: 2015 }, { id: 5, name: "Amazon EU", stock: 7

change the selected value of a dropdownlist inside nested repeater

▼魔方 西西 提交于 2020-01-02 08:28:23
问题 I tried to change a dropdownlist selected value from a c# code : <repeater > <repeater> <dropdown> and I add a datasource in aspx page to the dropdown every thing works fine .. but I want to change the selected value onload of the dropdown to be able to show the user the previous selected name when edit the table protected void PrepairDropDownList(object sender,EventArgs e) { shiftrepeater.DataBind(); if (shiftrepeater.Items.Count > 0) { for (int shiftcount = 0; shiftcount < shiftrepeater

Should I define datasources in application or in app server?

南笙酒味 提交于 2020-01-02 00:55:08
问题 I've developed applications (running on Jboss server) with two different teams. One team had datasource configuration inside of the application WAR file and another one had it inside of the application server's standalone.xml. And I'm not sure which approach is better. So, here are some advantages that I've found in defining datasource inside of the server's standalone.xml. Defining datasource in server's standalone.xml is more secure than in war file. If the database connection credentials

Twitter public dataset

别等时光非礼了梦想. 提交于 2020-01-01 22:23:10
问题 I am going to write an small application which requires twitter data. Can some one give me a good data source for twitter data. It would be great if data is large as the application is going to run a data mining algorithm. 回答1: Why not use the APIs from Twitter? You can build a data set with the Streaming API or just iterate through a dictionary and use the Search API 回答2: You should use the Twitter Streaming API Sample resource to collect data from Twitter. The Search API is not intended for

Fuse 6.3 dbcp basic datasource

谁说胖子不能爱 提交于 2020-01-01 19:57:06
问题 I am not able to get dbcp2 working in JBoss fuse 6.3. The code given below works fine in Fuse container. <bean id="oracleDSTest" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /> <property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:XE" /> <property name="username" value="hr" /> <property name="password" value="hr" /> <property name="maxIdle" value="5" /> <property name="minIdle" value="1" />

Fuse 6.3 dbcp basic datasource

守給你的承諾、 提交于 2020-01-01 19:56:50
问题 I am not able to get dbcp2 working in JBoss fuse 6.3. The code given below works fine in Fuse container. <bean id="oracleDSTest" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /> <property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:XE" /> <property name="username" value="hr" /> <property name="password" value="hr" /> <property name="maxIdle" value="5" /> <property name="minIdle" value="1" />

Registering MySQL DataSource with JNDI for Hibernate

折月煮酒 提交于 2020-01-01 05:49:06
问题 I have hibernate which connect to database via JNDI datasource. My purpose: registry DataSource with JNDI to test DAO layer. Example Hibernate config <hibernate-configuration> <session-factory name="MySessionFactory"> <property name="hibernate.connection.datasource">java:jdbc/MysqlMyDS</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <!-- mappings .... -> </hibernate-configuration> Get SessionFactory in test class : Configuration cgf = new