datasource

Datasource configuration in wildfly 10

不想你离开。 提交于 2019-12-04 09:48:52
I am trying to configure a PostgreSQL datasource in Wildfly 10 Application Server on Mac OS. I am doing what the instructions prescribe. I have created an order: /wildfly-10.1.0.Final/modules/system/layers/base/org/postgresql/main. In this order I have put the JDBC driver: postgresql-9.3-1104.jdbc4.jar and I have created a module.xml file: <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.3" name="org.postgresql“> <resources> <resource-root path="postgresql-9.3-1104.jdbc4.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/>

Telerik Kendo UI grid: grouping and sorting survive grid.refresh() but collapsed groups get expanded; how to preserve state

北战南征 提交于 2019-12-04 09:43:02
问题 As is typical for grids in a "dashboard" application that monitors dynamically changing data, my (Telerik) Kendo UI grid is refreshed with fresh data periodically, every 60 seconds: grid.dataSource.data(freshData); grid.refresh(); // have been informed this refresh may not be necessary The schema does not change, but some new rows might show up in the dataset and some might have been removed. Although the grid.refresh() leaves the groupings intact, and the sort state is also preserved, any

Resource DATASOURCE rolled back in cleanup of LocalTransactionContainment

不问归期 提交于 2019-12-04 09:29:55
Im working in a WebSphere Application Server 7, JDK 1.6 and Oracle 11g. Im always receiving this error when using an ejb. [7/1/10 17:12:28:770 BOT] 00000013 LocalTranCoor W WLTC0033W: Resource jdbc/oraDS11 rolled back in cleanup of LocalTransactionContainment. [7/1/10 17:12:28:773 BOT] 00000013 LocalTranCoor W WLTC0032W: One or more local transaction resources were rolled back during the cleanup of a LocalTransactionContainment. This is how im getting the connection from the datasource in WAS. javax.sql.DataSource ds = (javax.sql.DataSource) naming.lookup("DataSource"); conn= ds.getConnection(

Grails 2.4.2 - Dynamically referencing default datasource

余生颓废 提交于 2019-12-04 09:21:37
This question has been partly answered here but there is still an issue with referencing the default datasource dynamically. I'm working on an internal application that allows developers to modify configuration settings for one of our multi-tenant applications and push those settings from dev to testing, staging and production. Each one of these will have their own datasource, and the Grails app will be installed on each developer's computer. The local datasource will be the default one, and then dataSource_testing, dataSource_staging and so on will reference the appropriate environments. I

MsTest, DataSourceAttribute - how to get it working with a runtime generated file?

时光毁灭记忆、已成空白 提交于 2019-12-04 06:47:43
for some test I need to run a data driven test with a configuration that is generated (via reflection) in the ClassInitialize method (by using reflection). I tried out everything, but I just can not get the data source properly set up. The test takes a list of classes in a csv file (one line per class) and then will test that the mappings to the database work out well (i.e. try to get one item from the database for every entity, which will throw an exception when the table structure does not match). The testmethod is: [DataSource( "Microsoft.VisualStudio.TestTools.DataSource.CSV", "

How to build big and complex database in sql - IN EASY WAY?

隐身守侯 提交于 2019-12-04 06:20:11
问题 I have installed Oracle XE. I build small database every day to practice from command prompt, but now I want to have more. I want to have a bigger database with a lot of different data to practice and make exercises. So, is possible to get a big data file from somewhere and upload to XE database? 回答1: You can't get 'big' data for Oracle Express edition as it is limited to 4GB (10g) or 10GB (11g ). That said, there are public datasets available. Personally I like the FAA data on registered

Getting blank rows after setting DataGridView.DataSource

僤鯓⒐⒋嵵緔 提交于 2019-12-04 05:26:35
Could somebody tell me why I'm getting blank rows after running this code? ... dataGridView.AutoGenerateColumns = false; //must be false, else getting additional columns from SQL dataGridView.DataSource = dataSet.Tables[0].DefaultView; Also tried dataGridView.Update(); but not working. Row count is ok, but why do I get blank rows? I'm using Winforms. What is contained in your DataSet? Maybe the DataTable contained in your DataSet does not have any rows. I would leave AutoGenerateColumns to true and just manually hide what columns you don't want to see. I have never used AutoGenerateColumns =

Assigning a DataTable to a ComboBox and then making changes

混江龙づ霸主 提交于 2019-12-04 04:11:31
问题 VB2010 I have created a DataTable manually so it does not come from a database. I have assigned it to a combobox and it displays my column of data. If I change the DataTable do I have to re-establish the link? 'assign first table dt = GetFirstTable() cbo.DataSource = dt cbo.DisplayMember = "Time" cbo.ValueMember = "Time" 'print out items in combobox 'assign second table dt = GetSecondTable() 'cbo.DataSource = dt 'do i have to re-connect here? 'print out items in combobox It seems if I do not

How can I configure an Excel spreadsheet as a javax.sql.DataSource?

試著忘記壹切 提交于 2019-12-04 03:46:23
问题 I have a Spring Boot 1.3.0 (Java 8) application that needs to use Excel as a data source. (POI and JXL do not work due to type of Excel file.) The application needs to run in an unix environment. I have the application configured to set the datasource url and driver-class-name via a yml file. Is there a driver (preferably available in the maven repo) that can use Excel as a data source? What value should I specify for the url? Edit Here's the code from an attempt to use the Excel spreadsheet

One DataSource for multiple controls

你说的曾经没有我的故事 提交于 2019-12-04 03:29:59
问题 I have two ListBox in my winforms application, I assigne a datasource for both of them as follow: private void MakeMeasurementUnits() { var units = new List<MeasurementUnit> { new MeasurementUnit {Name = "Current", SiUnit = "A"}, new MeasurementUnit {Name = "Voltage", SiUnit = "V"}, new MeasurementUnit {Name = "Time", SiUnit = "s"}, new MeasurementUnit {Name = "Temprature", SiUnit = "°C"} }; lbxXunit.DataSource = units; lbxYunit.DataSource = units; } The strange thing is (or maybe because it