datasource

mySQL DataSource on Visual Studio 2012

泄露秘密 提交于 2019-11-26 20:35:39
I've been reading about mySQL DataSource and the ability to use mySQL with Entity Framework, but I can't really generate EF with mySQL without the use of the DataSource Dialog How can I add mySQL Database to such dialog? This is what I have done so far: Installed mySQL Connector v.6.5.4 Restarted n-times my Windows 7 machine Read all about how well mySQL Connector works on previous versions of Visual Studio I have just read from mySQL Forums that mySQL will ship Visual Studio 2012 integration with mySQL Connector v.6.5.5 We'll be adding support for VS 2012 in Connector/NET 6.5.5 and later 6.6

tomcat7 - jdbc datasource - This is very likely to create a memory leak

主宰稳场 提交于 2019-11-26 20:04:10
I get the following messages in catalina.out log file when tomcat is shutdown. I am using Tomcat 7.x and the Tomcat JDBC data source. Mar 26, 2013 1:17:52 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/my_webapp] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Mar 26, 2013 1:17:52 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/my_webapp] appears to

Externalizing Grails Datasource configuration

梦想的初衷 提交于 2019-11-26 19:47:13
Grails 1.x allows using external configuration files by setting the grails.config.locations directive. Is there a similar approach available for externalizing the database configuration in Datasource.groovy (without setting up JNDI)? It would prove helpful to be able to configure DB credentials in a simple configuration file outside the application. Thanks in advance! You can use a properties file specified in the grails.config.locations as a way to externalize the datasource configuration. Below is how I typically set up a Grails project: In my DataSource.groovy I specify this for the

How to test a mocked JNDI datasource with Spring?

大兔子大兔子 提交于 2019-11-26 19:38:54
I am fairly new to Spring and wondering how to create JUnit tests that use a mocked datasource and how to use a JNDI context with that? Currently my application uses a JNDI context from tomcat to retrieve a connection and via that connection retrieves data from a database. So I guess I need to mock the JNDI calls and the data retrieval. Any good pointers on what the best way to tackle this would be great! Thanks a lot! I usually define my JNDI dependencies in seperate file, like datasource-context.xml : <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org

Use of multiple DataSources in Spring Batch

百般思念 提交于 2019-11-26 18:57:56
I am trying to configure a couple of datasources within Spring Batch. On startup, Spring Batch is throwing the following exception: To use the default BatchConfigurer the context must contain no more thanone DataSource, found 2 Snippet from Batch Configuration @Configuration @EnableBatchProcessing public class BatchJobConfiguration { @Primary @Bean(name = "baseDatasource") public DataSource dataSource() { // first datasource definition here } @Bean(name = "secondaryDataSource") public DataSource dataSource2() { // second datasource definition here } ... } Not sure why I am seeing this

How to add PostgreSQL datasource to WildFly 9.0?

天大地大妈咪最大 提交于 2019-11-26 18:27:46
问题 I've tried tutorial at mastertheboss.com: ./jboss-cli.sh module add --name=org.postgres --resources=/tmp/postgresql-9.3-1101.jdbc41.jar --dependencies=javax.api,javax.transaction.api /subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver) data-source add --jndi-name=java:/PostGreDS --name=PostgrePool --connection-url=jdbc:postgresql://localhost/postgres --driver-name=postgres --user-name=postgres -

ERROR : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

倾然丶 夕夏残阳落幕 提交于 2019-11-26 17:49:10
问题 While connecting .net to sybase server I got this error message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This has worked properly before. System DSN with same details work and data connection through vs.net also work. I am using vs.net 2005. Any suggestions? 回答1: If you're working with an x64 server, keep in mind that there are different ODBC settings for x86 and x64 applications. The "Data Sources (ODBC)" tool in the Administrative Tools

jboss 7 oracle datasource configuration

自古美人都是妖i 提交于 2019-11-26 17:44:23
问题 I'm currently migrating from jboss 4.3 to jboss 7.1.1 (Final) and i'm trying to configure an oracle datasource but it's not working. Following is what I've done to setup an oracle datasource 1)Downloaded ojdbc6-11.jar and placed it inside the folder $JBOSS_HOME/modules/com/oracle/ojdbc6/main 2)Created the file module.xml under $JBOSS_HOME/modules/com/oracle/ojdbc6/main and this is the content of the file <module xmlns="urn:jboss:module:1.0" name="com.oracle.ojdbc6"> <resources> <resource-root

dynamically change Spring data source

江枫思渺然 提交于 2019-11-26 16:04:16
I have a Spring application, i want to change the data source dynamically,ie. when input a DS URL, the Spring beans and all dependency will get updated automatically.I know this is somewhat strange, but anyway i want to achieve that. My Spring configuration as following: <bean id="majorDataSource" class="org.postgresql.ds.PGSimpleDataSource"> <property name="serverName" value="${jdbc.serverName}" /> <property name="portNumber" value="${jdbc.portNumber}" /> <property name="user" value="${jdbc.username}" /> <property name="password" value="${jdbc.password}" /> <property name="databaseName" value

React-Native Updating List View DataSource

£可爱£侵袭症+ 提交于 2019-11-26 15:40:56
问题 I have an iOS app I am making with react-native. The Game class contains a ListView component. I set the state in the constructor and include a dataSource . I have a hardcoded array of data for right now that I store in a different state property ( this.state.ds ). Then in the componentDidMount I use the cloneWithRows method to clone my this.state.ds as my dataSource for the view. That is pretty standard as far as ListViews go and is working well. Here is the code: /** * Sample React Native