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)

4740 questions
1
vote
1 answer

Spring boot - init dataSources before anything else

I have 2 configuration class one with datasources configuration and the other is my WebSecurityConfig that extends WebSecurityConfigurerAdapter. I want to load DB values to be used in WebSecurityConfig, so I need to finish initing the datasources…
Itsik Mauyhas
  • 3,824
  • 14
  • 69
  • 114
1
vote
0 answers

java.sql.SQLException: Could not retrieve transation read-only status server

I am using mysql-connector-java-5.1.8-bin.jar, Can anyone suggest me the solution for below exception: Trying to insert into DB got this below: java.sql.SQLException: Could not retrieve transation read-only status server java.sql.SQLException:…
Ravi A
  • 31
  • 5
1
vote
0 answers

Create ODBC 64 bit user dsn from python code

I have used the following code to create dsn from python code. import ctypes ODBC_ADD_DSN = 1 # Add data source ODBC_CONFIG_DSN = 2 # Configure (edit) data source ODBC_REMOVE_DSN = 3 # Remove data source ODBC_ADD_SYS_DSN = 4 # add…
learner
  • 332
  • 2
  • 6
  • 22
1
vote
2 answers

Using datasource in a Java class file

I am using data source explorer in eclipse. the connection is setup and now I want to use it in the normal Java file. I have used the same datasource explorer in a JSP file. As per this article under the web project section I have tried doing the…
shridatt
  • 11
  • 2
1
vote
1 answer

Paging Library Invalidate Data Source

What's the simplest way to invalidate data retrieved by the paging library? I need to do that on logout. I've a DataSource.Factory and a DataSource that extends PageKeyedDataSource. Is it a good idea to call invalidate() on DataSource contructor?…
Jumpa
  • 4,319
  • 11
  • 52
  • 100
1
vote
1 answer

How to implement Custom Material Data Source for Data Table?

I'm trying to implement DataSource for Material DataTable with pagenator, sorting etc. An example of implementation is described here: https://blog.angular-university.io/angular-material-data-table/ From service i'm get following model: export…
1
vote
1 answer

Connection to one from two Identical databases in Spring boot application at RUNTIME

UPDATED I'm getting an issue with Spring framework while I try to connect to 2 identical databases (with same tables) and then choose one of them to make requests. I'm using for this, 3 config files DbConfig, AbstractRoutingDataSource and an…
1
vote
0 answers

Custom configuration for Camunda in a Spring-Boot environment

I have 3 classes to inject custom configuration for Camunda as follows. I needed such a configuration because there are other custom DataSources in the environment. The problem is that while configuring the LocalContainerEntityManagerFactoryBean I…
suat
  • 4,239
  • 3
  • 28
  • 51
1
vote
2 answers

MS-Access 2010 Form: field doesn't accept data source with 2 hyphens

I have a form based on a multiple-tables query. As some fields from different tables have the same names, I must add the corresponding table's name. However, there are hyphens in the tables' names as well as in the fields' names (both inherited from…
Bughater
  • 53
  • 3
  • 9
1
vote
1 answer

Multiple DataSource Switching problem in Spring MVC. when the 2nd dataSource is unavailable it automatically uses 1st datasource where 2nd is referred

I have configured a 2 dataSources in my SpringMVC Project, but when the 2nd dataSource is unavailable it automatically uses 1st datasource where 2nd is referred. I want to stop this switching. Here is the code: dispatcher-servlet.xml:
Monika Tiwari
  • 151
  • 1
  • 2
  • 11
1
vote
1 answer

what is the purpose of establishing a datasource

I am building a web application in Flask. We have opened up the database window of PyCharm and established a data source to a SQL server database. My question is what does establishing a data source do? Does is remove the need to connect to a…
Abbadon771
  • 21
  • 5
1
vote
2 answers

Declarative databinding vs. ADO.NET in code-behind

In recent attempts to understand the ASP.NET GridView I have seen mst examples make use of a datasource declared directly in the ASPX markup. For example ...
webworm
  • 10,587
  • 33
  • 120
  • 217
1
vote
0 answers

C# How to remove constantly updating items(data) from bindingSource

I'm using a datagridView, that it is bound to a bindingsource, this binding source is array of List. The bindingsource is constantly update from other threads(every 100 milliseconds). * other threads can remove, add or update the…
Sahelanthropus
  • 164
  • 1
  • 4
  • 13
1
vote
0 answers

How to determine how many connection my Spring/Quartz configuration is using?

I am continually running out of database connections using a DataSource, Spring and Quartz. As seen below, my TaskExecutor's maximumPoolSize is 30. So, is that the maximum # of connections my setup will use? With a corePoolSize = 10, is my setup…
Jason
  • 2,006
  • 3
  • 21
  • 36
1
vote
1 answer

Is Tomcat able to automatically detect dns change for DataSource?

I have a Spring MVC webapp running on Tomcat container. The datasource configuration is like the following, in context.xml
rocky
  • 76
  • 1
  • 7
1 2 3
99
100