Questions tagged [datasource]

Datasource is a name given to the connection set up to a database from a server. The name is commonly used when creating a query to the database. The database source name (DSN) does not have to be the same as the filename for the database.

A data source is any of the following types of sources for (mostly) digitized data:

  • a database (in the Java software platform, datasource is a special name for the connection set up to a database from a server)
  • a computer file
  • a data stream

Please see more here (Wikipedia entry for Datasource) and here (Java 6 Datasource interface documentation)

4483 questions
1
vote
1 answer

Loopback: Send request with json data using REST connector

I would like to fetch data from 3rd party REST Service in my Loopback Application. In order to fetch data from Service I need to authenticate first with login and password. I can test service using curl: curl -b cookies -c cookies -X POST -d…
user5926024
  • 15
  • 1
  • 4
1
vote
0 answers

C# Windows Form OnLoad() Event not updating DataGridView.DataSource

So I have this code: private void frmSell_Load(object sender, EventArgs e) { dgvProducts.DataSource = _data.AllProducts(); } Where _data.AllProducts() returns a List. The only problem is that line will only work when outside the _Load()…
1
vote
1 answer

Grails Support to Handle Datasource Failure

I am looking for a solution for automatic database failover in grails application. I have two databases which reside on two different sites connected over WAN. On Site A, we have Database 01 which is primary database for application on the same site…
1
vote
1 answer

Intellij IDEA ssh tunnel to datasource

I'm trying to view my remote database running on digital ocean droplet as data source in Intellij IDEA. ssh tunnel settings general database settings I accessed the database from Sequel Pro through ssh so I believe it is set correctly on the server…
Adam Bečvář
  • 109
  • 1
  • 10
1
vote
1 answer

Configuring two datasources by jndi lookup with Springboot

I have a small web app built with Spring Boot that has two datasources, (one for the application data, and one for retrieving user access information). I have configured this successfully using a config class for each datasource and using datasource…
Craig
  • 281
  • 1
  • 8
  • 17
1
vote
2 answers

Winform's combox's selected item is cached when the datasource is set to null, then back to the original list

The context is as below: A ComboBox is binded to a BindingSource. That BindingSource is then binded to a DataModel. That ComboBox has a DataSource of a list of objects. Yet, this list maybe set to null when under some conditions, and maybe…
Nick
  • 13
  • 4
1
vote
1 answer

running Spring Boot for REST

I created a spring boot application with Rest Controller and Oracle on my local system, thru IDE its running fine, the mvn build was fine package was also good but if I run it as executable jar I am getting the below error. I have…
Sumit Sagar
  • 192
  • 5
  • 15
1
vote
1 answer

Illegal NSTableView data source

Currently doing some swift development and am playing with this tutorial: https://www.brandpending.com/2016/01/14/using-core-data-in-a-swift-cocoa-app-to-populate-an-nstableview/ I have updated the code as some of the above code is out of date,…
user3801447
  • 31
  • 1
  • 6
1
vote
2 answers

Updating the DataSource of a DropDownList in ASP.NET's C#

I have an edit form that uses a DropDownList, connected to a SQL server table using a DataSource. This edit form allows users to set the table's "IsDeleted" column value to 1, which would then hide it from all of the application's queries. (So the…
Eisen
  • 11
  • 4
1
vote
3 answers

C# ComboBox from Array of Structs

I have a Struct that looks like this: public struct Server { public String ServerName, ServerUrl, ServerEnvironment; }; Then I create a List of Structs: List MyServers = new List(); ...and read about eight records into it from…
1
vote
2 answers

defining a datasource in JBoss standalone.xml vs. in the web.xml in a container-agnostic way

I have successfully configured a JDBC datasource in my JBoss standalone.xml but I am also trying to figure out if it's possible to define the datasource in the web.xml itself, in a standard, container-agnostic way as this answer suggests. However I…
Marcus Junius Brutus
  • 23,022
  • 30
  • 155
  • 282
1
vote
1 answer

No of total sessions in database not same as set in connection pool in websphere

I am facing an issue from past few days in my application which is runnning for few months now: I have configured connection pool in WebSphere Application Server with no of maximum connections to 20, min connection 1, reap time 180 sec, unused time…
Neel
  • 179
  • 2
  • 14
1
vote
1 answer

wildfly maven plugin add datasource with pool size

I am using wildfly maven plugin to add datasource in my standalone.xml file. I want also to add the pool size that will be something like that in the standalone file: 10 30
Djiby Thiaw
  • 183
  • 2
  • 10
1
vote
3 answers

java.lang.IllegalArgumentException: Property 'dataSource' is required

I am working on Spring MVC application. I am getting the following exception when I am trying to run the application: java.lang.IllegalArgumentException: Property 'dataSource' is required I tried to follow other posts in stackverflow and…
Suresh
  • 57
  • 1
  • 1
  • 7
1
vote
0 answers

Spring Boot auto-generated data source with EmbeddedDatabase Derby leads to "Schema '' does not exist"

I do use Spring Boot 1.4.2 in combination with profile dependent auto-generated data sources based on the configuration of an "application-{profile}.properties" file and the JAR dependencies Spring Boot detects on the classpath: Maven Spring Boot…
1 2 3
99
100